summaryrefslogtreecommitdiff
path: root/build/test.vert
blob: e8a4c32c61323acf48506ed393213a366ae00108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
varying vec2 vTexCoord;
 
// remember that you should draw a screen aligned quad
void main(void)
{
   gl_Position = ftransform();;
  
   // Clean up inaccuracies
   //vec2 Pos;
   //Pos = sign(gl_Vertex.xy);
 
   //gl_Position = vec4(Pos, 0.0, 1.0);
   // Image-space
   //vTexCoord = gl_Vertex.xy * 0.1;//Pos * 0.1;// + 0.5;
   //gl_Position = gl_Vertex;
   gl_FrontColor = gl_Color;
}