auto-git:

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

View File

@@ -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,