auto-git:

[change] src/viewport-three/viewport-host.ts
This commit is contained in:
2026-04-22 15:22:08 +02:00
parent 9b9d1560fa
commit 12523f184d

View File

@@ -1630,15 +1630,31 @@ export class ViewportHost {
displayedSunLight,
displayedMoonLight
);
const shaderSkyResolvedWorld =
resolvedWorld ?? {
ambientLight: {
...world.ambientLight
},
sunLight: {
...world.sunLight,
direction: {
...world.sunLight.direction
}
},
moonLight: null,
background: world.background,
nightBackgroundOverlay: null,
daylightFactor: 1
};
const shaderSkyState =
resolvedWorld === null
? null
: resolveWorldShaderSkyRenderState(
world.background.mode === "shader"
? resolveWorldShaderSkyRenderState(
world,
resolvedWorld,
shaderSkyResolvedWorld,
resolvedTime,
this.currentSimulationScene?.time ?? null
);
)
: null;
this.worldBackgroundRenderer.update(
displayedBackground,