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