atmosphere: raise sky horizon color band

This commit is contained in:
Richard Zink committed 2026-10-12 15:18:11 +02:00
1 parent a06f7038d8
commit e9b47c5857
1 file changed
+2 -2
+2 -2
View File
@@ -383,7 +383,7 @@ var FRAG_SRC = [
// skyT floor at 0.5: at and below the horizon the sky keeps
// the exact horizon colour - the same value the terrain's
// distance fog saturates to, so no seam at the silhouette.
'float skyT = clamp(rd.y * 0.7 + 0.5, 0.5, 1.0);',
'float skyT = clamp(rd.y * 0.55 + 0.5, 0.5, 1.0);',
'vec3 col = mix(uBg, uSky, skyT);',
'if (uPhysicalSkyOn > 0.5) {',
'float cosT = dot(rd, uSunDir);',
@@ -492,7 +492,7 @@ var FRAG_SRC = [
// the ground has a different colour than the sky next to it
// and reads as a hard edge.
'if (uPhysical > 0.5) {',
'float lowBand = 1.0 - smoothstep(-0.03, 0.20, rd.y);',
'float lowBand = 1.0 - smoothstep(-0.08, 0.35, rd.y);',
'float cosTA = dot(rd, uSunDir);',
'float phaseA = 0.5 + 0.5 * cosTA * cosTA;',
'col = mix(col, uAirColor * phaseA * 1.25, lowBand * 0.92);',