mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-05-07 22:36:08 +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
|
|
@ -144,7 +144,7 @@ void RenderFormatToken::process(SceneRenderState *state, RenderPassStateBin *cal
|
|||
|
||||
// Run the PostEffect which copies data into the new target.
|
||||
if ( mCopyPostEffect.isValid() )
|
||||
mCopyPostEffect->process( state, curBackBuffer, &mTarget.getViewport() );
|
||||
mCopyPostEffect->process( state, &curBackBuffer,1, &mTarget.getViewport() );
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ void RenderFormatToken::process(SceneRenderState *state, RenderPassStateBin *cal
|
|||
{
|
||||
// Need to create a texhandle here, since inOutTex gets assigned during process()
|
||||
GFXTexHandle inOutTex = mTargetColorTexture[mTargetChainIdx];
|
||||
mResolvePostEffect->process( state, inOutTex, &mTarget.getViewport() );
|
||||
mResolvePostEffect->process( state, &inOutTex, 1, &mTarget.getViewport() );
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue