mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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
|
|
@ -190,6 +190,7 @@ singleton PostEffect( SSAOPostFx )
|
|||
|
||||
target = "$outTex";
|
||||
targetScale = "0.5 0.5";
|
||||
targetViewport = "PFXTargetViewport_GFXViewport";
|
||||
|
||||
singleton PostEffect()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue