mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +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
|
|
@ -67,6 +67,20 @@ enum PFXTargetClear
|
|||
|
||||
DefineEnumType( PFXTargetClear );
|
||||
|
||||
|
||||
/// PFXTargetViewport specifies how the viewport should be
|
||||
/// set up for a PostEffect's target.
|
||||
enum PFXTargetViewport
|
||||
{
|
||||
/// The default viewport set up to match the target size
|
||||
PFXTargetViewport_TargetSize,
|
||||
|
||||
/// Use the current GFX viewport
|
||||
PFXTargetViewport_GFXViewport,
|
||||
};
|
||||
|
||||
DefineEnumType( PFXTargetViewport );
|
||||
|
||||
///
|
||||
struct PFXFrameState
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue