blob: 02ff444e61a893c429719a8ae7dcd7031f9cd068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* light-pp.vert
*
* Lighting per pixel
*
* (c) 2007 Thomas White <taw27@cam.ac.uk>
*
* dtr - Diffraction Tomography Reconstruction
*
*/
varying vec4 col_ambi;
varying vec4 col_diff;
varying vec4 col_spec;
varying float shininess;
varying vec3 normal;
varying vec3 halfvc;
void main() {
normal = normalize(gl_NormalMatrix * gl_Normal);
halfvc = vec3(gl_LightSource[0].halfVector);
col_ambi = gl_FrontMaterial.ambient;
col_diff = gl_FrontMaterial.diffuse;
col_spec = gl_FrontMaterial.specular;
shininess = gl_FrontMaterial.shininess;
gl_Position = ftransform();
}
|