AdvancedLightManager
Engine/source/lighting/advanced/advancedLightManager.h
Private Types
Parent
Public Types
GFXVertexPC
LightVertex
Protected Static Attributes
A simple protected singleton.
Protected Attributes
Public Functions
activate(SceneManager * sceneManager)
findShadowMapForObject(SimObject * object)
getConeMesh(U32 & outNumPrimitives, GFXPrimitiveBuffer *& outPrimitives)
Return the lightBinManager for this light manager.
getSphereMesh(U32 & outNumPrimitives, GFXPrimitiveBuffer *& outPrimitives)
bool
registerGlobalLight(LightInfo * light, SimObject * obj)
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.
Protected Functions
_addLightInfoEx(LightInfo * lightInfo)
Attaches any LightInfoEx data for this manager to the light info object.
Detailed Description
Private Types
typedef LightManager Parent
Public Types
typedef GFXVertexPC LightVertex
Protected Static Attributes
AdvancedLightManager smSingleton
A simple protected singleton.
Use LightManager::findByName() to access this light manager.
Protected Attributes
GFXVertexBufferHandle< LightVertex > mConeGeometry
GFXPrimitiveBufferHandle mConeIndices
U32 mConePrimitiveCount
LightConstantMap mConstantLookup
LightingShaderConstants * mLastConstants
GFXShaderRef mLastShader
SimObjectPtr< AdvancedLightBinManager > mLightBinManager
SimObjectPtr< RenderPrePassMgr > mPrePassRenderBin
GFXVertexBufferHandle< LightVertex > mSphereGeometry
GFXPrimitiveBufferHandle mSphereIndices
U32 mSpherePrimitiveCount
Public Functions
activate(SceneManager * sceneManager)
Reimplemented from: LightManager
deactivate()
Reimplemented from: LightManager
findShadowMapForObject(SimObject * object)
getConeMesh(U32 & outNumPrimitives, GFXPrimitiveBuffer *& outPrimitives)
getLightBinManager()
Return the lightBinManager for this light manager.
getSphereMesh(U32 & outNumPrimitives, GFXPrimitiveBuffer *& outPrimitives)
isCompatible()
Reimplemented from: LightManager
registerGlobalLight(LightInfo * light, SimObject * obj)
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
unregisterAllLights()
Reimplemented from: LightManager
Protected Functions
AdvancedLightManager()
~AdvancedLightManager()
_addLightInfoEx(LightInfo * lightInfo)
Reimplemented from: LightManager
_initLightFields()
Reimplemented from: LightManager
getLightingShaderConstants(GFXShaderConstBuffer * shader)
