varying vec4 color; void main( void ) { gl_Position = gl_Vertex; gl_Position.xy /= vec2(800, 600)*0.5; gl_Position.xy -= 1.0; gl_Position.y *= -1.0; color = gl_Vertex; }