mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 20:40:35 +00:00
Add blend contrast slider
This commit is contained in:
parent
6f23dd191d
commit
1ffec9ab56
7 changed files with 152 additions and 29 deletions
|
|
@ -648,6 +648,7 @@ bool TerrainCellMaterial::_initShader(bool deferredMat,
|
|||
continue;
|
||||
|
||||
mMaterialInfos[i]->mBlendDepthConst = mShader->getShaderConstHandle(avar("$blendDepth%d", i));
|
||||
mMaterialInfos[i]->mBlendContrastConst = mShader->getShaderConstHandle(avar("$blendContrast%d", i));
|
||||
}
|
||||
|
||||
// If we're doing deferred it requires some
|
||||
|
|
@ -719,6 +720,7 @@ void TerrainCellMaterial::_updateMaterialConsts( )
|
|||
detailInfoArray[j] = detailIdStrengthParallax;
|
||||
|
||||
mConsts->setSafe(matInfo->mBlendDepthConst, matInfo->mat->getBlendDepth());
|
||||
mConsts->setSafe(matInfo->mBlendContrastConst, matInfo->mat->getBlendContrast());
|
||||
}
|
||||
|
||||
mConsts->setSafe(mDetailInfoVArrayConst, detailScaleAndFadeArray);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue