mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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
|
|
@ -290,6 +290,7 @@ bool ReflectionManager::_handleDeviceEvent( GFXDevice::GFXDeviceEventType evt )
|
|||
switch( evt )
|
||||
{
|
||||
case GFXDevice::deStartOfFrame:
|
||||
case GFXDevice::deStartOfField:
|
||||
|
||||
mUpdateRefract = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue