pass on the multiple target results

The changes to pass on the results for each target to the children of that posteffect
This commit is contained in:
marauder2k7 2026-04-19 17:36:54 +01:00
parent 60e659aedc
commit d33edb051c
5 changed files with 43 additions and 35 deletions

View file

@ -284,14 +284,14 @@ void PostEffectManager::renderEffects( const SceneRenderState *state,
// This is used to pass the output texture
// of one effect into the next effect.
GFXTexHandle chainTex;
GFXTexHandle chainTex[PostEffect::NumMRTTargets];
// Process the effects.
for ( U32 i = 0; i < effects->size(); i++ )
{
PostEffect *effect = (*effects)[i];
AssertFatal( effect != NULL, "Somehow this happened" );
effect->process( state, chainTex );
effect->process(state, chainTex, PostEffect::NumMRTTargets);
}
}