mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Viewport Fix for Glow PostFX
- Modified the glow postFX to now respect the current viewport settings. - This fixes glow rendering for the Oculus Rift and any other time the glow rendering should be limited to a region of the back buffer.
This commit is contained in:
parent
71cf58b8c5
commit
c65cca26dd
|
|
@ -151,6 +151,9 @@ void RenderGlowMgr::render( SceneRenderState *state )
|
|||
|
||||
GFXTransformSaver saver;
|
||||
|
||||
// Respect the current viewport
|
||||
mNamedTarget.setViewport(GFX->getViewport());
|
||||
|
||||
// Tell the superclass we're about to render, preserve contents
|
||||
const bool isRenderingToTarget = _onPreRender( state, true );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue