From 0171b41502d316666c99e71849be454b9c58c898 Mon Sep 17 00:00:00 2001 From: Xonk Date: Sun, 11 Jun 2023 00:28:00 -0400 Subject: [PATCH] AUAUGHAUHGUAGHAGUH fix the fix again --- shaders/lib/volumetricClouds.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/lib/volumetricClouds.glsl b/shaders/lib/volumetricClouds.glsl index 2c6c632..f2124d7 100644 --- a/shaders/lib/volumetricClouds.glsl +++ b/shaders/lib/volumetricClouds.glsl @@ -333,7 +333,7 @@ vec4 renderClouds( vec3 normView = normalize(dV_view); // Assume fog color = sky gradient at long distance vec3 fogColor = skyFromTex(normView, colortex4)/150. * 5.0; - float dist = min(cameraPosition.y+CumulusHeight,max(CumulusHeight,150))/(abs(normView.y)+0.001); + float dist = max(cameraPosition.y+CumulusHeight,max(CumulusHeight,150))/(abs(normView.y)+0.001); float fog = exp(dist / -5000.0 * (1.0+rainCloudwetness*8.)); // if(IntersecTerrain) fog = 1.0;