Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

branches/atmospheric_engine

File size: 416 bytes
Line 
1// Vertex shader for producing animated clouds (mostly cloudy)
2
3varying float LightIntensity;
4varying vec3  MCposition;
5
6uniform float Scale;
7
8void 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.