mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 04:15:36 +00:00
Update blendContrast, add glsl support
This commit is contained in:
parent
1ffec9ab56
commit
3c165b7d45
2 changed files with 15 additions and 1 deletions
|
|
@ -1456,7 +1456,7 @@ void TerrainHeightMapBlendHLSL::processPix(Vector<ShaderComponent*>& componentLi
|
|||
detailH, blendDepth));
|
||||
}
|
||||
|
||||
meta->addStatement(new GenOp(" @ = ((@ - 0.5f) * max(@, 0.0f)) + 0.5f;\r\n",
|
||||
meta->addStatement(new GenOp(" @ = (@ * 2.0f - 1.0f) * @ + 0.5f;\r\n",
|
||||
detailH, detailH, blendContrast));
|
||||
|
||||
meta->addStatement(new GenOp(" }\r\n"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue