// varying float X, Y; void main() { gl_TexCoord[0] = gl_MultiTexCoord0; // X = gl_Vertex.x; // Y = gl_Vertex.y; gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; }