mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Turbulence respects side-by-side rendering
- PostEffect class now offers the current projection offset and target viewport as shader constants. - Turbulence postFX now takes the current projection offset into account. - Turbulence postFX now clamps itself to the current viewport. - Turbulence postFX now renders after the glow bin, specifically after the glow postFX renders. This ensures that it can take advantage of knowing the current viewport rather than affecting the entire render target.
This commit is contained in:
parent
b1b7a66d5b
commit
2077632a92
6 changed files with 55 additions and 10 deletions
|
|
@ -118,6 +118,8 @@ protected:
|
|||
|
||||
GFXShaderConstHandle *mViewportOffsetSC;
|
||||
|
||||
GFXShaderConstHandle *mTargetViewportSC;
|
||||
|
||||
GFXShaderConstHandle *mFogDataSC;
|
||||
GFXShaderConstHandle *mFogColorSC;
|
||||
GFXShaderConstHandle *mEyePosSC;
|
||||
|
|
@ -127,6 +129,7 @@ protected:
|
|||
GFXShaderConstHandle *mNearFarSC;
|
||||
GFXShaderConstHandle *mInvNearFarSC;
|
||||
GFXShaderConstHandle *mWorldToScreenScaleSC;
|
||||
GFXShaderConstHandle *mProjectionOffsetSC;
|
||||
GFXShaderConstHandle *mWaterColorSC;
|
||||
GFXShaderConstHandle *mWaterFogDataSC;
|
||||
GFXShaderConstHandle *mAmbientColorSC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue