mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Update ReflectionManager on Scene Field Change
During side-by-side rendering the refraction texture needs to be updated for both the left and right fields. These changes add a new GFXDevice event type to track when a field is about to be rendered. The ReflectionManager listens to this new event and ensures that the refraction texture will be updated if it is referenced by a material.
This commit is contained in:
parent
f790d58978
commit
39ab93636c
4 changed files with 39 additions and 2 deletions
|
|
@ -209,6 +209,12 @@ public:
|
|||
|
||||
/// The device is about to finish rendering a frame
|
||||
deEndOfFrame,
|
||||
|
||||
/// The device has started rendering a frame's field (such as for side-by-side rendering)
|
||||
deStartOfField,
|
||||
|
||||
/// The device is about to finish rendering a frame's field
|
||||
deEndOfField,
|
||||
};
|
||||
|
||||
typedef Signal <bool (GFXDeviceEventType)> DeviceEventSignal;
|
||||
|
|
@ -735,6 +741,8 @@ public:
|
|||
virtual void clear( U32 flags, ColorI color, F32 z, U32 stencil ) = 0;
|
||||
virtual bool beginScene();
|
||||
virtual void endScene();
|
||||
virtual void beginField();
|
||||
virtual void endField();
|
||||
|
||||
virtual GFXTexHandle & getFrontBuffer(){ return mFrontBuffer[mCurrentFrontBufferIdx]; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue