initial commit
This commit is contained in:
11
shaders/fxaa.vert
Normal file
11
shaders/fxaa.vert
Normal file
@@ -0,0 +1,11 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user