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