This page is under construction
Archives/bf1942/levels/Battle_of_Jaroslawice.rfa
bf1942/levels/Battle_of_Jaroslawice/Init/SkyAndSun.con
rem *********************************************
rem Created by Battlecraft 1942. Copyright (c)2003,2004 Digital Illusions CE
rem *********************************************
TextureManager.mipmaps 0

ObjectTemplate.create LensFlare TSun
ObjectTemplate.setLensFlareCount 5
ObjectTemplate.setBackFlareCount 0
ObjectTemplate.setCoronaCount 2
ObjectTemplate.initLensFlares
ObjectTemplate.setVisibilityAngleDeg 360

Object.create TSun
Object.isSaveable 0
Object.name sun
ObjectTemplate.setflarefadeall 0.1
ObjectTemplate.setcoronafadeall 0.3

GeometryTemplate.create StandardMesh SkyBox
GeometryTemplate.file Sky_Bulge_m1
Sky.initSky

** Clouds
GeometryTemplate.create StandardMesh Cloud
GeometryTemplate.file ../bf1942/levels/Battle_of_Jaroslawice/standardMesh/cloud

Sky.addCloud
Cloud.setName cloud_0
Cloud.setSrcBlend BMSourceAlpha
Cloud.setDstBlend BMInvSourceAlpha
Cloud.setTexScale 512
Cloud.setSpeed -0.001 0.004
Cloud.setHeight 32
Sky.setCloudFog 0

Sky.setSun sun
sky.changeOfsSkyHeight 100
sky.setRotAngle 180
sky.sunLightDirectionVec -0.0997906/0.680391/-0.726023
TextureManager.mipmaps 1