Browse Source

normal version (with warp)

master
Joshua Moerman 14 years ago
parent
commit
2bdd03bfef
  1. 2
      resources/myHBlurShader.vert
  2. 6
      resources/myTeaShader.vert

2
resources/myHBlurShader.vert

@ -1,5 +1,5 @@
void main( void ) {
gl_TexCoord[0] = (gl_MultiTexCoord0 - vec4(0.5))/1.00 + vec4(0.5);
gl_TexCoord[0] = (gl_MultiTexCoord0 - vec4(0.5))/1.01 + vec4(0.5);
gl_Position = gl_Vertex;
}

6
resources/myTeaShader.vert

@ -4,10 +4,10 @@ uniform int button;
void main( void ) {
gl_Position = gl_Vertex;
gl_Position.xy *= vec2(1.0, 1.2);
/*gl_Position.xy /= vec2(1280, 720)*0.5;
//gl_Position.xy *= vec2(1.0, 1.2);
gl_Position.xy /= vec2(1280, 720)*0.5;
gl_Position.xy -= 1.0;
gl_Position.y *= -1.0;*/
gl_Position.y *= -1.0;
if(button == 0)
color = vec4(1.0);