blob: 00b8118877edf35dca541e2a8c5588c94e7ebd2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
varying vec4 diffuse, ambientGlobal, ambient;
varying vec3 normal, pos;
void main() {
normal = normalize(gl_NormalMatrix * gl_Normal);
pos = vec3(gl_ModelViewMatrix * gl_Vertex);
diffuse = gl_FrontMaterial.diffuse * gl_LightSource[0].diffuse;
ambient = gl_FrontMaterial.ambient * gl_LightSource[0].ambient;
ambientGlobal = gl_LightModel.ambient * gl_FrontMaterial.ambient;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = ftransform();
}
|