mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 02:23:47 +00:00
Add global blendDepth slider and update default blendDepth for mats
This commit is contained in:
parent
db496fa0c4
commit
60a10f4334
5 changed files with 62 additions and 13 deletions
|
|
@ -803,7 +803,14 @@ bool TerrainCellMaterial::setupPass( const SceneRenderState *state,
|
|||
mConsts->set( mFogDataConst, fogData );
|
||||
}
|
||||
|
||||
mConsts->setSafe( mBlendDepthConst, Con::getFloatVariable("$Terrain::BlendDepth", 0.2f) );
|
||||
if (String::isEmpty(Con::getVariable("$Terrain::BlendDepth")))
|
||||
{
|
||||
mConsts->setSafe(mBlendDepthConst, 0.2f);
|
||||
}
|
||||
else
|
||||
{
|
||||
mConsts->setSafe(mBlendDepthConst, Con::getFloatVariable("$Terrain::BlendDepth"));
|
||||
}
|
||||
|
||||
mConsts->setSafe( mFogColorConst, sceneData.fogColor );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue