marifx_m/shaders/glsl/mfx_retrofx.fp

13 lines
402 B
GLSL

/*
RetroFX downscaling from MariENB
(C)2012-2021 Marisa Kirisame
*/
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);
}