Vertex.glsl 299 Bytes
Newer Older
1
varying vec4 diffuse_color;
Jan Möbius's avatar
 
Jan Möbius committed
2
3
4
5
6
7
8
9
varying vec3 normal;
varying vec4 vertexPosition;

void main()
{
   normal = normalize(gl_NormalMatrix * gl_Normal);
   vertexPosition = gl_ModelViewMatrix * gl_Vertex;
   gl_Position = gl_ProjectionMatrix * vertexPosition;
10
   diffuse_color = gl_FrontMaterial.diffuse;
Jan Möbius's avatar
 
Jan Möbius committed
11
}