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:
DavidWyand-GG 2013-10-31 16:54:22 -04:00
parent f790d58978
commit 39ab93636c
4 changed files with 39 additions and 2 deletions

View file

@ -290,6 +290,7 @@ bool ReflectionManager::_handleDeviceEvent( GFXDevice::GFXDeviceEventType evt )
switch( evt )
{
case GFXDevice::deStartOfFrame:
case GFXDevice::deStartOfField:
mUpdateRefract = true;
break;