diff --git a/shaders/glsl/mfx_retrofx.fp b/shaders/glsl/mfx_retrofx.fp index df8c580..c8196d6 100644 --- a/shaders/glsl/mfx_retrofx.fp +++ b/shaders/glsl/mfx_retrofx.fp @@ -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); }