/* RetroFX downscaling from MariENB (C)2012-2022 Marisa the Magician */ void main() { // far more simplified when the actual scale calculations are on the zscript side 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); }