The-Powder-Toy/build/test.vert

18 lines
387 B
GLSL
Raw Normal View History

2011-10-19 18:35:24 -05:00
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;
}