Skip to content

Commit 878d9d7

Browse files
authored
Fix types for Scene#skybox and Scene#envAtlas (playcanvas#7118)
1 parent 503be80 commit 878d9d7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/scene/scene.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class Scene extends EventHandler {
363363
/**
364364
* Sets the environment lighting atlas.
365365
*
366-
* @type {Texture}
366+
* @type {Texture|null}
367367
*/
368368
set envAtlas(value) {
369369
if (value !== this._envAtlas) {
@@ -391,7 +391,7 @@ class Scene extends EventHandler {
391391
/**
392392
* Gets the environment lighting atlas.
393393
*
394-
* @type {Texture}
394+
* @type {Texture|null}
395395
*/
396396
get envAtlas() {
397397
return this._envAtlas;
@@ -529,7 +529,7 @@ class Scene extends EventHandler {
529529
/**
530530
* Sets the base cubemap texture used as the scene's skybox when skyboxMip is 0. Defaults to null.
531531
*
532-
* @type {Texture}
532+
* @type {Texture|null}
533533
*/
534534
set skybox(value) {
535535
if (value !== this._skyboxCubeMap) {
@@ -541,7 +541,7 @@ class Scene extends EventHandler {
541541
/**
542542
* Gets the base cubemap texture used as the scene's skybox when skyboxMip is 0.
543543
*
544-
* @type {Texture}
544+
* @type {Texture|null}
545545
*/
546546
get skybox() {
547547
return this._skyboxCubeMap;

0 commit comments

Comments
 (0)