Files
qglengine/shaders/fxaa.vert
2020-08-25 21:57:31 +03:00

12 lines
246 B
GLSL

out vec4 pos;
const float FXAA_SUBPIX_SHIFT = 1. / 4.;
uniform vec2 dt;
void main(void) {
qgl_FragTexture = qgl_Texture;
pos.xy = qgl_Texture.xy;
pos.zw = qgl_Texture.xy - (dt * (0.5 + FXAA_SUBPIX_SHIFT));
gl_Position = qgl_ftransform();
}