This page is under construction
Archives/bf1942/levels/GC_Hoth.rfa
bf1942/levels/GC_Hoth/Init/SkyAndSun.con
TextureManager.mipmaps 0
rem ************************
rem *** Lenzflare ***
rem ************************
rem
rem *** "TSun" of primitive LensFlare ***
rem
ObjectTemplate.create LensFlare TSun
ObjectTemplate.setLensFlareCount 5
ObjectTemplate.setBackFlareCount 0
ObjectTemplate.setCoronaCount 2
ObjectTemplate.initLensFlares
ObjectTemplate.setVisibilityAngleDeg 360


REM *** Falre no:1 ***
REM
ObjectTemplate.setFlareSrcBlend BMSourceAlpha 0
ObjectTemplate.setFlareDestBlend BMOne 0
ObjectTemplate.setFlareTexture ring5.tga 0
ObjectTemplate.setFlareSize 3 0
ObjectTemplate.setFlareScale -1.5 0
ObjectTemplate.setFlareRot 0 0
ObjectTemplate.setFlareColor 255/255/255/50 0
ObjectTemplate.setFlareDistFadeScale 1 0
REM
REM *** Falre no:2 > LittleDot***
REM
ObjectTemplate.setFlareSrcBlend BMSourceAlpha 1
ObjectTemplate.setFlareDestBlend BMOne 1
ObjectTemplate.setFlareTexture ring3.tga 1
ObjectTemplate.setFlareSize 0.5 1
ObjectTemplate.setFlareScale 1 1
ObjectTemplate.setFlareRot 0 1
ObjectTemplate.setFlareColor 255/255/255/200 1
REM
REM *** Falre no:3 ***
REM
ObjectTemplate.setFlareSrcBlend BMSourceAlpha 2
ObjectTemplate.setFlareDestBlend BMOne 2
ObjectTemplate.setFlareTexture ring4.tga 2
ObjectTemplate.setFlareSize 0.3 2
ObjectTemplate.setFlareScale 1.5 2
ObjectTemplate.setFlareRot 0 2
ObjectTemplate.setFlareColor 255/255/255/155 2

REM *** Falre no:4 :Twins***

ObjectTemplate.setFlareSrcBlend BMSourceAlpha 3
ObjectTemplate.setFlareDestBlend BMOne 3
ObjectTemplate.setFlareTexture ring5.tga 3
ObjectTemplate.setFlareSize 2 3
ObjectTemplate.setFlareScale -2 3
ObjectTemplate.setFlareRot 0 3
ObjectTemplate.setFlareColor 255/255/255/50 3
ObjectTemplate.setFlareDistFadeScale 0.5 3
REM
REM *** Falre no:5 :Twins***
REM
ObjectTemplate.setFlareSrcBlend BMSourceAlpha 4
ObjectTemplate.setFlareDestBlend BMOne 4
ObjectTemplate.setFlareTexture ring5.tga 4
ObjectTemplate.setFlareSize 0 4
ObjectTemplate.setFlareScale -2 4
ObjectTemplate.setFlareRot 1 4
ObjectTemplate.setFlareColor 255/255/255/100 4
ObjectTemplate.setFlareDistFadeScale 1 4

REM
REM *** Corona no:0 ***
REM
ObjectTemplate.setCoronaSrcBlend BMSourceAlpha 0
ObjectTemplate.setCoronaDestBlend BMOne 0
ObjectTemplate.setCoronaTexture sunflare7.tga 0
ObjectTemplate.setCoronaSize 2 0
ObjectTemplate.setCoronaScale 1 0
ObjectTemplate.setCoronaRot 0 0
ObjectTemplate.setCoronaColor 255/255/200/225 0
REM
REM *** Corona no:1 - Red aura***
REM
ObjectTemplate.setCoronaSrcBlend BMSourceAlpha 1
ObjectTemplate.setCoronaDestBlend BMOne 1
ObjectTemplate.setCoronaTexture sunflare9.tga 1
ObjectTemplate.setCoronaSize 5 1
ObjectTemplate.setCoronaScale 5 1
ObjectTemplate.setCoronaRot 0 1
ObjectTemplate.setCoronaColor 255/150/0/100 1

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



rem ************************
rem *** Sky ***
rem ************************
GeometryTemplate.create StandardMesh SkyBox
GeometryTemplate.file Sky_Bocage_m1
Sky.initSky
Sky.setCloudFog 1

GeometryTemplate.create StandardMesh Cloud
GeometryTemplate.file cloud


Sky.addCloud
Cloud.setName cloud_0
Cloud.setSrcBlend BMSourceAlpha
Cloud.setDstBlend BMInvSourceAlpha

Cloud.setTexScale 4
Cloud.setSpeed 0.01 0.01
Cloud.setHeight 3000
cloud.setTexture cloud3

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

Sky.changeOfsCloudHeight 2500
Sky.changeOfsCloudDist 333

Sky.setSun sun
sky.changeOfsSkyHeight 50
Sky.setRotAngle 360
sky.sunLightDirectionVec 0.305/0.467/0.83
TextureManager.mipmaps 1