Skip to content

Commit 6b726d7

Browse files
authored
bugfix(heightmap): Fix zagged shapes on steep diagonal terrain (#2406)
1 parent 20513cd commit 6b726d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,10 +1735,10 @@ Bool WorldHeightMap::getUVForTileIndex(Int ndx, Short tileNdx, float U[4], float
17351735
}
17361736
}
17371737

1738-
// TheSuperHackers @bugfix xezon 11/12/2025 Disables the old uv adjustment for cliffs,
1739-
// because it produces bad uv tiles on steep terrain and is also not helping performance.
1740-
// @todo Delete this code when we are certain we never need this again.
1741-
//#define DO_OLD_UV
1738+
// TheSuperHackers @info xezon 11/12/2025 The old uv adjustment for cliffs produces bad uv tiles on steep terrain
1739+
// and is also not helping performance. But we cannot just remove it, because it is required to render smooth
1740+
// steep diagonal slopes.
1741+
#define DO_OLD_UV
17421742
#ifdef DO_OLD_UV
17431743
// old uv adjustment for cliffs
17441744
static Real STRETCH_LIMIT = 1.5f; // If it is stretching less than this, don't adjust.

0 commit comments

Comments
 (0)