From cf333c73b12eb981f22f41e70e314bf633014645 Mon Sep 17 00:00:00 2001 From: Xonk Date: Fri, 15 Nov 2024 20:10:52 -0500 Subject: [PATCH] potential fix for cloud depth intersection max distance being too short for DH LODs --- shaders/lib/volumetricClouds.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shaders/lib/volumetricClouds.glsl b/shaders/lib/volumetricClouds.glsl index a90c8b9..9a6381a 100644 --- a/shaders/lib/volumetricClouds.glsl +++ b/shaders/lib/volumetricClouds.glsl @@ -359,7 +359,7 @@ vec3 getRayOrigin( return position; } - +// uniform float dhFarPlane; vec4 GetVolumetricClouds( vec3 viewPos, vec2 dither, @@ -382,7 +382,7 @@ vec4 GetVolumetricClouds( float heightRelativeToClouds = clamp(1.0 - max(cameraPosition.y - minHeight,0.0) / 100.0 ,0.0,1.0); #if defined DISTANT_HORIZONS - float maxdist = dhRenderDistance + 16 * 32; + float maxdist = dhFarPlane; #else float maxdist = far + 16*5.0; #endif