From 43bd4d0cf7a772a236126c10fc3c8364ce9919f2 Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Wed, 31 Dec 2025 11:00:12 +0100 Subject: [PATCH] bugfix(heightmap): Disable old uv adjument for cliffs --- .../Source/W3DDevice/GameClient/WorldHeightMap.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/GameEngineDevice/Source/W3DDevice/GameClient/WorldHeightMap.cpp b/Core/GameEngineDevice/Source/W3DDevice/GameClient/WorldHeightMap.cpp index 52384dfed58..18d134fb532 100644 --- a/Core/GameEngineDevice/Source/W3DDevice/GameClient/WorldHeightMap.cpp +++ b/Core/GameEngineDevice/Source/W3DDevice/GameClient/WorldHeightMap.cpp @@ -1742,7 +1742,11 @@ Bool WorldHeightMap::getUVForTileIndex(Int ndx, Short tileNdx, float U[4], float return info.flip; } } -#define DO_OLD_UV + +// TheSuperHackers @bugfix xezon 11/12/2025 Disables the old uv adjustment for cliffs, +// because it produces bad uv tiles on steep terrain and is also not helping performance. +// @todo Delete this code when we are certain we never need this again. +//#define DO_OLD_UV #ifdef DO_OLD_UV // old uv adjustment for cliffs static Real STRETCH_LIMIT = 1.5f; // If it is stretching less than this, don't adjust.