mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
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:
parent
c65cca26dd
commit
88f2a4d903
5 changed files with 81 additions and 2 deletions
|
|
@ -170,6 +170,7 @@ protected:
|
|||
|
||||
PFXRenderTime mRenderTime;
|
||||
PFXTargetClear mTargetClear;
|
||||
PFXTargetViewport mTargetViewport;
|
||||
|
||||
String mRenderBin;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue