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)