mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Improve terrain rendering, handle bug with no detail
This commit is contained in:
parent
27641b16ca
commit
481e2a7230
5 changed files with 74 additions and 24 deletions
|
|
@ -1370,9 +1370,13 @@ void TerrainHeightMapBlendHLSL::processVert(Vector<ShaderComponent*>& componentL
|
|||
|
||||
MultiLine* meta = new MultiLine;
|
||||
|
||||
// Make sure the world to tangent transform
|
||||
// is created and available for the pixel shader.
|
||||
getOutViewToTangent(componentList, meta, fd);
|
||||
// Handle an edge-case when there are no detail-maps available
|
||||
if (fd.features.getNextFeatureIndex(MFT_TerrainDetailMap, -1) >= 0)
|
||||
{
|
||||
// Make sure the world to tangent transform
|
||||
// is created and available for the pixel shader.
|
||||
getOutViewToTangent(componentList, meta, fd);
|
||||
}
|
||||
|
||||
output = meta;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue