mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-18 20:00:56 +00:00
Revert - Merge pull request #962 Fix OpenGL new terrain blend
from BeamNG/fix_opengl_new_terrain_blend (reverted from commit a0d5dc25cd)
This commit is contained in:
parent
7097ce6466
commit
7962eef7dd
39 changed files with 86 additions and 842 deletions
|
|
@ -574,10 +574,6 @@ bool TerrainCellMaterial::_createPass( Vector<MaterialInfo*> *materials,
|
|||
matInfo->detailInfoVConst = pass->shader->getShaderConstHandle( avar( "$detailScaleAndFade%d", i ) );
|
||||
matInfo->detailInfoPConst = pass->shader->getShaderConstHandle( avar( "$detailIdStrengthParallax%d", i ) );
|
||||
|
||||
// New blending
|
||||
matInfo->lerpBlend = pass->shader->getShaderConstHandle("$lerpBlend");
|
||||
matInfo->blendDepth = pass->shader->getShaderConstHandle(avar("$blendDepth%d", i));
|
||||
|
||||
matInfo->detailTexConst = pass->shader->getShaderConstHandle( avar( "$detailMap%d", i ) );
|
||||
if ( matInfo->detailTexConst->isValid() )
|
||||
{
|
||||
|
|
@ -715,11 +711,6 @@ void TerrainCellMaterial::_updateMaterialConsts( Pass *pass )
|
|||
pass->consts->setSafe( matInfo->detailInfoVConst, detailScaleAndFade );
|
||||
pass->consts->setSafe( matInfo->detailInfoPConst, detailIdStrengthParallax );
|
||||
|
||||
// New blending
|
||||
bool lerpBlend = Con::getBoolVariable("$Pref::Terrain::LerpBlend", true);
|
||||
pass->consts->setSafe(matInfo->lerpBlend, lerpBlend ? 1.0f : 0.0f);
|
||||
pass->consts->setSafe(matInfo->blendDepth, matInfo->mat->getBlendDepth());
|
||||
|
||||
// macro texture info
|
||||
|
||||
F32 macroSize = matInfo->mat->getMacroSize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue