LightingBasic - LuisAntonRebollo/Torque-3D-Wiki-Test GitHub Wiki
isCompatible() |
Checks to make sure that the graphics card is compatible with the current pixel shader version that is needed. Currently at least 1.0 is needed. Syntax isCompatible() Returns No return value. Examples // Make sure its valid... else fail! if ( !lm->isCompatible() ) return false; |
activate( SceneGraph *) |
In addition to calling its base classes active(SceneGraph*), it will also set the Scenegraph to enable post effect fog and tell the material manager not to use prepass. Syntax activate( SceneGraph *sceneManager);
Returns
|
deactivate() |
Will remove all the objects from the AdvancedLightBinManager and the PrePassRenderBin, then set them to NULL. It will deactivate the Shadow Manager, unregister all the advanced lighting features and then finally send a trigger to let everyone know the LightManager has been deactivated. Syntax deactivate() Returns No return value. Examples if (mLightManager) mLightManager->deactivate(); |
setLightInfo( ProcessedMaterial *, const Material *, const SceneGraphData &, const SceneState *, U32, GFXShaderConstBuffer * ) |
Will make sure that the current lighting constants are initialized, then it will update the lighting constants via _update4LightConsts::_update4LightConsts. Syntax setLightInfo(ProcessedMaterial *pmat, Material *mat, const SceneGraphData &sgData, SceneState *state, U32 pass, GFXShaderConstBuffer *shaderConsts )
Returns No return value. Examples // From inside of ProcessedShaderMaterial::setSceneInfo LIGHTMGR->setLightInfo( this, mMaterial, sgData, state, pass, shaderConsts ); |
setTextureStage( const SceneGraphData &sgData, const U32 currTexFlag, const U32 textureSlot, GFXShaderConstBuffer *shaderConsts, ShaderConstHandles *handles ) |
Will always return false. Syntax setTextureStage(const SceneGraphData &sgData, const U32 currTexFlag, const U32 textureSlot, GFXShaderConstBuffer *shaderConsts, ShaderConstHandles *handles )
Returns No return value. Examples // From inside of ProcessedCustomMaterial::setTextureStages lm->setTextureStage(sgData, currTexFlag, i, shaderConsts, handles ) |