ScatterSky

Engine/source/environment/scatterSky.h

More...

Public Types

enum
MaskBits {
  UpdateMask = Parent::NextFreeMask
  TimeMask = Parent::NextFreeMask << 1
  NextFreeMask = Parent::NextFreeMask << 2
}

Private Types

Parent 

Protected Attributes

mCurves [CURVE_COUNT]
bool

Not a field.

Not a field.

GFXVertexBufferHandle< GFXVertexP >

Public Functions

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

Protected Functions

_getMiePhase(F32 fCos, F32 fCos2, F32 g, F32 g2)
bool

Called when the object is selected in the editor.

Called when the object is unselected in the editor.

_updateTimeOfDay(TimeOfDay * timeofDay, F32 time)

Protected Static Functions

bool
ptSetAzimuth(void * object, const char * index, const char * data)
bool
ptSetElevation(void * object, const char * index, const char * data)

Detailed Description

Public Types

MaskBits

Enumerator

UpdateMask = Parent::NextFreeMask
TimeMask = Parent::NextFreeMask << 1
NextFreeMask = Parent::NextFreeMask << 2

Private Types

typedef SceneObject Parent 

Protected Static Attributes

const F32 smAtmosphereRadius 
const F32 smEarthRadius 
const F32 smViewerHeight 

Protected Attributes

LinearColorF mAmbientColor 

Not a field.

LinearColorF mAmbientScale 
F32 mBrightness 
GFXShaderConstHandle * mCamPosSC 
bool mCastShadows 
LinearColorF mColorize 
F32 mColorizeAmt 
GFXShaderConstHandle * mColorizeSC 
FloatCurve mCurves [CURVE_COUNT]
bool mDirty 
S32 mDynamicRefreshFreq 
F32 mExposure 
LightFlareData * mFlareData 
F32 mFlareScale 
LightFlareState mFlareState 
LinearColorF mFogColor 

Not a field.

LinearColorF mFogScale 
GFXShaderConstHandle * mInverseWavelengthSC 
LightInfo * mLight 
VectorF mLightDir 
GFXShaderConstHandle * mLightDirSC 
MatrixSet * mMatrixSet 
F32 mMiePhaseAssymetry 
F32 mMieScaleDepth 
F32 mMieScattering 
F32 mMieScattering4PI 
GFXShaderConstHandle * mMiscSC 
GFXShaderConstHandle * mModelViewProjSC 
F32 mMoonAzimuth 
F32 mMoonElevation 
bool mMoonEnabled 
VectorF mMoonLightDir 
BaseMatInstance * mMoonMatInst 
String mMoonMatName 
F32 mMoonScale 
LinearColorF mMoonTint 
LinearColorF mNightColor 
GFXShaderConstHandle * mNightColorSC 
CubemapData * mNightCubemap 
String mNightCubemapName 
LinearColorF mNightFogColor 
F32 mNightInterpolant 
GFXShaderConstHandle * mNightInterpolantAndExposureSC 
F32 mOuterRadius 
GFXPrimitiveBufferHandle mPrimBuffer 
U32 mPrimCount 
F32 mRayleighScaleDepth 
F32 mRayleighScattering 
F32 mRayleighScattering4PI 
F32 mScale 
GFXShaderConstHandle * mScatteringCoefficientsSC 
GFXShaderRef mShader 
GFXShaderConstBufferRef mShaderConsts 
F32 mSkyBrightness 
Vector< Point3F > mSkyPoints 
F32 mSphereInnerRadius 
F32 mSphereOuterRadius 
GFXShaderConstHandle * mSphereRadiiSC 
GFXStateBlockRef mStateBlock 
S32 mStaticRefreshFreq 
F32 mSunAzimuth 
LinearColorF mSunColor 

Not a field.

VectorF mSunDir 
GFXShaderConstHandle * mSunDirSC 
F32 mSunElevation 
LinearColorF mSunScale 
F32 mSunSize 
F32 mTimeOfDay 
GFXShaderConstHandle * mUseCubemapSC 
bool mUseNightCubemap 
GFXVertexBufferHandle< GFXVertexP > mVB 
U32 mVertCount 
LinearColorF mWavelength 
F32 mWavelength4 [3]
F32 mZOffset 

Public Functions

ScatterSky()

~ScatterSky()

DECLARE_CONOBJECT(ScatterSky )

getAzimuth()

getElevation()

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)

setElevation(F32 elevation)

submitLights(LightManager * lm, bool staticLighting)

Reimplemented from: ISceneLight

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: SceneObject

Public Static Functions

initPersistFields()

Protected Functions

_conformLights()

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

_generateSkyPoints()

_getAmbientColor(LinearColorF * outColor)

_getColor(const Point3F & pos, LinearColorF * outColor)

_getFogColor(LinearColorF * outColor)

_getMiePhase(F32 fCos, F32 fCos2, F32 g, F32 g2)

_getRayleighPhase(F32 fCos2)

_getSunColor(LinearColorF * outColor)

_initCurves()

_initMoon()

_initShader()

_initVBIB()

_interpolateColors()

_onSelected()

Reimplemented from: SimObject

_onUnselected()

Reimplemented from: SimObject

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

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

_updateTimeOfDay(TimeOfDay * timeofDay, F32 time)

_vernierScale(F32 fCos)

Protected Static Functions

ptSetAzimuth(void * object, const char * index, const char * data)

ptSetElevation(void * object, const char * index, const char * data)