Changeset 3875
- Timestamp:
- Jun 22, 2006, 2:08:04 PM (18 years ago)
- Location:
- data/branches/atmospheric_engine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/atmospheric_engine/shaders/cloud.frag
r3825 r3875 1 //2 1 // Fragment shader for producing animated clouds (mostly cloudy) 3 //4 // Author: Randi Rost5 //6 // Copyright (c) 2002-2004 3Dlabs Inc. Ltd.7 //8 // See 3Dlabs-License.txt for license information9 //10 2 11 3 varying float LightIntensity; -
data/branches/atmospheric_engine/shaders/cloud.vert
r3825 r3875 1 //2 1 // Vertex shader for producing animated clouds (mostly cloudy) 3 //4 // Authors: John Kessenich, Randi Rost5 //6 // Copyright (c) 2002-2004 3Dlabs Inc. Ltd.7 //8 // See 3Dlabs-License.txt for license information9 //10 2 11 3 varying float LightIntensity; 12 4 varying vec3 MCposition; 13 5 14 uniform vec3 LightPos;15 6 uniform float Scale; 16 7 … … 20 11 MCposition = vec3 (gl_Vertex) * Scale; 21 12 vec3 tnorm = normalize(vec3 (gl_NormalMatrix * gl_Normal)); 22 LightIntensity = dot(normalize(LightPos - ECposition), tnorm); 23 LightIntensity *= 1.5; 13 LightIntensity = 1; 24 14 gl_Position = ftransform(); 25 15 } -
data/branches/atmospheric_engine/worlds/vulcania.oxw
r3847 r3875 17 17 <abs-coor>0, 10, 0</abs-coor> 18 18 </TurbineHover> 19 20 <SkyBox>21 <name>Sky</name>22 <Materialset>pictures/sky/desert</Materialset>23 <Size>10000</Size>24 </SkyBox>25 19 26 20 <Terrain> … … 51 45 <!-- <Music>sound/music/estorm.ogg</Music> --> 52 46 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>72 47 73 48 <AtmosphericEngine>
Note: See TracChangeset
for help on using the changeset viewer.