2011-12-17 19:48:35 -05:00
|
|
|
varying vec3 normal;
|
2011-12-20 11:58:12 -05:00
|
|
|
varying vec4 vertex_color;
|
2011-12-17 19:48:35 -05:00
|
|
|
varying vec3 lightdir2;
|
|
|
|
uniform vec3 lightdir;
|
2011-11-30 11:56:04 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_TexCoord[0] = gl_MultiTexCoord0;
|
|
|
|
gl_TexCoord[1] = gl_MultiTexCoord1;
|
2011-12-17 19:48:35 -05:00
|
|
|
gl_Position = ftransform();
|
2011-12-20 11:58:12 -05:00
|
|
|
vertex_color = gl_Color;
|
2011-12-17 19:48:35 -05:00
|
|
|
|
|
|
|
//normal = normalize(gl_NormalMatrix * gl_Normal);
|
|
|
|
normal = normalize(gl_Normal);
|
|
|
|
lightdir2 = normalize(lightdir);
|
2011-11-30 11:56:04 -05:00
|
|
|
}
|