From 6759d09ecac8a15f709ced76a03c73c2f0de13c9 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 28 Apr 2026 14:27:34 +0200 Subject: [PATCH] Apply celestial light horizon fading logic to day/night state --- src/runtime-three/runtime-project-time.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-project-time.ts b/src/runtime-three/runtime-project-time.ts index 7d0c1fb0..0e2ee6ef 100644 --- a/src/runtime-three/runtime-project-time.ts +++ b/src/runtime-three/runtime-project-time.ts @@ -993,7 +993,12 @@ export function resolveRuntimeDayNightWorldState( timeOfDay.dusk.lightIntensityFactor, 0, phaseWeights - ) * smoothstep(-0.16, 0.18, sunDirection.y); + ) * + smoothstep( + CELESTIAL_LIGHT_HORIZON_FADE_START, + CELESTIAL_LIGHT_HORIZON_FADE_END, + sunDirection.y + ); const ambientFactor = blendScalarByWeights( 1, timeOfDay.dawn.ambientIntensityFactor,