From 291475eeb573893e9f11f867b6a3559fb9565572 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 23 Jun 2020 20:53:53 +1000 Subject: [PATCH] - simplify visibility calculation from changes performed in d80a32d37905e12e57d2c2e86097290dbf236114. * Achieves the exact same result in a cleaner fashion. --- source/build/src/polymost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index a308de6e0..ac5638519 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -266,7 +266,7 @@ static void polymost_updaterotmat(void) }; multiplyMatrix4f(matrix, tiltmatrix); renderSetViewMatrix(matrix); - renderSetVisibility(((float)(g_visibility) / (8.f / 15.f) / r_ambientlight) * fviewingrange * (4.f / (65536.f * 65536.f))); + renderSetVisibility(((float)(g_visibility) / r_ambientlight) * fviewingrange * (7.5f / (65536.f * 65536.f))); } static void polymost_flatskyrender(vec2f_t const* const dpxy, int32_t const n, int32_t method, const vec2_16_t& tilesiz);