-----------------------------------------------------------------------
| 506 | } |
| 507 | //----------------------------------------------------------------------- |
| 508 | void CompositorInstance::_compileOutputOperation(TargetOperation &finalState) |
| 509 | { |
| 510 | /// Final target |
| 511 | CompositionTargetPass *tpass = mTechnique->getOutputTargetPass(); |
| 512 | |
| 513 | /// Logical-and together the visibilityMask, and multiply the lodBias |
| 514 | finalState.visibilityMask &= tpass->getVisibilityMask(); |
| 515 | finalState.lodBias *= tpass->getLodBias(); |
| 516 | finalState.materialScheme = tpass->getMaterialScheme(); |
| 517 | finalState.shadowsEnabled = tpass->getShadowsEnabled(); |
| 518 | |
| 519 | if(tpass->getInputMode() == CompositionTargetPass::IM_PREVIOUS) |
| 520 | { |
| 521 | /// Collect target state for previous compositor |
| 522 | /// The TargetOperation for the final target is collected separately as it is merged |
| 523 | /// with later operations |
| 524 | mPreviousInstance->_compileOutputOperation(finalState); |
| 525 | } |
| 526 | /// Collect passes |
| 527 | collectPasses(finalState, tpass); |
| 528 | } |
| 529 | //----------------------------------------------------------------------- |
| 530 | void CompositorInstance::setTechnique(CompositionTechnique* tech, bool reuseTextures) |
| 531 | { |
no test coverage detected