source: GTP/trunk/Lib/Illum/GPUObscurancesGT/src/depth.vert @ 930

Revision 930, 327 bytes checked in by igarcia, 18 years ago (diff)
Line 
1uniform float angle;
2
3varying vec3 lightVect;
4
5void main()
6{
7        vec4 position = gl_Vertex;
8        gl_Position = ftransform();
9       
10        vec3 lightpos;
11        lightpos.x = 2.7320508 * cos(angle/50);
12        lightpos.y = 2.7320508 * sin(angle/50);
13        lightpos.z = 1.0;
14       
15        position.xyz -= lightpos;
16       
17        lightVect = position.xyz / 3.4641016;
18}
Note: See TracBrowser for help on using the repository browser.