mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 04:45:31 +00:00
Reduce innecesary changes on Render Target textures.
This commit is contained in:
parent
c354f59b72
commit
c0b2e6536b
7 changed files with 29 additions and 9 deletions
|
|
@ -539,9 +539,10 @@ void PlaneReflector::updateReflection( const ReflectParams ¶ms )
|
|||
if ( texResize ||
|
||||
reflectTex.isNull() ||
|
||||
reflectTex->getFormat() != REFLECTMGR->getReflectFormat() )
|
||||
{
|
||||
reflectTex = REFLECTMGR->allocRenderTarget( texSize );
|
||||
|
||||
GFXTexHandle depthBuff = LightShadowMap::_getDepthTarget( texSize.x, texSize.y );
|
||||
depthBuff = LightShadowMap::_getDepthTarget( texSize.x, texSize.y );
|
||||
}
|
||||
|
||||
// store current matrices
|
||||
GFXTransformSaver saver;
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ protected:
|
|||
public:
|
||||
|
||||
GFXTextureTargetRef reflectTarget;
|
||||
GFXTexHandle reflectTex;
|
||||
GFXTexHandle reflectTex, depthBuff;;
|
||||
PlaneF refplane;
|
||||
bool objectSpace;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue