This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/qglengine/shaders/fxaa.vert

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();
}