Browse Source

SkyMesh: Add isSkyMesh flag and deprecate isSky (#32263)

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
Kirill Osipov 1 month ago
parent
commit
47e7eb75c1
1 changed files with 11 additions and 1 deletions
  1. 11 1
      examples/jsm/objects/SkyMesh.js

+ 11 - 1
examples/jsm/objects/SkyMesh.js

@@ -88,8 +88,18 @@ class SkyMesh extends Mesh {
 		 * @type {boolean}
 		 * @readonly
 		 * @default true
+		 * @deprecated Use isSkyMesh instead.
 		 */
-		this.isSky = true;
+		this.isSky = true; // @deprecated, r182
+
+		/**
+		 * This flag can be used for type testing.
+		 *
+		 * @type {boolean}
+		 * @readonly
+		 * @default true
+		 */
+		this.isSkyMesh = true;
 
 		// Varyings
 

粤ICP备19079148号