This page is under construction
archives/bf1942/levels/ace_s_desert_race.rfa
bf1942/levels/ace_s_desert_race/Init/SkyAndSun.con
rem
rem *** Example cloud system coding for El Alamein by Apache Thunder. Mesh/UVMap rebuilt from scratch. ******
rem
rem *** Sun/Lensflare objects removed since Lensflare system doesn't work. ***
rem
TextureManager.mipmaps 0

rem
rem *** Sky Geometry Template. ***

GeometryTemplate.create StandardMesh SkyBox
GeometryTemplate.file Sky_Elala_m1

Sky.initSky

rem
rem *** Sets fog. Experiment with it to see if it has any effect ***
rem
Sky.setCloudFog 1

rem
rem *** Cloud Geometry (check to ensure it will fit inside your custom skybox mesh) ***
rem

GeometryTemplate.create StandardMesh Cloud
GeometryTemplate.file ../bf1942/levels/ace_s_desert_race/standardMesh/cloud


rem
rem *** Each AddCloud entry creates a new cloud layer ***
rem
Sky.addCloud
Cloud.setName cloud_0
Cloud.setSrcBlend BMSourceAlpha
Cloud.setDstBlend BMInvSourceAlpha
rem
rem *** setTexScale command alters size of clouds. Smaller numbers = larger clouds. ***
rem
Cloud.setTexScale 4
rem
rem *** Sets direction and speed of cloud scrolling. Vec2 float values. ***
rem
Cloud.setSpeed 0.01 0.01
rem
rem *** Sets Height of cloud layer. ***
rem
Cloud.setHeight 3000
rem
rem *** Appears to set a texture. Unknown if it is able to override texture assigned by RS file. ***
rem *** Experiment to find out. ***
rem
cloud.setTexture cloud3


rem
rem *** Second cloud layer ***
rem
Sky.addCloud
Cloud.setName cloud_1
Cloud.setSrcBlend BMSourceAlpha
Cloud.setDstBlend BMInvSourceAlpha
Cloud.setTexScale 1
Cloud.setSpeed 0.008 0.008
Cloud.setHeight 2000
cloud.setTexture cloud6

rem
rem *** Appears to alter global position of all clouds as group. ***
rem *** Experiment to see what it does. ***
rem
Sky.changeOfsCloudHeight 2500
Sky.changeOfsCloudDist 333

rem
rem *** Standard Sky settings ***
rem
sky.changeOfsSkyHeight 50
Sky.setRotAngle 180
sky.sunLightDirectionVec -0.75/0.46/0.46

TextureManager.mipmaps 1