Vertex.glsl 382 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
10
11
12
varying vec3 normal;
varying vec4 vertexPosition;
uniform float ward_specular;
uniform float ward_diffuse;
uniform float ward_alpha;

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