tweak shaders

This commit is contained in:
FunkyFr3sh 2023-07-07 02:29:51 +02:00
parent f422ac1ee9
commit b600cb36ba
2 changed files with 12 additions and 10 deletions

View file

@ -171,9 +171,9 @@ const char CATMULL_ROM_FRAG_SHADER[] =
" vec2 texPos3 = texPos1 + 2.;\n"
" vec2 texPos12 = texPos1 + offset12;\n"
"\n"
" texPos0 /= SourceSize.xy;\n"
" texPos3 /= SourceSize.xy;\n"
" texPos12 /= SourceSize.xy;\n"
" texPos0 *= SourceSize.zw;\n"
" texPos3 *= SourceSize.zw;\n"
" texPos12 *= SourceSize.zw;\n"
"\n"
" float wtm = w12.x * w0.y;\n"
" float wml = w0.x * w12.y;\n"
@ -229,9 +229,9 @@ const char CATMULL_ROM_FRAG_SHADER_CORE[] =
" vec2 texPos3 = texPos1 + 2.;\n"
" vec2 texPos12 = texPos1 + offset12;\n"
"\n"
" texPos0 /= SourceSize.xy;\n"
" texPos3 /= SourceSize.xy;\n"
" texPos12 /= SourceSize.xy;\n"
" texPos0 *= SourceSize.zw;\n"
" texPos3 *= SourceSize.zw;\n"
" texPos12 *= SourceSize.zw;\n"
"\n"
" float wtm = w12.x * w0.y;\n"
" float wml = w0.x * w12.y;\n"