fix skylight in water under caves, fix tiny bloomy fog issue

This commit is contained in:
Xonk
2023-06-22 13:29:02 -04:00
parent ea87379139
commit 31af0de256
4 changed files with 48 additions and 14 deletions

View File

@ -243,7 +243,7 @@ void main() {
#endif
vec4 vl = BilateralUpscale(colortex0, depthtex1, gl_FragCoord.xy, frDepth, vec2(0.0));
color *= vl.a;
if (TranslucentShader.a > 0.0){
#ifdef Glass_Tint
@ -257,6 +257,7 @@ void main() {
#endif
}
//cave fog
#ifdef Cave_fog
if (isEyeInWater == 0){
@ -274,6 +275,7 @@ void main() {
vl.a *= fogfade*0.7+0.3 ;
}
color *= vl.a;
color += vl.rgb;
// bloomy rain effect