diff --git a/src/index.js b/src/index.js index b29d25d4be7..d1b8ac94408 100644 --- a/src/index.js +++ b/src/index.js @@ -193,6 +193,9 @@ export { shaderChunks } from './scene/shader-lib/chunks/chunks.js'; export { shaderChunksLightmapper } from './scene/shader-lib/chunks/chunks-lightmapper.js'; export { ChunkBuilder } from './scene/shader-lib/chunk-builder.js'; // used by shed +// SCENE / SKY +export { Sky } from './scene/skybox/sky.js'; + // SCENE / SPLAT export { GSplatData } from './scene/gsplat/gsplat-data.js'; export { GSplat } from './scene/gsplat/gsplat.js'; diff --git a/src/scene/scene.js b/src/scene/scene.js index 1137d763b0e..dad5a714431 100644 --- a/src/scene/scene.js +++ b/src/scene/scene.js @@ -417,6 +417,11 @@ class Scene extends EventHandler { return this._layers; } + /** + * Gets the {@link Sky} that defines sky properties. + * + * @type {Sky} + */ get sky() { return this._sky; } diff --git a/src/scene/skybox/sky.js b/src/scene/skybox/sky.js index 113688d3039..770f6298dfc 100644 --- a/src/scene/skybox/sky.js +++ b/src/scene/skybox/sky.js @@ -50,6 +50,7 @@ class Sky { * Constructs a new sky. * * @param {Scene} scene - The scene owning the sky. + * @ignore */ constructor(scene) { this.device = scene.device; @@ -76,9 +77,9 @@ class Sky { * The type of the sky. One of the SKYMESH_* constants. Defaults to {@link SKYTYPE_INFINITE}. * Can be: * - * {@link SKYTYPE_INFINITE} - * {@link SKYTYPE_BOX} - * {@link SKYTYPE_DOME} + * - {@link SKYTYPE_INFINITE} + * - {@link SKYTYPE_BOX} + * - {@link SKYTYPE_DOME} * * @type {string} */