Changeset 3939 for data/trunk/shaders
- Timestamp:
- Jun 29, 2006, 11:45:49 AM (18 years ago)
- Location:
- data/trunk/shaders
- Files:
-
- 1 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/shaders/mapped_water.frag
r3824 r3939 10 10 uniform sampler2D dudvMap; 11 11 uniform sampler2D depthMap; 12 uniform float kShine; 13 uniform float shineStrength; 14 uniform float reflStrength; 15 uniform float kRefraction; 12 16 uniform vec4 waterColor; 13 17 14 18 void main() 15 19 { 16 const float kShine = 128.0;17 20 const float kDistortion = 0.015; 18 const float kRefraction = 0.009;19 21 20 22 vec4 distOffset = texture2D(dudvMap, normCoords.xy) * kDistortion; … … 50 52 vec4 specular = vec4(pow(intensity, kShine)); 51 53 52 gl_FragColor = refractionColor + refl ectionColor +specular;54 gl_FragColor = refractionColor + reflStrength * reflectionColor + shineStrength * specular; 53 55 }
Note: See TracChangeset
for help on using the changeset viewer.