MCPcopy Create free account
hub / github.com/OGRECave/ogre / _compileOutputOperation

Method _compileOutputOperation

OgreMain/src/OgreCompositorInstance.cpp:508–528  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

506}
507//-----------------------------------------------------------------------
508void 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//-----------------------------------------------------------------------
530void CompositorInstance::setTechnique(CompositionTechnique* tech, bool reuseTextures)
531{

Callers 2

_compileMethod · 0.80

Calls 4

getVisibilityMaskMethod · 0.80
getShadowsEnabledMethod · 0.80
getInputModeMethod · 0.80
getLodBiasMethod · 0.45

Tested by

no test coverage detected