BasicLightManager
Engine/source/lighting/basic/basicLightManager.h
Classes:
Private Types
Parent
Protected Types
Map< GFXShader *, LightingShaderConstants * >
LightConstantMap
Public Friends
Protected Attributes
A timer used for tracking update time.
Protected Static Attributes
Statics used for light manager/projected shadow metrics.
This is used to determine the distance at which the shadow filtering PostEffect will be enabled for ProjectedShadow.
Public Functions
activate(SceneManager * sceneManager)
bool
setLightInfo(ProcessedMaterial * pmat, const Material * mat, const SceneData & sgData, const SceneRenderState * state, U32 pass, GFXShaderConstBuffer * shaderConsts)
Sets shader constants / textures for light infos.
bool
setTextureStage(const SceneData & sgData, const U32 currTexFlag, const U32 textureSlot, GFXShaderConstBuffer * shaderConsts, ShaderConstHandles * handles)
Allows us to set textures during the Material::setTextureStage call, return true if we've done work.
Public Static Functions
const char *
Protected Functions
_addLightInfoEx(LightInfo * lightInfo)
Attaches any LightInfoEx data for this manager to the light info object.
_onPreRender(SceneManager * sceneManger, const SceneRenderState * state)
Detailed Description
Private Types
typedef LightManager Parent
Protected Types
typedef Map< GFXShader *, LightingShaderConstants * > LightConstantMap
Public Friends
Protected Attributes
LightConstantMap mConstantLookup
SimObjectPtr< RenderDeferredMgr > mDeferredRenderBin
LightingShaderConstants * mLastConstants
GFXShaderRef mLastShader
blTerrainSystem * mTerrainSystem
PlatformTimer * mTimer
A timer used for tracking update time.
Protected Static Attributes
U32 smActiveShadowPlugins
Statics used for light manager/projected shadow metrics.
U32 smElapsedUpdateMs
F32 smProjectedShadowFilterDistance
This is used to determine the distance at which the shadow filtering PostEffect will be enabled for ProjectedShadow.
U32 smShadowsUpdated
Public Functions
activate(SceneManager * sceneManager)
Reimplemented from: LightManager
deactivate()
Reimplemented from: LightManager
isCompatible()
Reimplemented from: LightManager
setLightInfo(ProcessedMaterial * pmat, const Material * mat, const SceneData & sgData, const SceneRenderState * state, U32 pass, GFXShaderConstBuffer * shaderConsts)
Reimplemented from: LightManager
setTextureStage(const SceneData & sgData, const U32 currTexFlag, const U32 textureSlot, GFXShaderConstBuffer * shaderConsts, ShaderConstHandles * handles)
Reimplemented from: LightManager
Public Static Functions
getShadowFilterDistance()
getSingletonName()
Protected Functions
BasicLightManager()
~BasicLightManager()
_addLightInfoEx(LightInfo * lightInfo)
Reimplemented from: LightManager
_initLightFields()
Reimplemented from: LightManager
_onPreRender(SceneManager * sceneManger, const SceneRenderState * state)