Sun

Engine/source/environment/sun.h

More...

Protected Types

enum
NetMaskBits {  UpdateMask = BIT(0)
}

Private Types

Parent 

Protected Functions

Called when the object is selected in the editor.

Called when the object is unselected in the editor.

_updateTimeOfDay(TimeOfDay * timeOfDay, F32 time)

Public Functions

Sun()
~Sun()

Advances simulation time for animations.

animate(F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation)

Called after any property of the object is changed in the world editor.

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

Called when the SceneManager is ready for the registration of render instances.

setAzimuth(F32 azimuth)
setElevation(F32 elevation)
submitLights(LightManager * lm, bool staticLighting)

Submit lights to the light manager passed in.

Instructs this object to read state data previously packed with packUpdate.

Public Static Functions

Detailed Description

Protected Types

NetMaskBits

Enumerator

UpdateMask = BIT(0)

Private Types

typedef SceneObject Parent 

Protected Attributes

bool mAnimateSun 
F32 mBrightness 
bool mCastShadows 
bool mCoronaEnabled 
BaseMatInstance * mCoronaMatInst 
String mCoronaMatName 
F32 mCoronaScale 
LinearColorF mCoronaTint 
bool mCoronaUseLightColor 
F32 mCoronaWorldRadius 
F32 mCurrTime 
S32 mDynamicRefreshFreq 
F32 mEndAzimuth 
F32 mEndElevation 
LightFlareData * mFlareData 
F32 mFlareScale 
LightFlareState mFlareState 
LightInfo * mLight 
LinearColorF mLightAmbient 
LinearColorF mLightColor 
Point3F mLightWorldPos 
MatrixSet * mMatrixSet 
F32 mStartAzimuth 
F32 mStartElevation 
S32 mStaticRefreshFreq 
F32 mSunAzimuth 
F32 mSunElevation 
F32 mTotalTime 

Protected Functions

_conformLights()

_initCorona()

_onSelected()

Reimplemented from: SimObject

_onUnselected()

Reimplemented from: SimObject

_renderCorona(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)

_updateTimeOfDay(TimeOfDay * timeOfDay, F32 time)

Public Functions

Sun()

~Sun()

advanceTime(F32 dt)

Reimplemented from: ProcessObject

animate(F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation)

DECLARE_CONOBJECT(Sun )

getLight()

Reimplemented from: ISceneLight

inspectPostApply()

Reimplemented from: SceneObject

onAdd()

Reimplemented from: SceneObject

onRemove()

Reimplemented from: SceneObject

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: SceneObject

prepRenderImage(SceneRenderState * state)

Reimplemented from: SceneObject

setAzimuth(F32 azimuth)

setColor(const LinearColorF & color)

setElevation(F32 elevation)

submitLights(LightManager * lm, bool staticLighting)

Reimplemented from: ISceneLight

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: SceneObject

Public Static Functions

initPersistFields()