varying float distanceAcross;

void main()
{            
	// Set the front color to the color passed through with glColor*f 
	gl_FrontColor = gl_Color;
	
	gl_TexCoord[0] = gl_MultiTexCoord0;
	vec3 realPos = gl_Vertex.xyz;
	realPos.z = 0.0;
	distanceAcross = gl_Vertex.z;
	//Simple passthrough, transforms vertex by model view/projection matrix. 
	gl_Position = gl_ModelViewProjectionMatrix * vec4(realPos, 1.0);
}