auto-git:

[change] src/runtime-three/runtime-host.ts
This commit is contained in:
2026-04-22 14:03:08 +02:00
parent 0d0db7ce53
commit 07be0b3a09

View File

@@ -77,6 +77,7 @@ import {
type ResolvedBoxVolumeRenderPaths type ResolvedBoxVolumeRenderPaths
} from "../rendering/advanced-rendering"; } from "../rendering/advanced-rendering";
import { import {
resolveWorldCelestialBodiesState,
resolveWorldEnvironmentState, resolveWorldEnvironmentState,
WorldBackgroundRenderer WorldBackgroundRenderer
} from "../rendering/world-background-renderer"; } from "../rendering/world-background-renderer";
@@ -1111,11 +1112,17 @@ export class RuntimeHost {
backgroundOverlayState, backgroundOverlayState,
this.environmentBlendCache this.environmentBlendCache
); );
const celestialBodiesState = resolveWorldCelestialBodiesState(
this.currentWorld.showCelestialBodies,
resolvedWorld.sunLight,
resolvedWorld.moonLight
);
this.worldBackgroundRenderer.update( this.worldBackgroundRenderer.update(
resolvedWorld.background, resolvedWorld.background,
backgroundTexture, backgroundTexture,
backgroundOverlayState backgroundOverlayState,
celestialBodiesState
); );
this.scene.background = null; this.scene.background = null;
this.scene.environment = environmentState.texture; this.scene.environment = environmentState.texture;