From f01f43f81088e85df3339c36444144bdf96cc1ca Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 22 Apr 2026 12:36:45 +0200 Subject: [PATCH] auto-git: [change] src/runtime-three/runtime-project-time.ts --- src/runtime-three/runtime-project-time.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/runtime-three/runtime-project-time.ts b/src/runtime-three/runtime-project-time.ts index 6398e87a..f54c89f9 100644 --- a/src/runtime-three/runtime-project-time.ts +++ b/src/runtime-three/runtime-project-time.ts @@ -733,11 +733,23 @@ function resolveTimeDrivenBackground( weights.night + weights.dawn * 0.5 + weights.dusk * 0.5; const daylikeImageBackground = weights.dawn > 1e-6 && hasConfiguredImageBackground(dawnBackground) - ? cloneWorldBackgroundSettings(dawnBackground) + ? { + mode: "image" as const, + assetId: dawnBackground.assetId, + environmentIntensity: dawnBackground.environmentIntensity + } : weights.dusk > 1e-6 && hasConfiguredImageBackground(duskBackground) - ? cloneWorldBackgroundSettings(duskBackground) + ? { + mode: "image" as const, + assetId: duskBackground.assetId, + environmentIntensity: duskBackground.environmentIntensity + } : hasConfiguredImageBackground(dayBackground) - ? cloneWorldBackgroundSettings(dayBackground) + ? { + mode: "image" as const, + assetId: dayBackground.assetId, + environmentIntensity: dayBackground.environmentIntensity + } : resolvePreferredDaylikeImageBackground([ { background: dayBackground,