From e30af1f3df2bde7ad5e0e7d20afdff70b7b0c0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Ro=C3=9F?= Date: Sat, 5 Oct 2024 17:20:02 +0200 Subject: [PATCH] [Terrain] Removed scaling of fog ranges based on zoom This fixes visibility range decreasing massively on maximum weapon zoom of e.g. Mass Driver. This also brings it in line with the 'non-terrain' rendering. --- Descent3/terrainrender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Descent3/terrainrender.cpp b/Descent3/terrainrender.cpp index b37dba3db..5f8134be5 100644 --- a/Descent3/terrainrender.cpp +++ b/Descent3/terrainrender.cpp @@ -1372,7 +1372,7 @@ void RenderTerrain(uint8_t from_mine, int left, int top, int right, int bot) { #else const float kTerrainRenderDistance = 1200.0f; #endif - VisibleTerrainZ = kTerrainRenderDistance * Matrix_scale.z; + VisibleTerrainZ = kTerrainRenderDistance; Far_fog_border = VisibleTerrainZ; // Set up our z wall