source:
GTP/trunk/Lib/Illum/GPUObscurancesGT/bin/debug/depth.vert
@
930
Revision 930, 327 bytes checked in by igarcia, 19 years ago (diff) |
---|
Line | |
---|---|
1 | uniform float angle; |
2 | |
3 | varying vec3 lightVect; |
4 | |
5 | void 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.