Changeset 3918 for data/branches/atmospheric_engine/shaders
- Timestamp:
- Jun 28, 2006, 4:18:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/atmospheric_engine/shaders/mapped_water.frag
r3912 r3918 11 11 uniform sampler2D depthMap; 12 12 uniform float kShine; 13 uniform float shineStrength; 14 uniform float reflStrength; 15 uniform float kRefraction; 13 16 uniform vec4 waterColor; 14 17 … … 16 19 { 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 + 0.8* specular;54 gl_FragColor = refractionColor + reflStrength * reflectionColor + shineStrength * specular; 53 55 }
Note: See TracChangeset
for help on using the changeset viewer.