source:
data/branches/atmospheric_engine/shaders/cloud.vert
@
3875
Last change on this file since 3875 was 3875, checked in by hdavid, 18 years ago | |
---|---|
File size: 416 bytes |
Line | |
---|---|
1 | // Vertex shader for producing animated clouds (mostly cloudy) |
2 | |
3 | varying float LightIntensity; |
4 | varying vec3 MCposition; |
5 | |
6 | uniform float Scale; |
7 | |
8 | void main(void) |
9 | { |
10 | vec3 ECposition = vec3 (gl_ModelViewMatrix * gl_Vertex); |
11 | MCposition = vec3 (gl_Vertex) * Scale; |
12 | vec3 tnorm = normalize(vec3 (gl_NormalMatrix * gl_Normal)); |
13 | LightIntensity = 1; |
14 | gl_Position = ftransform(); |
15 | } |
Note: See TracBrowser
for help on using the repository browser.