mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 09:38:52 +08:00
fix my oopsi doopsi
This commit is contained in:
parent
731cf854d3
commit
dd35c0cb9d
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user