From 72d26e612c4ab982e4636faf9765107b6d02b64f Mon Sep 17 00:00:00 2001 From: Will Eastcott Date: Sun, 17 Nov 2024 20:31:23 +0000 Subject: [PATCH] Fix types for Scene#skybox and Scene#envAtlas --- src/scene/scene.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scene/scene.js b/src/scene/scene.js index e4d3a7bcc5e..a37a3153c5c 100644 --- a/src/scene/scene.js +++ b/src/scene/scene.js @@ -363,7 +363,7 @@ class Scene extends EventHandler { /** * Sets the environment lighting atlas. * - * @type {Texture} + * @type {Texture|null} */ set envAtlas(value) { if (value !== this._envAtlas) { @@ -391,7 +391,7 @@ class Scene extends EventHandler { /** * Gets the environment lighting atlas. * - * @type {Texture} + * @type {Texture|null} */ get envAtlas() { return this._envAtlas; @@ -529,7 +529,7 @@ class Scene extends EventHandler { /** * Sets the base cubemap texture used as the scene's skybox when skyboxMip is 0. Defaults to null. * - * @type {Texture} + * @type {Texture|null} */ set skybox(value) { if (value !== this._skyboxCubeMap) { @@ -541,7 +541,7 @@ class Scene extends EventHandler { /** * Gets the base cubemap texture used as the scene's skybox when skyboxMip is 0. * - * @type {Texture} + * @type {Texture|null} */ get skybox() { return this._skyboxCubeMap;