Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 4:18:42 PM (18 years ago)
Author:
stefalie
Message:

mountain_lake: changed shader file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/atmospheric_engine/shaders/mapped_water.frag

    r3912 r3918  
    1111uniform sampler2D depthMap;
    1212uniform float kShine;
     13uniform float shineStrength;
     14uniform float reflStrength;
     15uniform float kRefraction;
    1316uniform vec4 waterColor;
    1417
     
    1619{
    1720        const float kDistortion = 0.015;
    18         const float kRefraction = 0.009;
    1921
    2022        vec4 distOffset = texture2D(dudvMap, normCoords.xy) * kDistortion;
     
    5052        vec4 specular = vec4(pow(intensity, kShine));
    5153
    52         gl_FragColor = refractionColor + reflectionColor + 0.8 * specular;
     54        gl_FragColor = refractionColor + reflStrength * reflectionColor + shineStrength * specular;
    5355}
Note: See TracChangeset for help on using the changeset viewer.