From 3b7b0489c1e23dad5dbcc2a2646d1c389cdcef8e Mon Sep 17 00:00:00 2001 From: MikiP98 <79966387+MikiP98@users.noreply.github.com> Date: Sat, 16 Nov 2024 21:39:26 +0100 Subject: [PATCH] Revert "potential fix for cloud depth intersection max distance being too short for DH LODs" This reverts commit 23ea37e5bc5d9e709670ae7774b837f66ab13062. --- 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 9a6381a..a90c8b9 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 = dhFarPlane; + float maxdist = dhRenderDistance + 16 * 32; #else float maxdist = far + 16*5.0; #endif