Finetune retrofx math.

This commit is contained in:
Marisa the Magician 2021-12-06 16:46:09 +01:00
commit 3d878cf6a6

View file

@ -5,6 +5,9 @@
void main()
{
// far more simplified when the actual scale calculations are on the zscript side
ivec2 ncoord = ivec2((floor(TexCoord*bresl)/bresl)*textureSize(InputTexture,0));
FragColor = texelFetch(InputTexture,ncoord,0);
vec2 ncoord = floor(TexCoord*bresl)/bresl;
FragColor = vec4(textureGather(InputTexture,ncoord,0).y,
textureGather(InputTexture,ncoord,1).y,
textureGather(InputTexture,ncoord,2).y,
textureGather(InputTexture,ncoord,3).y);
}