mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Fix lens flare in side-by-side view
This commit is contained in:
parent
c6d2456a7c
commit
784f6f92d8
5 changed files with 21 additions and 1 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "math/mathUtils.h"
|
||||
#include "math/util/frustum.h"
|
||||
#include "gfx/screenshot.h"
|
||||
#include "postFx/postEffectManager.h"
|
||||
|
||||
extern ColorI gCanvasClearColor;
|
||||
|
||||
|
|
@ -603,6 +604,8 @@ void PlaneReflector::updateReflection( const ReflectParams ¶ms )
|
|||
{
|
||||
// Store previous values
|
||||
RectI originalVP = GFX->getViewport();
|
||||
MatrixF origNonClipProjection = gClientSceneGraph->getNonClipProjection();
|
||||
PFXFrameState origPFXState = PFXMGR->getFrameState();
|
||||
|
||||
const FovPort *currentFovPort = GFX->getStereoFovPort();
|
||||
MatrixF inverseEyeTransforms[2];
|
||||
|
|
@ -655,6 +658,8 @@ void PlaneReflector::updateReflection( const ReflectParams ¶ms )
|
|||
// Restore previous values
|
||||
GFX->setFrustum(gfxFrustum);
|
||||
GFX->setViewport(originalVP);
|
||||
gClientSceneGraph->setNonClipProjection(origNonClipProjection);
|
||||
PFXMGR->setFrameState(origPFXState);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue