varying vec2 worldPos;

void main()
{            
	// Set the front color to the color passed through with glColor*f 
	gl_FrontColor = gl_Color;
	
	worldPos = (gl_ModelViewMatrix * gl_Vertex).xy;
	
	gl_TexCoord[0] = gl_MultiTexCoord0;
	//Simple passthrough, transforms vertex by model view/projection matrix. 
	gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}