mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-04 20:15:16 +00:00
Merge pull request #158 from DavidWyand-GG/issue124-RevertMaterialChanges
Partial revert of changes from Pull #125
This commit is contained in:
commit
a98dfb9218
1 changed files with 8 additions and 7 deletions
|
|
@ -347,13 +347,14 @@ void ProcessedCustomMaterial::setTextureStages( SceneRenderState *state, const S
|
|||
}
|
||||
case Material::BackBuff:
|
||||
{
|
||||
if ( sgData.reflectTex )
|
||||
GFX->setTexture( samplerRegister, sgData.reflectTex );
|
||||
else
|
||||
{
|
||||
GFXTextureObject *refractTex = REFLECTMGR->getRefractTex( true );
|
||||
GFX->setTexture( samplerRegister, refractTex );
|
||||
}
|
||||
GFX->setTexture( samplerRegister, sgData.backBuffTex );
|
||||
//if ( sgData.reflectTex )
|
||||
// GFX->setTexture( samplerRegister, sgData.reflectTex );
|
||||
//else
|
||||
//{
|
||||
// GFXTextureObject *refractTex = REFLECTMGR->getRefractTex( true );
|
||||
// GFX->setTexture( samplerRegister, refractTex );
|
||||
//}
|
||||
break;
|
||||
}
|
||||
case Material::ReflectBuff:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue