// GL Shading Language version 1.0 Vertex Shader
//  Orion Sky Lawlor, olawlor@acm.org, 2006/08/31 (Public Domain)

// Vertex/fragment shader interface:
varying vec4 color; // Material diffuse color
varying vec3 normal; // Surface normal

// Input: gl_Vertex.  Output: gl_Position.
void main(void) 
{
	// Output "varying" for fragment shader:
	color=gl_Color;
	normal=normalize(gl_NormalMatrix*gl_Normal);
	
	// Compute clip coordinates straight from model coordinates
	gl_Position = gl_ModelViewProjectionMatrix*gl_Vertex;
}
