add distance haze to cloud planes. fix weird stuff when atmosphere ground setting is turned off.

This commit is contained in:
Xonk
2025-03-10 20:39:00 -04:00
parent 2bc82146bb
commit 0bbe877f38
3 changed files with 44 additions and 15 deletions

View File

@ -489,7 +489,7 @@ void main() {
#ifdef SKY_GROUND
vec3 borderFogColor = skyGroundColor;
#else
vec3 borderFogColor = skyFromTex(playerPos_normalized, colortex4)/30.0;
vec3 borderFogColor = skyFromTex(playerPos_normalized, colortex4)/1200.0 * Sky_Brightness;
#endif
color.rgb = mix(color.rgb, borderFogColor, fog);