uniform float Z; varying vec3 MCposition; void main( void ) { gl_TexCoord[0] = gl_MultiTexCoord0; MCposition = gl_Vertex.xyz; MCposition.z = Z; gl_Position = gl_ModelViewProjectionMatrix * vec4( MCposition, 1. ); }