mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-22 00:37:35 +08:00
fix my oopsi doopsi
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user