make VL fog exist when clouds are turned off

This commit is contained in:
Xonk
2023-06-14 18:42:33 -04:00
parent 06a764f437
commit b19c03d6b8
5 changed files with 78 additions and 79 deletions

View File

@ -211,7 +211,7 @@ void main() {
vec3 fragpos = toScreenSpace(vec3(tc/RENDER_SCALE,z));
#ifdef Cloud_Fog
vec4 VL_CLOUDFOG = InsideACloudFog(fragpos, vec2(R2_dither(),blueNoise()), lightCol.rgb/80., moonColor/150., (avgAmbient*2.0) * 8./150./3.);
gl_FragData[0] = clamp(VL_CLOUDFOG,0.0,65000.);
@ -220,6 +220,7 @@ void main() {
gl_FragData[0] = clamp(VL_Fog,0.0,65000.);
#endif
} else {
float dirtAmount = Dirt_Amount;