Changeset 3875 for data/branches/atmospheric_engine/shaders
- Timestamp:
- Jun 22, 2006, 2:08:04 PM (18 years ago)
- Location:
- data/branches/atmospheric_engine/shaders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/atmospheric_engine/shaders/cloud.frag
r3825 r3875 1 //2 1 // Fragment shader for producing animated clouds (mostly cloudy) 3 //4 // Author: Randi Rost5 //6 // Copyright (c) 2002-2004 3Dlabs Inc. Ltd.7 //8 // See 3Dlabs-License.txt for license information9 //10 2 11 3 varying float LightIntensity; -
data/branches/atmospheric_engine/shaders/cloud.vert
r3825 r3875 1 //2 1 // Vertex shader for producing animated clouds (mostly cloudy) 3 //4 // Authors: John Kessenich, Randi Rost5 //6 // Copyright (c) 2002-2004 3Dlabs Inc. Ltd.7 //8 // See 3Dlabs-License.txt for license information9 //10 2 11 3 varying float LightIntensity; 12 4 varying vec3 MCposition; 13 5 14 uniform vec3 LightPos;15 6 uniform float Scale; 16 7 … … 20 11 MCposition = vec3 (gl_Vertex) * Scale; 21 12 vec3 tnorm = normalize(vec3 (gl_NormalMatrix * gl_Normal)); 22 LightIntensity = dot(normalize(LightPos - ECposition), tnorm); 23 LightIntensity *= 1.5; 13 LightIntensity = 1; 24 14 gl_Position = ftransform(); 25 15 }
Note: See TracChangeset
for help on using the changeset viewer.