Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2006, 4:09:40 PM (18 years ago)
Author:
hdavid
Message:
 
File:
1 edited

Legend:

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

    r3875 r3876  
     1//
    12// Fragment shader for producing animated clouds (mostly cloudy)
     3//
     4// Author: Randi Rost
     5//
     6// Copyright (c) 2002-2004 3Dlabs Inc. Ltd.
     7//
     8// See 3Dlabs-License.txt for license information
     9//
    210
    311varying float LightIntensity;
     
    1119void main (void)
    1220{
    13     vec4  noisevec  = texture3D(Noise, MCposition + Offset);
     21  vec4  noisevec  = texture3D(Noise, MCposition + Offset);
    1422
    15     float intensity = (noisevec[0] + noisevec[1] +
    16                        noisevec[2] + noisevec[3]) * 1.5;
     23  float intensity = (noisevec[0] + noisevec[1] +
     24      noisevec[2] + noisevec[3]) * 1.5;
    1725
    18     vec3 color   = mix(SkyColor, CloudColor, intensity) * LightIntensity;
     26  vec3 color   = mix(SkyColor, CloudColor, intensity) * LightIntensity;
    1927
    20     gl_FragColor = vec4 (color, 1.0);
     28  gl_FragColor = vec4 (color, 1.0);
    2129}
Note: See TracChangeset for help on using the changeset viewer.