Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2006, 2:08:04 PM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine

Location:
data/branches/atmospheric_engine/shaders
Files:
2 edited

Legend:

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

    r3825 r3875  
    1 //
    21// 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 //
    102
    113varying float LightIntensity;
  • data/branches/atmospheric_engine/shaders/cloud.vert

    r3825 r3875  
    1 //
    21// Vertex shader for producing animated clouds (mostly cloudy)
    3 //
    4 // Authors: John Kessenich, Randi Rost
    5 //
    6 // Copyright (c) 2002-2004 3Dlabs Inc. Ltd.
    7 //
    8 // See 3Dlabs-License.txt for license information
    9 //
    102
    113varying float LightIntensity;
    124varying vec3  MCposition;
    135
    14 uniform vec3  LightPos;
    156uniform float Scale;
    167
     
    2011    MCposition      = vec3 (gl_Vertex) * Scale;
    2112    vec3 tnorm      = normalize(vec3 (gl_NormalMatrix * gl_Normal));
    22     LightIntensity  = dot(normalize(LightPos - ECposition), tnorm);
    23     LightIntensity *= 1.5;
     13    LightIntensity = 1;
    2414    gl_Position     = ftransform();
    2515}
Note: See TracChangeset for help on using the changeset viewer.