From 83bec11d61230fafd65c95e18269f5d5caa727d4 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Mon, 12 Oct 2026 16:50:07 +0200 Subject: [PATCH] atmosphere: keep Rayleigh sky behind terrain and make haze neutral --- vendor/clouds3d.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index ced988e..f773b30 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -368,8 +368,7 @@ var FRAG_SRC = [ 'float dens = exp(-alt / Hs) / Hs;', 'float dtau = uAtmoDensity * dens * step;', 'float transBefore = exp(-tau);', - 'float grayMix = clamp(tau / max(0.01, uAtmoGrayTau), 0.0, 1.0);', - 'vec3 atmoCol = mix(uAtmoBlueColor, uAtmoGrayColor, grayMix);', + 'vec3 atmoCol = uAtmoGrayColor;', 'vec3 light = uSunColor * uSunInt * sunPhase + uMoonColor * uMoonInt * moonPhase * 2.0 + max(vec3(uSkyAmb), uStarAmb * vec3(0.7, 0.85, 1.0)) * 0.65;', 'scatter += atmoCol * light * dtau * transBefore;', 'tau += dtau;',