Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3939 for data/trunk/shaders


Ignore:
Timestamp:
Jun 29, 2006, 11:45:49 AM (19 years ago)
Author:
bensch
Message:

data/trunk: merged the data from the atmos branche back

Location:
data/trunk/shaders
Files:
1 edited
4 copied

Legend:

Unmodified
Added
Removed
  • data/trunk/shaders/mapped_water.frag

    r3824 r3939  
    1010uniform sampler2D dudvMap;
    1111uniform sampler2D depthMap;
     12uniform float kShine;
     13uniform float shineStrength;
     14uniform float reflStrength;
     15uniform float kRefraction;
    1216uniform vec4 waterColor;
    1317
    1418void main()
    1519{
    16         const float kShine = 128.0;
    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 + specular;
     54        gl_FragColor = refractionColor + reflStrength * reflectionColor + shineStrength * specular;
    5355}
Note: See TracChangeset for help on using the changeset viewer.