---------------------------------------------------------------------------- Setup pass - needs scenegraph data because the lightmap will change across several materials. ----------------------------------------------------------------------------
| 442 | // several materials. |
| 443 | //---------------------------------------------------------------------------- |
| 444 | bool 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 | |
| 462 | void MatInstance::setTransforms(const MatrixSet &matrixSet, SceneRenderState *state) |
| 463 | { |
no outgoing calls
no test coverage detected