//Copyright 2008-2011 Charles Lohr under the new BSD license. void main() { gl_TexCoord[0] = gl_Vertex/2.0 + vec4( 0.5, 0.5, 0.0, 0.0 ); gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; }