mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 06:04:37 +00:00
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:
parent
60e659aedc
commit
d33edb051c
5 changed files with 43 additions and 35 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue