auto-git:
[change] src/runtime-three/runtime-host.ts
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user