From dd35c0cb9d3190d25a3153f7d4ffceae2a4a7a78 Mon Sep 17 00:00:00 2001 From: Xonk Date: Fri, 28 Jun 2024 15:38:51 -0400 Subject: [PATCH] fix my oopsi doopsi --- shaders/dimensions/composite2.fsh | 6 +++--- shaders/lib/settings.glsl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shaders/dimensions/composite2.fsh b/shaders/dimensions/composite2.fsh index dcf3b8a..49dacf6 100644 --- a/shaders/dimensions/composite2.fsh +++ b/shaders/dimensions/composite2.fsh @@ -400,9 +400,9 @@ void main() { vec4 VolumetricClouds = renderClouds(viewPos0, vec2(noise_1,noise_2), directLightColor, indirectLightColor, cloudDepth); #ifdef CAVE_FOG - float skyhole = (1.0-pow(clamp(1.0-pow(max(playerPos_normalized.y - 0.6,0.0)*5.0,2.0),0.0,1.0),2)) * caveDetection; - VolumetricClouds.rgb *=skyhole; - VolumetricClouds.a = mix(1.0,VolumetricClouds.a, skyhole); + float skyhole = (1.0-pow(clamp(1.0-pow(max(playerPos_normalized.y - 0.6,0.0)*5.0,2.0),0.0,1.0),2)* caveDetection) ; + VolumetricClouds.rgb *= skyhole; + VolumetricClouds.a = mix(VolumetricClouds.a, 1.0, (1.0-skyhole) * caveDetection); #endif #endif diff --git a/shaders/lib/settings.glsl b/shaders/lib/settings.glsl index 041fb57..076084f 100644 --- a/shaders/lib/settings.glsl +++ b/shaders/lib/settings.glsl @@ -1,4 +1,4 @@ -#define SHADER_VERSION_LABEL 472 // [472] +#define SHADER_VERSION_LABEL 473 // [473] #define saturate(x) clamp(x,0.0,1.0)