auto-git:

[change] src/viewport-three/viewport-host.ts
This commit is contained in:
2026-04-22 14:03:14 +02:00
parent 07be0b3a09
commit 765b29f3a8

View File

@@ -212,6 +212,7 @@ import {
getTerrainLayerTexture
} from "../rendering/terrain-layer-material";
import {
resolveWorldCelestialBodiesState,
resolveWorldEnvironmentState,
WorldBackgroundRenderer
} from "../rendering/world-background-renderer";
@@ -1567,11 +1568,17 @@ export class ViewportHost {
backgroundOverlayState,
this.environmentBlendCache
);
const celestialBodiesState = resolveWorldCelestialBodiesState(
world.showCelestialBodies,
displayedSunLight,
resolvedWorld?.moonLight ?? null
);
this.worldBackgroundRenderer.update(
displayedBackground,
backgroundTexture,
backgroundOverlayState
backgroundOverlayState,
celestialBodiesState
);
this.scene.background = null;
this.scene.environment = environmentState.texture;