MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setupPass

Method setupPass

Engine/source/materials/matInstance.cpp:444–460  ·  view source on GitHub ↗

---------------------------------------------------------------------------- Setup pass - needs scenegraph data because the lightmap will change across several materials. ----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

442// several materials.
443//----------------------------------------------------------------------------
444bool MatInstance::setupPass(SceneRenderState * state, const SceneData &sgData )
445{
446 PROFILE_SCOPE( MatInstance_SetupPass );
447
448 if( !mProcessedMaterial )
449 return false;
450
451 ++mCurPass;
452
453 if ( !mProcessedMaterial->setupPass( state, sgData, mCurPass ) )
454 {
455 mCurPass = -1;
456 return false;
457 }
458
459 return true;
460}
461
462void MatInstance::setTransforms(const MatrixSet &matrixSet, SceneRenderState *state)
463{

Callers 15

renderMethod · 0.45
_renderObjectMethod · 0.45
innerRenderMethod · 0.45
_renderMoonMethod · 0.45
_renderObjectMethod · 0.45
innerRenderMethod · 0.45
innerRenderMethod · 0.45
_renderCoronaMethod · 0.45
onRenderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected