-
Notifications
You must be signed in to change notification settings - Fork 1
LightingShadowMapManager
deactivate() |
Called when the ShadowMapManager should be decactivated. The ShadowMapManager will notify the SceneManger to remove its onPreRender function from the pre-render signal, clean up the shadow texture memory and makes its self no longer active. Syntax deactivate() Returns No return value. Examples // Called from within the AdvancedLightManager::deactivate, SHADOWMGR is a #define // of the ShadowMapManager::instance() function. SHADOWMGR->deactivate(); |
activate() |
Called when the ShadowMapManager should become active. If the ShadowMapManager is unable to retrieve a SceneManager through the internal method getSceneManager then it will return a console error saying it was unable to active the ShadowMapManager and return out of the function. If it is able to retrieve the SceneManager then it will notify the SceneManager of its onPreRender function and turn its self active. Syntax activate() Returns No return value. Examples // Called from within the AdvancedLightManager::activate, SHADOWMGR is a #define // of the ShadowMapManager::instance() function. SHADOWMGR->activate(); |
setLightShadowMapForLight( LightInfo * ) |
Looks up the shadow map for the light then sets it. Syntax setLightShadowMapForLight(LightInfo *light )
Returns No return value. Examples // Set light holds the active shadow map. mShadowManager->setLightShadowMapForLight( sunLight ); |
setLightShadowMap( LightShadowMap *) |
Sets the current shadowmap (used in setLightInfo/setTextureStage calls). Syntax setLightShadowMap(LightShadowMap *lm )
Returns No return value. Examples // While traversing the shadow maps in "ShadowMapPass::render". LightShadowMap *lsm = shadowMaps[i]; mShadowManager->setLightShadowMap( lsm ); |