Revert "potential fix for cloud depth intersection max distance being too short for DH LODs"

This reverts commit 23ea37e5bc.
This commit is contained in:
MikiP98 2024-11-16 21:39:26 +01:00
parent 07f905fb8e
commit 3b7b0489c1

View File

@ -359,7 +359,7 @@ vec3 getRayOrigin(
return position; return position;
} }
// uniform float dhFarPlane;
vec4 GetVolumetricClouds( vec4 GetVolumetricClouds(
vec3 viewPos, vec3 viewPos,
vec2 dither, 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); float heightRelativeToClouds = clamp(1.0 - max(cameraPosition.y - minHeight,0.0) / 100.0 ,0.0,1.0);
#if defined DISTANT_HORIZONS #if defined DISTANT_HORIZONS
float maxdist = dhFarPlane; float maxdist = dhRenderDistance + 16 * 32;
#else #else
float maxdist = far + 16*5.0; float maxdist = far + 16*5.0;
#endif #endif