@babylonjs/core 5.23.0 → 5.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/Actions/abstractActionManager.d.ts +6 -6
  2. package/Actions/abstractActionManager.js +1 -1
  3. package/Actions/abstractActionManager.js.map +1 -1
  4. package/Actions/actionManager.d.ts +5 -5
  5. package/Actions/actionManager.js +5 -5
  6. package/Actions/actionManager.js.map +1 -1
  7. package/Animations/animationGroup.d.ts +3 -3
  8. package/Animations/animationGroup.js +3 -3
  9. package/Animations/animationGroup.js.map +1 -1
  10. package/Audio/audioSceneComponent.d.ts +1 -1
  11. package/Audio/audioSceneComponent.js.map +1 -1
  12. package/Behaviors/Cameras/autoRotationBehavior.d.ts +1 -1
  13. package/Behaviors/Cameras/autoRotationBehavior.js +1 -1
  14. package/Behaviors/Cameras/autoRotationBehavior.js.map +1 -1
  15. package/Behaviors/Cameras/bouncingBehavior.d.ts +1 -1
  16. package/Behaviors/Cameras/bouncingBehavior.js +1 -1
  17. package/Behaviors/Cameras/bouncingBehavior.js.map +1 -1
  18. package/Behaviors/Cameras/framingBehavior.d.ts +1 -1
  19. package/Behaviors/Cameras/framingBehavior.js +1 -1
  20. package/Behaviors/Cameras/framingBehavior.js.map +1 -1
  21. package/Bones/bone.d.ts +1 -1
  22. package/Bones/bone.js +1 -1
  23. package/Bones/bone.js.map +1 -1
  24. package/Bones/skeleton.d.ts +2 -2
  25. package/Bones/skeleton.js +2 -2
  26. package/Bones/skeleton.js.map +1 -1
  27. package/Cameras/arcRotateCamera.d.ts +1 -1
  28. package/Cameras/arcRotateCamera.js +1 -1
  29. package/Cameras/arcRotateCamera.js.map +1 -1
  30. package/Cameras/camera.d.ts +2 -2
  31. package/Cameras/camera.js +2 -2
  32. package/Cameras/camera.js.map +1 -1
  33. package/Cameras/freeCamera.d.ts +1 -1
  34. package/Cameras/freeCamera.js +1 -1
  35. package/Cameras/freeCamera.js.map +1 -1
  36. package/Cameras/gamepadCamera.d.ts +1 -1
  37. package/Cameras/gamepadCamera.js +1 -1
  38. package/Cameras/gamepadCamera.js.map +1 -1
  39. package/Cameras/targetCamera.d.ts +1 -1
  40. package/Cameras/targetCamera.js +1 -1
  41. package/Cameras/targetCamera.js.map +1 -1
  42. package/Cameras/touchCamera.d.ts +1 -1
  43. package/Cameras/touchCamera.js +1 -1
  44. package/Cameras/touchCamera.js.map +1 -1
  45. package/Cameras/universalCamera.d.ts +1 -1
  46. package/Cameras/universalCamera.js +1 -1
  47. package/Cameras/universalCamera.js.map +1 -1
  48. package/Cameras/virtualJoysticksCamera.d.ts +1 -1
  49. package/Cameras/virtualJoysticksCamera.js +1 -1
  50. package/Cameras/virtualJoysticksCamera.js.map +1 -1
  51. package/Culling/boundingBox.d.ts +2 -2
  52. package/Culling/boundingBox.js +2 -2
  53. package/Culling/boundingBox.js.map +1 -1
  54. package/Culling/ray.d.ts +1 -1
  55. package/Culling/ray.js +1 -1
  56. package/Culling/ray.js.map +1 -1
  57. package/Debug/debugLayer.d.ts +1 -1
  58. package/Debug/debugLayer.js +1 -1
  59. package/Debug/debugLayer.js.map +1 -1
  60. package/Engines/Extensions/engine.multiRender.js +8 -10
  61. package/Engines/Extensions/engine.multiRender.js.map +1 -1
  62. package/Engines/Extensions/engine.query.d.ts +2 -2
  63. package/Engines/Extensions/engine.query.js.map +1 -1
  64. package/Engines/ICanvas.d.ts +11 -0
  65. package/Engines/ICanvas.js.map +1 -1
  66. package/Engines/WebGL/webGLPipelineContext.d.ts +29 -19
  67. package/Engines/WebGL/webGLPipelineContext.js +99 -311
  68. package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
  69. package/Engines/WebGL/webGLRenderTargetWrapper.js +1 -1
  70. package/Engines/WebGL/webGLRenderTargetWrapper.js.map +1 -1
  71. package/Engines/engine.d.ts +2 -2
  72. package/Engines/engine.js +2 -2
  73. package/Engines/engine.js.map +1 -1
  74. package/Engines/nativeEngine.d.ts +2 -2
  75. package/Engines/nativeEngine.js +2 -2
  76. package/Engines/nativeEngine.js.map +1 -1
  77. package/Engines/renderTargetWrapper.d.ts +1 -0
  78. package/Engines/renderTargetWrapper.js +5 -2
  79. package/Engines/renderTargetWrapper.js.map +1 -1
  80. package/Engines/thinEngine.d.ts +6 -5
  81. package/Engines/thinEngine.js +11 -7
  82. package/Engines/thinEngine.js.map +1 -1
  83. package/Engines/webgpuEngine.js +4 -1
  84. package/Engines/webgpuEngine.js.map +1 -1
  85. package/Events/clipboardEvents.d.ts +1 -1
  86. package/Events/clipboardEvents.js +1 -1
  87. package/Events/clipboardEvents.js.map +1 -1
  88. package/Gamepads/Controllers/windowsMotionController.d.ts +1 -1
  89. package/Gamepads/Controllers/windowsMotionController.js +1 -1
  90. package/Gamepads/Controllers/windowsMotionController.js.map +1 -1
  91. package/Gizmos/boundingBoxGizmo.d.ts +4 -0
  92. package/Gizmos/boundingBoxGizmo.js +6 -0
  93. package/Gizmos/boundingBoxGizmo.js.map +1 -1
  94. package/Layers/effectLayer.d.ts +3 -3
  95. package/Layers/effectLayer.js +1 -1
  96. package/Layers/effectLayer.js.map +1 -1
  97. package/Layers/glowLayer.d.ts +3 -3
  98. package/Layers/glowLayer.js +2 -2
  99. package/Layers/glowLayer.js.map +1 -1
  100. package/Layers/highlightLayer.d.ts +3 -3
  101. package/Layers/highlightLayer.js +2 -2
  102. package/Layers/highlightLayer.js.map +1 -1
  103. package/Lights/directionalLight.d.ts +2 -2
  104. package/Lights/directionalLight.js +2 -2
  105. package/Lights/directionalLight.js.map +1 -1
  106. package/Lights/hemisphericLight.d.ts +3 -3
  107. package/Lights/hemisphericLight.js +3 -3
  108. package/Lights/hemisphericLight.js.map +1 -1
  109. package/Lights/light.d.ts +2 -2
  110. package/Lights/light.js +2 -2
  111. package/Lights/light.js.map +1 -1
  112. package/Lights/lightConstants.d.ts +1 -1
  113. package/Lights/lightConstants.js +1 -1
  114. package/Lights/lightConstants.js.map +1 -1
  115. package/Loading/sceneLoader.d.ts +1 -1
  116. package/Loading/sceneLoader.js.map +1 -1
  117. package/Materials/Background/backgroundMaterial.js +1 -1
  118. package/Materials/Background/backgroundMaterial.js.map +1 -1
  119. package/Materials/Node/nodeMaterial.d.ts +1 -1
  120. package/Materials/Node/nodeMaterial.js +2 -2
  121. package/Materials/Node/nodeMaterial.js.map +1 -1
  122. package/Materials/PBR/pbrBaseMaterial.js +1 -1
  123. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  124. package/Materials/Textures/Filtering/hdrFiltering.d.ts +1 -1
  125. package/Materials/Textures/Filtering/hdrFiltering.js +1 -1
  126. package/Materials/Textures/Filtering/hdrFiltering.js.map +1 -1
  127. package/Materials/Textures/Procedurals/customProceduralTexture.d.ts +2 -1
  128. package/Materials/Textures/Procedurals/customProceduralTexture.js +9 -3
  129. package/Materials/Textures/Procedurals/customProceduralTexture.js.map +1 -1
  130. package/Materials/Textures/Procedurals/proceduralTexture.d.ts +9 -9
  131. package/Materials/Textures/Procedurals/proceduralTexture.js +9 -9
  132. package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
  133. package/Materials/Textures/colorGradingTexture.d.ts +1 -1
  134. package/Materials/Textures/colorGradingTexture.js +1 -1
  135. package/Materials/Textures/colorGradingTexture.js.map +1 -1
  136. package/Materials/Textures/cubeTexture.d.ts +2 -2
  137. package/Materials/Textures/cubeTexture.js +2 -2
  138. package/Materials/Textures/cubeTexture.js.map +1 -1
  139. package/Materials/Textures/rawCubeTexture.d.ts +1 -1
  140. package/Materials/Textures/rawCubeTexture.js +1 -1
  141. package/Materials/Textures/rawCubeTexture.js.map +1 -1
  142. package/Materials/Textures/renderTargetTexture.d.ts +3 -5
  143. package/Materials/Textures/renderTargetTexture.js +19 -19
  144. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  145. package/Materials/colorCurves.d.ts +3 -3
  146. package/Materials/colorCurves.js +3 -3
  147. package/Materials/colorCurves.js.map +1 -1
  148. package/Materials/effect.d.ts +27 -27
  149. package/Materials/effect.js +22 -288
  150. package/Materials/effect.js.map +1 -1
  151. package/Materials/fresnelParameters.d.ts +1 -1
  152. package/Materials/fresnelParameters.js +1 -1
  153. package/Materials/fresnelParameters.js.map +1 -1
  154. package/Materials/imageProcessingConfiguration.d.ts +4 -4
  155. package/Materials/imageProcessingConfiguration.js +4 -4
  156. package/Materials/imageProcessingConfiguration.js.map +1 -1
  157. package/Materials/shaderMaterial.d.ts +25 -25
  158. package/Materials/shaderMaterial.js +25 -25
  159. package/Materials/shaderMaterial.js.map +1 -1
  160. package/Materials/standardMaterial.js +1 -1
  161. package/Materials/standardMaterial.js.map +1 -1
  162. package/Maths/index.d.ts +1 -0
  163. package/Maths/index.js +1 -0
  164. package/Maths/index.js.map +1 -1
  165. package/Maths/math.functions.d.ts +2 -2
  166. package/Maths/math.functions.js +2 -2
  167. package/Maths/math.functions.js.map +1 -1
  168. package/Maths/math.polar.d.ts +77 -0
  169. package/Maths/math.polar.js +114 -0
  170. package/Maths/math.polar.js.map +1 -0
  171. package/Maths/math.scalar.d.ts +2 -2
  172. package/Maths/math.scalar.js +2 -2
  173. package/Maths/math.scalar.js.map +1 -1
  174. package/Maths/math.vector.d.ts +13 -12
  175. package/Maths/math.vector.js +13 -12
  176. package/Maths/math.vector.js.map +1 -1
  177. package/Meshes/abstractMesh.d.ts +1 -1
  178. package/Meshes/abstractMesh.js +9 -4
  179. package/Meshes/abstractMesh.js.map +1 -1
  180. package/Meshes/geometry.d.ts +3 -3
  181. package/Meshes/geometry.js +3 -3
  182. package/Meshes/geometry.js.map +1 -1
  183. package/Meshes/instancedMesh.d.ts +1 -1
  184. package/Meshes/instancedMesh.js +1 -1
  185. package/Meshes/instancedMesh.js.map +1 -1
  186. package/Meshes/mesh.d.ts +3 -3
  187. package/Meshes/mesh.js +7 -3
  188. package/Meshes/mesh.js.map +1 -1
  189. package/Meshes/subMesh.d.ts +1 -1
  190. package/Meshes/subMesh.js +1 -1
  191. package/Meshes/subMesh.js.map +1 -1
  192. package/Meshes/thinInstanceMesh.d.ts +1 -1
  193. package/Meshes/thinInstanceMesh.js.map +1 -1
  194. package/Meshes/transformNode.js +3 -0
  195. package/Meshes/transformNode.js.map +1 -1
  196. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.d.ts +2 -2
  197. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js +2 -2
  198. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js.map +1 -1
  199. package/Misc/HighDynamicRange/hdr.d.ts +3 -3
  200. package/Misc/HighDynamicRange/hdr.js +3 -3
  201. package/Misc/HighDynamicRange/hdr.js.map +1 -1
  202. package/Misc/HighDynamicRange/panoramaToCubemap.d.ts +1 -1
  203. package/Misc/HighDynamicRange/panoramaToCubemap.js +1 -1
  204. package/Misc/HighDynamicRange/panoramaToCubemap.js.map +1 -1
  205. package/Misc/arrayTools.d.ts +13 -12
  206. package/Misc/arrayTools.js +70 -39
  207. package/Misc/arrayTools.js.map +1 -1
  208. package/Misc/assetsManager.d.ts +3 -3
  209. package/Misc/assetsManager.js +3 -3
  210. package/Misc/assetsManager.js.map +1 -1
  211. package/Misc/basis.js +1 -1
  212. package/Misc/basis.js.map +1 -1
  213. package/Misc/environmentTextureTools.d.ts +4 -4
  214. package/Misc/environmentTextureTools.js +5 -5
  215. package/Misc/environmentTextureTools.js.map +1 -1
  216. package/Misc/fileTools.d.ts +3 -3
  217. package/Misc/fileTools.js +19 -12
  218. package/Misc/fileTools.js.map +1 -1
  219. package/Misc/observable.d.ts +1 -1
  220. package/Misc/observable.js +1 -1
  221. package/Misc/observable.js.map +1 -1
  222. package/Misc/performanceMonitor.d.ts +3 -3
  223. package/Misc/performanceMonitor.js +3 -3
  224. package/Misc/performanceMonitor.js.map +1 -1
  225. package/Misc/rgbdTextureTools.d.ts +1 -1
  226. package/Misc/rgbdTextureTools.js +1 -1
  227. package/Misc/rgbdTextureTools.js.map +1 -1
  228. package/Misc/sceneOptimizer.d.ts +7 -7
  229. package/Misc/sceneOptimizer.js +7 -7
  230. package/Misc/sceneOptimizer.js.map +1 -1
  231. package/Misc/stringDictionary.d.ts +6 -6
  232. package/Misc/stringDictionary.js +6 -6
  233. package/Misc/stringDictionary.js.map +1 -1
  234. package/Misc/textureTools.d.ts +4 -4
  235. package/Misc/textureTools.js +4 -4
  236. package/Misc/textureTools.js.map +1 -1
  237. package/Misc/tools.d.ts +6 -6
  238. package/Misc/tools.js +6 -6
  239. package/Misc/tools.js.map +1 -1
  240. package/Misc/videoRecorder.d.ts +1 -1
  241. package/Misc/videoRecorder.js +1 -1
  242. package/Misc/videoRecorder.js.map +1 -1
  243. package/Particles/IParticleSystem.d.ts +1 -1
  244. package/Particles/IParticleSystem.js.map +1 -1
  245. package/Particles/gpuParticleSystem.d.ts +1 -1
  246. package/Particles/gpuParticleSystem.js +1 -1
  247. package/Particles/gpuParticleSystem.js.map +1 -1
  248. package/Particles/particleSystem.d.ts +1 -1
  249. package/Particles/particleSystem.js +1 -1
  250. package/Particles/particleSystem.js.map +1 -1
  251. package/Particles/solidParticleSystem.d.ts +4 -0
  252. package/Particles/solidParticleSystem.js +25 -3
  253. package/Particles/solidParticleSystem.js.map +1 -1
  254. package/Physics/Plugins/ammoJSPlugin.d.ts +1 -1
  255. package/Physics/Plugins/ammoJSPlugin.js +1 -1
  256. package/Physics/Plugins/ammoJSPlugin.js.map +1 -1
  257. package/Physics/Plugins/oimoJSPlugin.js +1 -1
  258. package/Physics/Plugins/oimoJSPlugin.js.map +1 -1
  259. package/Physics/physicsEngineComponent.d.ts +1 -1
  260. package/Physics/physicsEngineComponent.js +1 -1
  261. package/Physics/physicsEngineComponent.js.map +1 -1
  262. package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
  263. package/PostProcesses/blurPostProcess.d.ts +3 -3
  264. package/PostProcesses/blurPostProcess.js +3 -3
  265. package/PostProcesses/blurPostProcess.js.map +1 -1
  266. package/PostProcesses/volumetricLightScatteringPostProcess.d.ts +3 -3
  267. package/PostProcesses/volumetricLightScatteringPostProcess.js +3 -3
  268. package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
  269. package/Rendering/depthPeelingRenderer.d.ts +1 -0
  270. package/Rendering/depthPeelingRenderer.js +32 -5
  271. package/Rendering/depthPeelingRenderer.js.map +1 -1
  272. package/Rendering/edgesRenderer.d.ts +2 -2
  273. package/Rendering/edgesRenderer.js +1 -1
  274. package/Rendering/edgesRenderer.js.map +1 -1
  275. package/Rendering/geometryBufferRenderer.d.ts +4 -2
  276. package/Rendering/geometryBufferRenderer.js +5 -3
  277. package/Rendering/geometryBufferRenderer.js.map +1 -1
  278. package/Rendering/geometryBufferRendererSceneComponent.d.ts +2 -1
  279. package/Rendering/geometryBufferRendererSceneComponent.js +3 -2
  280. package/Rendering/geometryBufferRendererSceneComponent.js.map +1 -1
  281. package/Rendering/prePassRenderer.d.ts +11 -3
  282. package/Rendering/prePassRenderer.js +18 -3
  283. package/Rendering/prePassRenderer.js.map +1 -1
  284. package/Rendering/subSurfaceConfiguration.d.ts +2 -2
  285. package/Rendering/subSurfaceConfiguration.js +2 -2
  286. package/Rendering/subSurfaceConfiguration.js.map +1 -1
  287. package/XR/features/WebXRControllerTeleportation.d.ts +4 -0
  288. package/XR/features/WebXRControllerTeleportation.js +24 -19
  289. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  290. package/XR/motionController/webXRAbstractMotionController.d.ts +2 -2
  291. package/XR/motionController/webXRAbstractMotionController.js +2 -2
  292. package/XR/motionController/webXRAbstractMotionController.js.map +1 -1
  293. package/XR/motionController/webXRControllerComponent.d.ts +1 -1
  294. package/XR/motionController/webXRControllerComponent.js +1 -1
  295. package/XR/motionController/webXRControllerComponent.js.map +1 -1
  296. package/XR/motionController/webXRMotionControllerManager.d.ts +3 -3
  297. package/XR/motionController/webXRMotionControllerManager.js +3 -3
  298. package/XR/motionController/webXRMotionControllerManager.js.map +1 -1
  299. package/node.d.ts +4 -4
  300. package/node.js +3 -3
  301. package/node.js.map +1 -1
  302. package/package.json +1 -1
  303. package/scene.d.ts +61 -61
  304. package/scene.js +58 -46
  305. package/scene.js.map +1 -1
package/scene.d.ts CHANGED
@@ -30,7 +30,6 @@ import type { LoadFileError, RequestFileError, ReadFileError } from "./Misc/file
30
30
  import type { IClipPlanesHolder } from "./Misc/interfaces/iClipPlanesHolder";
31
31
  import type { IPointerEvent } from "./Events/deviceInputEvents";
32
32
  import type { IComputePressureData } from "./Misc/computePressure";
33
- import type { INotifyArrayChangeType } from "./Misc/arrayTools";
34
33
  declare type Ray = import("./Culling/ray").Ray;
35
34
  declare type TrianglePickingPredicate = import("./Culling/ray").TrianglePickingPredicate;
36
35
  declare type Animation = import("./Animations/animation").Animation;
@@ -479,7 +478,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
479
478
  /**
480
479
  * An event triggered when the activeCameras property is updated
481
480
  */
482
- onActiveCamerasChanged: Observable<INotifyArrayChangeType<import("./Cameras/camera").Camera>>;
481
+ onActiveCamerasChanged: Observable<Scene>;
483
482
  /**
484
483
  * This Observable will be triggered before rendering each renderingGroup of each rendered camera.
485
484
  * The RenderingGroupInfo class contains all the information about the context in which the observable is called
@@ -579,7 +578,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
579
578
  * @param effect The effect to be bound
580
579
  * @param variableName name of the shader variable that will hold the eye position
581
580
  * @param isVector3 true to indicates that variableName is a Vector3 and not a Vector4
582
- * @return the computed eye position
581
+ * @returns the computed eye position
583
582
  */
584
583
  bindEyePosition(effect: Nullable<Effect>, variableName?: string, isVector3?: boolean): Vector4;
585
584
  /**
@@ -691,6 +690,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
691
690
  set lightsEnabled(value: boolean);
692
691
  get lightsEnabled(): boolean;
693
692
  private _activeCameras;
693
+ private _unObserveActiveCameras;
694
694
  /** All of the active cameras added to this scene. */
695
695
  get activeCameras(): Nullable<Camera[]>;
696
696
  set activeCameras(cameras: Nullable<Camera[]>);
@@ -1196,7 +1196,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1196
1196
  * This function will check if the scene can be rendered (textures are loaded, shaders are compiled)
1197
1197
  * Delay loaded resources are not taking in account
1198
1198
  * @param checkRenderTargets true to also check that the meshes rendered as part of a render target are ready (default: true)
1199
- * @return true if all required resources are ready
1199
+ * @returns true if all required resources are ready
1200
1200
  */
1201
1201
  isReady(checkRenderTargets?: boolean): boolean;
1202
1202
  /** Resets all cached information relative to material (including effect and visibility) */
@@ -1491,7 +1491,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1491
1491
  /**
1492
1492
  * sets the active camera of the scene using its Id
1493
1493
  * @param id defines the camera's Id
1494
- * @return the new active camera or null if none found.
1494
+ * @returns the new active camera or null if none found.
1495
1495
  */
1496
1496
  setActiveCameraById(id: string): Nullable<Camera>;
1497
1497
  /**
@@ -1503,44 +1503,44 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1503
1503
  /**
1504
1504
  * get an animation group using its name
1505
1505
  * @param name defines the material's name
1506
- * @return the animation group or null if none found.
1506
+ * @returns the animation group or null if none found.
1507
1507
  */
1508
1508
  getAnimationGroupByName(name: string): Nullable<AnimationGroup>;
1509
1509
  /**
1510
1510
  * Get a material using its unique id
1511
1511
  * @param uniqueId defines the material's unique id
1512
- * @return the material or null if none found.
1512
+ * @returns the material or null if none found.
1513
1513
  */
1514
1514
  getMaterialByUniqueID(uniqueId: number): Nullable<Material>;
1515
1515
  /**
1516
1516
  * get a material using its id
1517
1517
  * @param id defines the material's Id
1518
- * @return the material or null if none found.
1518
+ * @returns the material or null if none found.
1519
1519
  */
1520
1520
  getMaterialById(id: string): Nullable<Material>;
1521
1521
  /**
1522
1522
  * Gets a the last added material using a given id
1523
1523
  * @param id defines the material's Id
1524
1524
  * @param allowMultiMaterials determines whether multimaterials should be considered
1525
- * @return the last material with the given id or null if none found.
1525
+ * @returns the last material with the given id or null if none found.
1526
1526
  */
1527
1527
  getLastMaterialById(id: string, allowMultiMaterials?: boolean): Nullable<Material>;
1528
1528
  /**
1529
1529
  * Gets a material using its name
1530
1530
  * @param name defines the material's name
1531
- * @return the material or null if none found.
1531
+ * @returns the material or null if none found.
1532
1532
  */
1533
1533
  getMaterialByName(name: string): Nullable<Material>;
1534
1534
  /**
1535
1535
  * Get a texture using its unique id
1536
1536
  * @param uniqueId defines the texture's unique id
1537
- * @return the texture or null if none found.
1537
+ * @returns the texture or null if none found.
1538
1538
  */
1539
1539
  getTextureByUniqueId(uniqueId: number): Nullable<BaseTexture>;
1540
1540
  /**
1541
1541
  * Gets a texture using its name
1542
1542
  * @param name defines the texture's name
1543
- * @return the texture or null if none found.
1543
+ * @returns the texture or null if none found.
1544
1544
  */
1545
1545
  getTextureByName(name: string): Nullable<BaseTexture>;
1546
1546
  /**
@@ -1558,49 +1558,49 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1558
1558
  /**
1559
1559
  * Gets a camera using its name
1560
1560
  * @param name defines the camera's name
1561
- * @return the camera or null if none found.
1561
+ * @returns the camera or null if none found.
1562
1562
  */
1563
1563
  getCameraByName(name: string): Nullable<Camera>;
1564
1564
  /**
1565
1565
  * Gets a bone using its Id
1566
1566
  * @param id defines the bone's Id
1567
- * @return the bone or null if not found
1567
+ * @returns the bone or null if not found
1568
1568
  */
1569
1569
  getBoneById(id: string): Nullable<Bone>;
1570
1570
  /**
1571
1571
  * Gets a bone using its id
1572
1572
  * @param name defines the bone's name
1573
- * @return the bone or null if not found
1573
+ * @returns the bone or null if not found
1574
1574
  */
1575
1575
  getBoneByName(name: string): Nullable<Bone>;
1576
1576
  /**
1577
1577
  * Gets a light node using its name
1578
1578
  * @param name defines the the light's name
1579
- * @return the light or null if none found.
1579
+ * @returns the light or null if none found.
1580
1580
  */
1581
1581
  getLightByName(name: string): Nullable<Light>;
1582
1582
  /**
1583
1583
  * Gets a light node using its Id
1584
1584
  * @param id defines the light's Id
1585
- * @return the light or null if none found.
1585
+ * @returns the light or null if none found.
1586
1586
  */
1587
1587
  getLightById(id: string): Nullable<Light>;
1588
1588
  /**
1589
1589
  * Gets a light node using its scene-generated unique Id
1590
1590
  * @param uniqueId defines the light's unique Id
1591
- * @return the light or null if none found.
1591
+ * @returns the light or null if none found.
1592
1592
  */
1593
1593
  getLightByUniqueId(uniqueId: number): Nullable<Light>;
1594
1594
  /**
1595
1595
  * Gets a particle system by Id
1596
1596
  * @param id defines the particle system Id
1597
- * @return the corresponding system or null if none found
1597
+ * @returns the corresponding system or null if none found
1598
1598
  */
1599
1599
  getParticleSystemById(id: string): Nullable<IParticleSystem>;
1600
1600
  /**
1601
1601
  * Gets a geometry using its Id
1602
1602
  * @param id defines the geometry's Id
1603
- * @return the geometry or null if none found.
1603
+ * @returns the geometry or null if none found.
1604
1604
  */
1605
1605
  getGeometryById(id: string): Nullable<Geometry>;
1606
1606
  private _getGeometryByUniqueId;
@@ -1608,13 +1608,13 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1608
1608
  * Add a new geometry to this scene
1609
1609
  * @param geometry defines the geometry to be added to the scene.
1610
1610
  * @param force defines if the geometry must be pushed even if a geometry with this id already exists
1611
- * @return a boolean defining if the geometry was added or not
1611
+ * @returns a boolean defining if the geometry was added or not
1612
1612
  */
1613
1613
  pushGeometry(geometry: Geometry, force?: boolean): boolean;
1614
1614
  /**
1615
1615
  * Removes an existing geometry
1616
1616
  * @param geometry defines the geometry to be removed from the scene
1617
- * @return a boolean defining if the geometry was removed or not
1617
+ * @returns a boolean defining if the geometry was removed or not
1618
1618
  */
1619
1619
  removeGeometry(geometry: Geometry): boolean;
1620
1620
  /**
@@ -1625,7 +1625,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1625
1625
  /**
1626
1626
  * Gets the first added mesh found of a given Id
1627
1627
  * @param id defines the Id to search for
1628
- * @return the mesh found or null if not found at all
1628
+ * @returns the mesh found or null if not found at all
1629
1629
  */
1630
1630
  getMeshById(id: string): Nullable<AbstractMesh>;
1631
1631
  /**
@@ -1637,13 +1637,13 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1637
1637
  /**
1638
1638
  * Gets the first added transform node found of a given Id
1639
1639
  * @param id defines the Id to search for
1640
- * @return the found transform node or null if not found at all.
1640
+ * @returns the found transform node or null if not found at all.
1641
1641
  */
1642
1642
  getTransformNodeById(id: string): Nullable<TransformNode>;
1643
1643
  /**
1644
1644
  * Gets a transform node with its auto-generated unique Id
1645
1645
  * @param uniqueId defines the unique Id to search for
1646
- * @return the found transform node or null if not found at all.
1646
+ * @returns the found transform node or null if not found at all.
1647
1647
  */
1648
1648
  getTransformNodeByUniqueId(uniqueId: number): Nullable<TransformNode>;
1649
1649
  /**
@@ -1655,91 +1655,91 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1655
1655
  /**
1656
1656
  * Gets a mesh with its auto-generated unique Id
1657
1657
  * @param uniqueId defines the unique Id to search for
1658
- * @return the found mesh or null if not found at all.
1658
+ * @returns the found mesh or null if not found at all.
1659
1659
  */
1660
1660
  getMeshByUniqueId(uniqueId: number): Nullable<AbstractMesh>;
1661
1661
  /**
1662
1662
  * Gets a the last added mesh using a given Id
1663
1663
  * @param id defines the Id to search for
1664
- * @return the found mesh or null if not found at all.
1664
+ * @returns the found mesh or null if not found at all.
1665
1665
  */
1666
1666
  getLastMeshById(id: string): Nullable<AbstractMesh>;
1667
1667
  /**
1668
1668
  * Gets a the last added node (Mesh, Camera, Light) using a given Id
1669
1669
  * @param id defines the Id to search for
1670
- * @return the found node or null if not found at all
1670
+ * @returns the found node or null if not found at all
1671
1671
  */
1672
1672
  getLastEntryById(id: string): Nullable<Node>;
1673
1673
  /**
1674
1674
  * Gets a node (Mesh, Camera, Light) using a given Id
1675
1675
  * @param id defines the Id to search for
1676
- * @return the found node or null if not found at all
1676
+ * @returns the found node or null if not found at all
1677
1677
  */
1678
1678
  getNodeById(id: string): Nullable<Node>;
1679
1679
  /**
1680
1680
  * Gets a node (Mesh, Camera, Light) using a given name
1681
1681
  * @param name defines the name to search for
1682
- * @return the found node or null if not found at all.
1682
+ * @returns the found node or null if not found at all.
1683
1683
  */
1684
1684
  getNodeByName(name: string): Nullable<Node>;
1685
1685
  /**
1686
1686
  * Gets a mesh using a given name
1687
1687
  * @param name defines the name to search for
1688
- * @return the found mesh or null if not found at all.
1688
+ * @returns the found mesh or null if not found at all.
1689
1689
  */
1690
1690
  getMeshByName(name: string): Nullable<AbstractMesh>;
1691
1691
  /**
1692
1692
  * Gets a transform node using a given name
1693
1693
  * @param name defines the name to search for
1694
- * @return the found transform node or null if not found at all.
1694
+ * @returns the found transform node or null if not found at all.
1695
1695
  */
1696
1696
  getTransformNodeByName(name: string): Nullable<TransformNode>;
1697
1697
  /**
1698
1698
  * Gets a skeleton using a given Id (if many are found, this function will pick the last one)
1699
1699
  * @param id defines the Id to search for
1700
- * @return the found skeleton or null if not found at all.
1700
+ * @returns the found skeleton or null if not found at all.
1701
1701
  */
1702
1702
  getLastSkeletonById(id: string): Nullable<Skeleton>;
1703
1703
  /**
1704
1704
  * Gets a skeleton using a given auto generated unique id
1705
1705
  * @param uniqueId defines the unique id to search for
1706
- * @return the found skeleton or null if not found at all.
1706
+ * @returns the found skeleton or null if not found at all.
1707
1707
  */
1708
1708
  getSkeletonByUniqueId(uniqueId: number): Nullable<Skeleton>;
1709
1709
  /**
1710
1710
  * Gets a skeleton using a given id (if many are found, this function will pick the first one)
1711
1711
  * @param id defines the id to search for
1712
- * @return the found skeleton or null if not found at all.
1712
+ * @returns the found skeleton or null if not found at all.
1713
1713
  */
1714
1714
  getSkeletonById(id: string): Nullable<Skeleton>;
1715
1715
  /**
1716
1716
  * Gets a skeleton using a given name
1717
1717
  * @param name defines the name to search for
1718
- * @return the found skeleton or null if not found at all.
1718
+ * @returns the found skeleton or null if not found at all.
1719
1719
  */
1720
1720
  getSkeletonByName(name: string): Nullable<Skeleton>;
1721
1721
  /**
1722
1722
  * Gets a morph target manager using a given id (if many are found, this function will pick the last one)
1723
1723
  * @param id defines the id to search for
1724
- * @return the found morph target manager or null if not found at all.
1724
+ * @returns the found morph target manager or null if not found at all.
1725
1725
  */
1726
1726
  getMorphTargetManagerById(id: number): Nullable<MorphTargetManager>;
1727
1727
  /**
1728
1728
  * Gets a morph target using a given id (if many are found, this function will pick the first one)
1729
1729
  * @param id defines the id to search for
1730
- * @return the found morph target or null if not found at all.
1730
+ * @returns the found morph target or null if not found at all.
1731
1731
  */
1732
1732
  getMorphTargetById(id: string): Nullable<MorphTarget>;
1733
1733
  /**
1734
1734
  * Gets a morph target using a given name (if many are found, this function will pick the first one)
1735
1735
  * @param name defines the name to search for
1736
- * @return the found morph target or null if not found at all.
1736
+ * @returns the found morph target or null if not found at all.
1737
1737
  */
1738
1738
  getMorphTargetByName(name: string): Nullable<MorphTarget>;
1739
1739
  /**
1740
1740
  * Gets a post process using a given name (if many are found, this function will pick the first one)
1741
1741
  * @param name defines the name to search for
1742
- * @return the found post process or null if not found at all.
1742
+ * @returns the found post process or null if not found at all.
1743
1743
  */
1744
1744
  getPostProcessByName(name: string): Nullable<PostProcess>;
1745
1745
  /**
@@ -1758,26 +1758,26 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1758
1758
  * If you don't care and just want to get the data no matter what, use the more convenient getOrAddExternalDataWithFactory() method.
1759
1759
  * @param key the unique key that identifies the data
1760
1760
  * @param data the data object to associate to the key for this Engine instance
1761
- * @return true if no such key were already present and the data was added successfully, false otherwise
1761
+ * @returns true if no such key were already present and the data was added successfully, false otherwise
1762
1762
  */
1763
1763
  addExternalData<T extends Object>(key: string, data: T): boolean;
1764
1764
  /**
1765
1765
  * Get an externally attached data from its key
1766
1766
  * @param key the unique key that identifies the data
1767
- * @return the associated data, if present (can be null), or undefined if not present
1767
+ * @returns the associated data, if present (can be null), or undefined if not present
1768
1768
  */
1769
1769
  getExternalData<T>(key: string): Nullable<T>;
1770
1770
  /**
1771
1771
  * Get an externally attached data from its key, create it using a factory if it's not already present
1772
1772
  * @param key the unique key that identifies the data
1773
1773
  * @param factory the factory that will be called to create the instance if and only if it doesn't exists
1774
- * @return the associated data, can be null if the factory returned null.
1774
+ * @returns the associated data, can be null if the factory returned null.
1775
1775
  */
1776
1776
  getOrAddExternalDataWithFactory<T extends Object>(key: string, factory: (k: string) => T): T;
1777
1777
  /**
1778
1778
  * Remove an externally attached data from the Engine instance
1779
1779
  * @param key the unique key that identifies the data
1780
- * @return true if the data was successfully removed, false if it doesn't exist
1780
+ * @returns true if the data was successfully removed, false if it doesn't exist
1781
1781
  */
1782
1782
  removeExternalData(key: string): boolean;
1783
1783
  private _evaluateSubMesh;
@@ -2174,28 +2174,28 @@ declare module "./scene" {
2174
2174
  /**
2175
2175
  * Sets the active camera of the scene using its Id
2176
2176
  * @param id defines the camera's Id
2177
- * @return the new active camera or null if none found.
2177
+ * @returns the new active camera or null if none found.
2178
2178
  * @deprecated Please use setActiveCameraById instead
2179
2179
  */
2180
2180
  setActiveCameraByID(id: string): Nullable<Camera>;
2181
2181
  /**
2182
2182
  * Get a material using its id
2183
2183
  * @param id defines the material's Id
2184
- * @return the material or null if none found.
2184
+ * @returns the material or null if none found.
2185
2185
  * @deprecated Please use getMaterialById instead
2186
2186
  */
2187
2187
  getMaterialByID(id: string): Nullable<Material>;
2188
2188
  /**
2189
2189
  * Gets a the last added material using a given id
2190
2190
  * @param id defines the material's Id
2191
- * @return the last material with the given id or null if none found.
2191
+ * @returns the last material with the given id or null if none found.
2192
2192
  * @deprecated Please use getLastMaterialById instead
2193
2193
  */
2194
2194
  getLastMaterialByID(id: string): Nullable<Material>;
2195
2195
  /**
2196
2196
  * Get a texture using its unique id
2197
2197
  * @param uniqueId defines the texture's unique id
2198
- * @return the texture or null if none found.
2198
+ * @returns the texture or null if none found.
2199
2199
  * @deprecated Please use getTextureByUniqueId instead
2200
2200
  */
2201
2201
  getTextureByUniqueID(uniqueId: number): Nullable<BaseTexture>;
@@ -2216,56 +2216,56 @@ declare module "./scene" {
2216
2216
  /**
2217
2217
  * Gets a bone using its Id
2218
2218
  * @param id defines the bone's Id
2219
- * @return the bone or null if not found
2219
+ * @returns the bone or null if not found
2220
2220
  * @deprecated Please use getBoneById instead
2221
2221
  */
2222
2222
  getBoneByID(id: string): Nullable<Bone>;
2223
2223
  /**
2224
2224
  * Gets a light node using its Id
2225
2225
  * @param id defines the light's Id
2226
- * @return the light or null if none found.
2226
+ * @returns the light or null if none found.
2227
2227
  * @deprecated Please use getLightById instead
2228
2228
  */
2229
2229
  getLightByID(id: string): Nullable<Light>;
2230
2230
  /**
2231
2231
  * Gets a light node using its scene-generated unique Id
2232
2232
  * @param uniqueId defines the light's unique Id
2233
- * @return the light or null if none found.
2233
+ * @returns the light or null if none found.
2234
2234
  * @deprecated Please use getLightByUniqueId instead
2235
2235
  */
2236
2236
  getLightByUniqueID(uniqueId: number): Nullable<Light>;
2237
2237
  /**
2238
2238
  * Gets a particle system by Id
2239
2239
  * @param id defines the particle system Id
2240
- * @return the corresponding system or null if none found
2240
+ * @returns the corresponding system or null if none found
2241
2241
  * @deprecated Please use getParticleSystemById instead
2242
2242
  */
2243
2243
  getParticleSystemByID(id: string): Nullable<IParticleSystem>;
2244
2244
  /**
2245
2245
  * Gets a geometry using its Id
2246
2246
  * @param id defines the geometry's Id
2247
- * @return the geometry or null if none found.
2247
+ * @returns the geometry or null if none found.
2248
2248
  * @deprecated Please use getGeometryById instead
2249
2249
  */
2250
2250
  getGeometryByID(id: string): Nullable<Geometry>;
2251
2251
  /**
2252
2252
  * Gets the first added mesh found of a given Id
2253
2253
  * @param id defines the Id to search for
2254
- * @return the mesh found or null if not found at all
2254
+ * @returns the mesh found or null if not found at all
2255
2255
  * @deprecated Please use getMeshById instead
2256
2256
  */
2257
2257
  getMeshByID(id: string): Nullable<AbstractMesh>;
2258
2258
  /**
2259
2259
  * Gets a mesh with its auto-generated unique Id
2260
2260
  * @param uniqueId defines the unique Id to search for
2261
- * @return the found mesh or null if not found at all.
2261
+ * @returns the found mesh or null if not found at all.
2262
2262
  * @deprecated Please use getMeshByUniqueId instead
2263
2263
  */
2264
2264
  getMeshByUniqueID(uniqueId: number): Nullable<AbstractMesh>;
2265
2265
  /**
2266
2266
  * Gets a the last added mesh using a given Id
2267
2267
  * @param id defines the Id to search for
2268
- * @return the found mesh or null if not found at all.
2268
+ * @returns the found mesh or null if not found at all.
2269
2269
  * @deprecated Please use getLastMeshById instead
2270
2270
  */
2271
2271
  getLastMeshByID(id: string): Nullable<AbstractMesh>;
@@ -2279,14 +2279,14 @@ declare module "./scene" {
2279
2279
  /**
2280
2280
  * Gets the first added transform node found of a given Id
2281
2281
  * @param id defines the Id to search for
2282
- * @return the found transform node or null if not found at all.
2282
+ * @returns the found transform node or null if not found at all.
2283
2283
  * @deprecated Please use getTransformNodeById instead
2284
2284
  */
2285
2285
  getTransformNodeByID(id: string): Nullable<TransformNode>;
2286
2286
  /**
2287
2287
  * Gets a transform node with its auto-generated unique Id
2288
2288
  * @param uniqueId defines the unique Id to search for
2289
- * @return the found transform node or null if not found at all.
2289
+ * @returns the found transform node or null if not found at all.
2290
2290
  * @deprecated Please use getTransformNodeByUniqueId instead
2291
2291
  */
2292
2292
  getTransformNodeByUniqueID(uniqueId: number): Nullable<TransformNode>;
@@ -2300,21 +2300,21 @@ declare module "./scene" {
2300
2300
  /**
2301
2301
  * Gets a node (Mesh, Camera, Light) using a given Id
2302
2302
  * @param id defines the Id to search for
2303
- * @return the found node or null if not found at all
2303
+ * @returns the found node or null if not found at all
2304
2304
  * @deprecated Please use getNodeById instead
2305
2305
  */
2306
2306
  getNodeByID(id: string): Nullable<Node>;
2307
2307
  /**
2308
2308
  * Gets a the last added node (Mesh, Camera, Light) using a given Id
2309
2309
  * @param id defines the Id to search for
2310
- * @return the found node or null if not found at all
2310
+ * @returns the found node or null if not found at all
2311
2311
  * @deprecated Please use getLastEntryById instead
2312
2312
  */
2313
2313
  getLastEntryByID(id: string): Nullable<Node>;
2314
2314
  /**
2315
2315
  * Gets a skeleton using a given Id (if many are found, this function will pick the last one)
2316
2316
  * @param id defines the Id to search for
2317
- * @return the found skeleton or null if not found at all.
2317
+ * @returns the found skeleton or null if not found at all.
2318
2318
  * @deprecated Please use getLastSkeletonById instead
2319
2319
  */
2320
2320
  getLastSkeletonByID(id: string): Nullable<Skeleton>;