auto-git:
[change] src/runtime-three/runtime-project-time.ts
This commit is contained in:
@@ -731,7 +731,14 @@ 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)
|
||||||
|
? cloneWorldBackgroundSettings(dawnBackground)
|
||||||
|
: weights.dusk > 1e-6 && hasConfiguredImageBackground(duskBackground)
|
||||||
|
? cloneWorldBackgroundSettings(duskBackground)
|
||||||
|
: hasConfiguredImageBackground(dayBackground)
|
||||||
|
? cloneWorldBackgroundSettings(dayBackground)
|
||||||
|
: resolvePreferredDaylikeImageBackground([
|
||||||
{
|
{
|
||||||
background: dayBackground,
|
background: dayBackground,
|
||||||
weight: weights.day
|
weight: weights.day
|
||||||
|
|||||||
Reference in New Issue
Block a user