mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
more gfx shadowvar cleanups
This commit is contained in:
parent
aad3578d1c
commit
33ebe34440
4 changed files with 9 additions and 9 deletions
|
|
@ -367,7 +367,7 @@ void DeferredBumpFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|||
|
||||
if ( fd.features.hasFeature( MFT_DetailNormalMap ) )
|
||||
{
|
||||
Var *bumpMap = (Var*)LangElement::find( "detailBumpMap" );
|
||||
bumpMap = (Var*)LangElement::find( "detailBumpMap" );
|
||||
if ( !bumpMap )
|
||||
{
|
||||
bumpMap = new Var;
|
||||
|
|
@ -378,7 +378,7 @@ void DeferredBumpFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|||
bumpMap->constNum = Var::getTexUnitNum();
|
||||
}
|
||||
|
||||
Var* bumpMapTex = (Var*)LangElement::find("detailBumpMap");
|
||||
bumpMapTex = (Var*)LangElement::find("detailBumpMap");
|
||||
if (!bumpMapTex)
|
||||
{
|
||||
bumpMap->setType("SamplerState");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue