From fd13d0dcfe2bfdfa48a0693c4b3c4753860ffc4d Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 22 Apr 2026 12:33:35 +0200 Subject: [PATCH] auto-git: [change] src/runtime-three/runtime-project-time.ts --- src/runtime-three/runtime-project-time.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/runtime-three/runtime-project-time.ts b/src/runtime-three/runtime-project-time.ts index 8e185f89..555ec02c 100644 --- a/src/runtime-three/runtime-project-time.ts +++ b/src/runtime-three/runtime-project-time.ts @@ -743,12 +743,15 @@ function resolveTimeDrivenBackground( ]); if (daylikeImageBackground !== null) { + const nightOverlay = + hasConfiguredImageBackground(nightBackground) && + nightBackground.assetId !== daylikeImageBackground.assetId + ? resolveBackgroundImageOverlay(nightBackground, twilightNightOpacity) + : null; + return { background: daylikeImageBackground, - nightBackgroundOverlay: resolveBackgroundImageOverlay( - nightBackground, - twilightNightOpacity - ) + nightBackgroundOverlay: nightOverlay }; }