Viewport fix for PostFX and SSAO

- General fix for PostFX render targets to properly support the GFX
viewport setting.  This is an opt-in change through the use of the new
mTargetViewport property as most PostFX run fine with their assumption
of the viewport being the whole rendering target.
- The SSAO PostFX has been modified to use the new mTargetViewport
property.  This allows correct rendering in a side-by-side view such as
with the Oculus Rift, or any other constrained viewport rendering.
This commit is contained in:
DavidWyand-GG 2013-10-24 00:28:13 -04:00
parent c65cca26dd
commit 88f2a4d903
5 changed files with 81 additions and 2 deletions

View file

@ -170,6 +170,7 @@ protected:
PFXRenderTime mRenderTime;
PFXTargetClear mTargetClear;
PFXTargetViewport mTargetViewport;
String mRenderBin;