From 294ee8b6f32ec45095c51c766dca0c117599cf4b Mon Sep 17 00:00:00 2001 From: Xonk Date: Sun, 16 Mar 2025 23:23:09 -0400 Subject: [PATCH] make cloud shadow strength slider work again --- shaders/lib/volumetricClouds.glsl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shaders/lib/volumetricClouds.glsl b/shaders/lib/volumetricClouds.glsl index a76e7dd..5bdcfcc 100644 --- a/shaders/lib/volumetricClouds.glsl +++ b/shaders/lib/volumetricClouds.glsl @@ -148,6 +148,9 @@ float GetCloudShadow(vec3 playerPos, vec3 sunVector){ startPosition = playerPos + sunVector / abs(sunVector.y) * max(CloudLayer2_height - playerPos.y, 0.0); cloudShadows += getCloudShape(ALTOSTRATUS_LAYER, 0, startPosition, CloudLayer2_height, CloudLayer2_height)*dailyWeatherParams1.z * (1.0-abs(WsunVec.y)); #endif + + cloudShadows *= CLOUD_SHADOW_STRENGTH; + #if defined CloudLayer0 || defined CloudLayer1 || defined CloudLayer2 totalShadow *= exp((cloudShadows*cloudShadows) * -200.0); #endif