git-svn-id: svn://db.shs.com.ru/libs@586 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
13
test/qglview/shaders/FXAA.vert
Normal file
13
test/qglview/shaders/FXAA.vert
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 130
|
||||
|
||||
out vec4 posPos;
|
||||
|
||||
uniform float FXAA_SUBPIX_SHIFT = 1. / 4.;
|
||||
uniform vec2 dt;
|
||||
|
||||
void main(void) {
|
||||
posPos.xy = gl_MultiTexCoord0.xy;
|
||||
posPos.zw = gl_MultiTexCoord0.xy - (dt * (0.5 + FXAA_SUBPIX_SHIFT));
|
||||
gl_TexCoord[0] = gl_MultiTexCoord0;
|
||||
gl_Position = ftransform();
|
||||
}
|
||||
Reference in New Issue
Block a user