From 1ef906a8eb4a9ee9d6c6ddbe9b87d366abf6d63e Mon Sep 17 00:00:00 2001 From: Xonk Date: Wed, 28 Jun 2023 19:02:45 -0400 Subject: [PATCH] forgot a toggle --- shaders/lib/volumetricFog.glsl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shaders/lib/volumetricFog.glsl b/shaders/lib/volumetricFog.glsl index 2fe93dd..fe16389 100644 --- a/shaders/lib/volumetricFog.glsl +++ b/shaders/lib/volumetricFog.glsl @@ -43,8 +43,11 @@ float cloudVol(in vec3 pos){ float RainFog = max(fog_shape*10. - 7.,0.5) * exp2( -max((pos.y - SEA_LEVEL) / 25.,0.0)) * 5. * rainStrength * noPuddleAreas * RainFog_amount; - // sandstorms and snowstorms - if(sandStorm > 0 || snowStorm > 0) CloudyFog = mix(CloudyFog, max(densityAtPosFog((samplePos2 - vec3(frameTimeCounter,0,frameTimeCounter)*10) * 100.0 ) - 0.2,0.0) * heightlimit, sandStorm+snowStorm); + + #ifdef Biome_specific_environment + // sandstorms and snowstorms + if(sandStorm > 0 || snowStorm > 0) CloudyFog = mix(CloudyFog, max(densityAtPosFog((samplePos2 - vec3(frameTimeCounter,0,frameTimeCounter)*10) * 100.0 ) - 0.2,0.0) * heightlimit, sandStorm+snowStorm); + #endif TimeOfDayFog(UniformFog, CloudyFog);