fix my oopsi doopsi

This commit is contained in:
Xonk 2024-06-28 15:38:51 -04:00
parent 731cf854d3
commit dd35c0cb9d
2 changed files with 4 additions and 4 deletions

View File

@ -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;
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);
VolumetricClouds.a = mix(VolumetricClouds.a, 1.0, (1.0-skyhole) * caveDetection);
#endif
#endif

View File

@ -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)