auto-git:

[change] src/runtime-three/runtime-project-time.ts
This commit is contained in:
2026-04-22 12:36:07 +02:00
parent 41e87b1b21
commit 4b5ce67ecd

View File

@@ -731,20 +731,27 @@ function resolveTimeDrivenBackground(
const nightBackground = timeOfDay.night.background; const nightBackground = timeOfDay.night.background;
const twilightNightOpacity = const twilightNightOpacity =
weights.night + weights.dawn * 0.5 + weights.dusk * 0.5; weights.night + weights.dawn * 0.5 + weights.dusk * 0.5;
const daylikeImageBackground = resolvePreferredDaylikeImageBackground([ const daylikeImageBackground =
{ weights.dawn > 1e-6 && hasConfiguredImageBackground(dawnBackground)
background: dayBackground, ? cloneWorldBackgroundSettings(dawnBackground)
weight: weights.day : weights.dusk > 1e-6 && hasConfiguredImageBackground(duskBackground)
}, ? cloneWorldBackgroundSettings(duskBackground)
{ : hasConfiguredImageBackground(dayBackground)
background: dawnBackground, ? cloneWorldBackgroundSettings(dayBackground)
weight: weights.dawn : resolvePreferredDaylikeImageBackground([
}, {
{ background: dayBackground,
background: duskBackground, weight: weights.day
weight: weights.dusk },
} {
]); background: dawnBackground,
weight: weights.dawn
},
{
background: duskBackground,
weight: weights.dusk
}
]);
if (daylikeImageBackground !== null) { if (daylikeImageBackground !== null) {
const nightOverlay = const nightOverlay =