mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-05-17 03:06:40 +00:00
adds multiple targets to the posteffect class
These changes allows for multiple color targets from a post effect pass. This is not 100% complete yet as the api still expects 1 target out from a posteffect and will not pass those on to other stages in a posteffect chain but will be adding that soon. This is a working state and everything renders correctly here.
This commit is contained in:
parent
10cff00c23
commit
60e659aedc
4 changed files with 494 additions and 508 deletions
|
|
@ -228,8 +228,8 @@ void PostEffectVis::onPFXProcessed( PostEffect *pfx )
|
|||
|
||||
GFXTextureObject *tex;
|
||||
|
||||
if ( pfx->mTargetTex )
|
||||
tex = pfx->mTargetTex;
|
||||
if ( pfx->mTargetTex[0])
|
||||
tex = pfx->mTargetTex[0];
|
||||
else
|
||||
tex = PFXMGR->getBackBufferTex();
|
||||
|
||||
|
|
@ -245,7 +245,7 @@ void PostEffectVis::onPFXProcessed( PostEffect *pfx )
|
|||
|
||||
|
||||
if ( tex )
|
||||
dSprintf( caption, 256, "%s[%i] target - %s [ %ix%i ]", name, pfx->getId(), pfx->mTargetName.c_str(), tex->getWidth(), tex->getHeight() );
|
||||
dSprintf( caption, 256, "%s[%i] target - %s [ %ix%i ]", name, pfx->getId(), pfx->mTargetName[0].c_str(), tex->getWidth(), tex->getHeight());
|
||||
else
|
||||
dSprintf( caption, 256, "%s[%i] target", name, pfx->getId() );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue