Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3875


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

branches/atmospheric_engine

Location:
data/branches/atmospheric_engine
Files:
3 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}
  • data/branches/atmospheric_engine/worlds/vulcania.oxw

    r3847 r3875  
    1717                        <abs-coor>0, 10, 0</abs-coor>
    1818                </TurbineHover>
    19 
    20                 <SkyBox>
    21                         <name>Sky</name>
    22                         <Materialset>pictures/sky/desert</Materialset>
    23                         <Size>10000</Size>
    24                 </SkyBox>
    2519
    2620                <Terrain>
     
    5145        <!-- <Music>sound/music/estorm.ogg</Music> -->
    5246
    53         <PhysicsEngine>
    54                 <Fields>
    55                         <Gravity>
    56                         <name>gravity</name>
    57                         <magnitude>100</magnitude>
    58                         </Gravity>
    59                 </Fields>
    60 
    61                 <Connections>
    62                          <PhysicsConnection>
    63                                 <subject>VulcanStoneSystem</subject>
    64                                 <field>gravity</field>
    65                         </PhysicsConnection>
    66                         <PhysicsConnection>
    67                                 <subject>VulcanSparkSystem</subject>
    68                                 <field>gravity</field>
    69                         </PhysicsConnection>
    70                 </Connections>
    71         </PhysicsEngine>
    7247
    7348        <AtmosphericEngine>
Note: See TracChangeset for help on using the changeset viewer.