Skip to content

Commit 224017e

Browse files
authored
bugfix(heightmap): Disable old uv adjument for cliffs (TheSuperHackers#2038)
1 parent ae22809 commit 224017e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Core/GameEngineDevice/Source/W3DDevice/GameClient/WorldHeightMap.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,11 @@ Bool WorldHeightMap::getUVForTileIndex(Int ndx, Short tileNdx, float U[4], float
17421742
return info.flip;
17431743
}
17441744
}
1745-
#define DO_OLD_UV
1745+
1746+
// TheSuperHackers @bugfix xezon 11/12/2025 Disables the old uv adjustment for cliffs,
1747+
// because it produces bad uv tiles on steep terrain and is also not helping performance.
1748+
// @todo Delete this code when we are certain we never need this again.
1749+
//#define DO_OLD_UV
17461750
#ifdef DO_OLD_UV
17471751
// old uv adjustment for cliffs
17481752
static Real STRETCH_LIMIT = 1.5f; // If it is stretching less than this, don't adjust.

0 commit comments

Comments
 (0)