From f9f9fc602c8661e34a7f524967e3e695eeeed534 Mon Sep 17 00:00:00 2001 From: "Dileep V. Reddy" Date: Thu, 15 May 2025 12:01:17 -0600 Subject: [PATCH] ThickFogDistance and ThickFogMultiplier added to GLES main.fp shader file. --- wadsrc/static/shaders_gles/glsl/main.fp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wadsrc/static/shaders_gles/glsl/main.fp b/wadsrc/static/shaders_gles/glsl/main.fp index 90429f8e0..c4d25133e 100644 --- a/wadsrc/static/shaders_gles/glsl/main.fp +++ b/wadsrc/static/shaders_gles/glsl/main.fp @@ -514,6 +514,13 @@ void main() fogdist = max(16.0, distance(pixelpos.xyz, uCameraPos.xyz)); #endif + if (uThickFogDistance > 0.0) + { + if (fogdist > uThickFogDistance) + { + fogdist = fogdist + uThickFogMultiplier * (fogdist - uThickFogDistance); + } + } fogfactor = exp2 (uFogDensity * fogdist); } #endif