mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix for Issue #124 for CustomMaterial Refraction
This commit is contained in:
parent
aa3a6d52ff
commit
0047842b33
3 changed files with 11 additions and 4 deletions
|
|
@ -236,7 +236,7 @@ GFXTexHandle ReflectionManager::allocRenderTarget( const Point2I &size )
|
|||
avar("%s() - mReflectTex (line %d)", __FUNCTION__, __LINE__) );
|
||||
}
|
||||
|
||||
GFXTextureObject* ReflectionManager::getRefractTex()
|
||||
GFXTextureObject* ReflectionManager::getRefractTex( bool forceUpdate )
|
||||
{
|
||||
GFXTarget *target = GFX->getActiveRenderTarget();
|
||||
GFXFormat targetFormat = target->getFormat();
|
||||
|
|
@ -261,7 +261,7 @@ GFXTextureObject* ReflectionManager::getRefractTex()
|
|||
mUpdateRefract = true;
|
||||
}
|
||||
|
||||
if ( mUpdateRefract )
|
||||
if ( forceUpdate || mUpdateRefract )
|
||||
{
|
||||
target->resolveTo( mRefractTex );
|
||||
mUpdateRefract = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue