@babylonjs/core 5.22.1 → 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.
- package/Actions/abstractActionManager.d.ts +6 -6
- package/Actions/abstractActionManager.js +1 -1
- package/Actions/abstractActionManager.js.map +1 -1
- package/Actions/actionManager.d.ts +5 -5
- package/Actions/actionManager.js +5 -5
- package/Actions/actionManager.js.map +1 -1
- package/Animations/animatable.js +2 -1
- package/Animations/animatable.js.map +1 -1
- package/Animations/animation.js +137 -139
- package/Animations/animation.js.map +1 -1
- package/Animations/animationGroup.d.ts +3 -3
- package/Animations/animationGroup.js +3 -3
- package/Animations/animationGroup.js.map +1 -1
- package/Animations/runtimeAnimation.js +6 -7
- package/Animations/runtimeAnimation.js.map +1 -1
- package/Audio/audioSceneComponent.d.ts +1 -1
- package/Audio/audioSceneComponent.js.map +1 -1
- package/Audio/sound.d.ts +2 -1
- package/Audio/sound.js +21 -9
- package/Audio/sound.js.map +1 -1
- package/Behaviors/Cameras/autoRotationBehavior.d.ts +1 -1
- package/Behaviors/Cameras/autoRotationBehavior.js +1 -1
- package/Behaviors/Cameras/autoRotationBehavior.js.map +1 -1
- package/Behaviors/Cameras/bouncingBehavior.d.ts +1 -1
- package/Behaviors/Cameras/bouncingBehavior.js +1 -1
- package/Behaviors/Cameras/bouncingBehavior.js.map +1 -1
- package/Behaviors/Cameras/framingBehavior.d.ts +1 -1
- package/Behaviors/Cameras/framingBehavior.js +1 -1
- package/Behaviors/Cameras/framingBehavior.js.map +1 -1
- package/Bones/bone.d.ts +1 -1
- package/Bones/bone.js +1 -1
- package/Bones/bone.js.map +1 -1
- package/Bones/skeleton.d.ts +2 -2
- package/Bones/skeleton.js +11 -5
- package/Bones/skeleton.js.map +1 -1
- package/Cameras/Inputs/BaseCameraMouseWheelInput.js +3 -22
- package/Cameras/Inputs/BaseCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/BaseCameraPointersInput.js +3 -3
- package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js +1 -11
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/flyCameraMouseInput.js +3 -3
- package/Cameras/Inputs/flyCameraMouseInput.js.map +1 -1
- package/Cameras/Inputs/followCameraMouseWheelInput.js +1 -4
- package/Cameras/Inputs/followCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraMouseInput.js +3 -3
- package/Cameras/Inputs/freeCameraMouseInput.js.map +1 -1
- package/Cameras/arcRotateCamera.d.ts +1 -1
- package/Cameras/arcRotateCamera.js +1 -1
- package/Cameras/arcRotateCamera.js.map +1 -1
- package/Cameras/camera.d.ts +2 -2
- package/Cameras/camera.js +2 -2
- package/Cameras/camera.js.map +1 -1
- package/Cameras/freeCamera.d.ts +1 -1
- package/Cameras/freeCamera.js +1 -1
- package/Cameras/freeCamera.js.map +1 -1
- package/Cameras/gamepadCamera.d.ts +1 -1
- package/Cameras/gamepadCamera.js +1 -1
- package/Cameras/gamepadCamera.js.map +1 -1
- package/Cameras/targetCamera.d.ts +1 -1
- package/Cameras/targetCamera.js +1 -1
- package/Cameras/targetCamera.js.map +1 -1
- package/Cameras/touchCamera.d.ts +1 -1
- package/Cameras/touchCamera.js +1 -1
- package/Cameras/touchCamera.js.map +1 -1
- package/Cameras/universalCamera.d.ts +1 -1
- package/Cameras/universalCamera.js +1 -1
- package/Cameras/universalCamera.js.map +1 -1
- package/Cameras/virtualJoysticksCamera.d.ts +1 -1
- package/Cameras/virtualJoysticksCamera.js +1 -1
- package/Cameras/virtualJoysticksCamera.js.map +1 -1
- package/Culling/boundingBox.d.ts +2 -2
- package/Culling/boundingBox.js +2 -2
- package/Culling/boundingBox.js.map +1 -1
- package/Culling/ray.d.ts +1 -1
- package/Culling/ray.js +1 -1
- package/Culling/ray.js.map +1 -1
- package/Debug/debugLayer.d.ts +1 -1
- package/Debug/debugLayer.js +1 -1
- package/Debug/debugLayer.js.map +1 -1
- package/DeviceInput/webDeviceInputSystem.js +20 -2
- package/DeviceInput/webDeviceInputSystem.js.map +1 -1
- package/Engines/Extensions/engine.multiRender.js +8 -10
- package/Engines/Extensions/engine.multiRender.js.map +1 -1
- package/Engines/Extensions/engine.query.d.ts +2 -2
- package/Engines/Extensions/engine.query.js.map +1 -1
- package/Engines/ICanvas.d.ts +11 -0
- package/Engines/ICanvas.js.map +1 -1
- package/Engines/WebGL/webGLPipelineContext.d.ts +29 -19
- package/Engines/WebGL/webGLPipelineContext.js +99 -311
- package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
- package/Engines/WebGL/webGLRenderTargetWrapper.js +1 -1
- package/Engines/WebGL/webGLRenderTargetWrapper.js.map +1 -1
- package/Engines/engine.d.ts +2 -2
- package/Engines/engine.js +2 -2
- package/Engines/engine.js.map +1 -1
- package/Engines/nativeEngine.d.ts +2 -2
- package/Engines/nativeEngine.js +2 -2
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/renderTargetWrapper.d.ts +1 -0
- package/Engines/renderTargetWrapper.js +5 -2
- package/Engines/renderTargetWrapper.js.map +1 -1
- package/Engines/thinEngine.d.ts +6 -5
- package/Engines/thinEngine.js +11 -7
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +4 -1
- package/Engines/webgpuEngine.js.map +1 -1
- package/Events/clipboardEvents.d.ts +1 -1
- package/Events/clipboardEvents.js +1 -1
- package/Events/clipboardEvents.js.map +1 -1
- package/Events/deviceInputEvents.d.ts +11 -4
- package/Events/deviceInputEvents.js.map +1 -1
- package/Gamepads/Controllers/windowsMotionController.d.ts +1 -1
- package/Gamepads/Controllers/windowsMotionController.js +1 -1
- package/Gamepads/Controllers/windowsMotionController.js.map +1 -1
- package/Gizmos/boundingBoxGizmo.d.ts +4 -0
- package/Gizmos/boundingBoxGizmo.js +6 -0
- package/Gizmos/boundingBoxGizmo.js.map +1 -1
- package/Inputs/scene.inputManager.js +4 -4
- package/Inputs/scene.inputManager.js.map +1 -1
- package/Layers/effectLayer.d.ts +3 -3
- package/Layers/effectLayer.js +1 -1
- package/Layers/effectLayer.js.map +1 -1
- package/Layers/glowLayer.d.ts +3 -3
- package/Layers/glowLayer.js +2 -2
- package/Layers/glowLayer.js.map +1 -1
- package/Layers/highlightLayer.d.ts +3 -3
- package/Layers/highlightLayer.js +2 -2
- package/Layers/highlightLayer.js.map +1 -1
- package/Lights/directionalLight.d.ts +2 -2
- package/Lights/directionalLight.js +2 -2
- package/Lights/directionalLight.js.map +1 -1
- package/Lights/hemisphericLight.d.ts +3 -3
- package/Lights/hemisphericLight.js +3 -3
- package/Lights/hemisphericLight.js.map +1 -1
- package/Lights/light.d.ts +2 -2
- package/Lights/light.js +2 -2
- package/Lights/light.js.map +1 -1
- package/Lights/lightConstants.d.ts +1 -1
- package/Lights/lightConstants.js +1 -1
- package/Lights/lightConstants.js.map +1 -1
- package/Loading/Plugins/babylonFileLoader.js +3 -0
- package/Loading/Plugins/babylonFileLoader.js.map +1 -1
- package/Loading/sceneLoader.d.ts +1 -1
- package/Loading/sceneLoader.js.map +1 -1
- package/Materials/Background/backgroundMaterial.js +4 -0
- package/Materials/Background/backgroundMaterial.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js +4 -1
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +1 -1
- package/Materials/Node/nodeMaterial.js +5 -1
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.js +4 -1
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/Textures/Filtering/hdrFiltering.d.ts +1 -1
- package/Materials/Textures/Filtering/hdrFiltering.js +1 -1
- package/Materials/Textures/Filtering/hdrFiltering.js.map +1 -1
- package/Materials/Textures/Procedurals/customProceduralTexture.d.ts +2 -1
- package/Materials/Textures/Procedurals/customProceduralTexture.js +9 -3
- package/Materials/Textures/Procedurals/customProceduralTexture.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.d.ts +9 -9
- package/Materials/Textures/Procedurals/proceduralTexture.js +9 -9
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/Textures/colorGradingTexture.d.ts +1 -1
- package/Materials/Textures/colorGradingTexture.js +1 -1
- package/Materials/Textures/colorGradingTexture.js.map +1 -1
- package/Materials/Textures/cubeTexture.d.ts +2 -2
- package/Materials/Textures/cubeTexture.js +2 -2
- package/Materials/Textures/cubeTexture.js.map +1 -1
- package/Materials/Textures/rawCubeTexture.d.ts +1 -1
- package/Materials/Textures/rawCubeTexture.js +1 -1
- package/Materials/Textures/rawCubeTexture.js.map +1 -1
- package/Materials/Textures/renderTargetTexture.d.ts +3 -5
- package/Materials/Textures/renderTargetTexture.js +19 -19
- package/Materials/Textures/renderTargetTexture.js.map +1 -1
- package/Materials/colorCurves.d.ts +3 -3
- package/Materials/colorCurves.js +3 -3
- package/Materials/colorCurves.js.map +1 -1
- package/Materials/effect.d.ts +27 -27
- package/Materials/effect.js +22 -288
- package/Materials/effect.js.map +1 -1
- package/Materials/fresnelParameters.d.ts +1 -1
- package/Materials/fresnelParameters.js +1 -1
- package/Materials/fresnelParameters.js.map +1 -1
- package/Materials/imageProcessingConfiguration.d.ts +4 -4
- package/Materials/imageProcessingConfiguration.js +4 -4
- package/Materials/imageProcessingConfiguration.js.map +1 -1
- package/Materials/shaderMaterial.d.ts +25 -25
- package/Materials/shaderMaterial.js +25 -25
- package/Materials/shaderMaterial.js.map +1 -1
- package/Materials/standardMaterial.js +4 -1
- package/Materials/standardMaterial.js.map +1 -1
- package/Maths/index.d.ts +1 -0
- package/Maths/index.js +1 -0
- package/Maths/index.js.map +1 -1
- package/Maths/math.functions.d.ts +2 -2
- package/Maths/math.functions.js +2 -2
- package/Maths/math.functions.js.map +1 -1
- package/Maths/math.polar.d.ts +77 -0
- package/Maths/math.polar.js +114 -0
- package/Maths/math.polar.js.map +1 -0
- package/Maths/math.scalar.d.ts +2 -2
- package/Maths/math.scalar.js +2 -2
- package/Maths/math.scalar.js.map +1 -1
- package/Maths/math.vector.d.ts +13 -12
- package/Maths/math.vector.js +13 -12
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/abstractMesh.d.ts +1 -1
- package/Meshes/abstractMesh.js +13 -2
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/geometry.d.ts +3 -3
- package/Meshes/geometry.js +3 -3
- package/Meshes/geometry.js.map +1 -1
- package/Meshes/groundMesh.d.ts +5 -4
- package/Meshes/groundMesh.js +5 -4
- package/Meshes/groundMesh.js.map +1 -1
- package/Meshes/instancedMesh.d.ts +1 -1
- package/Meshes/instancedMesh.js +1 -1
- package/Meshes/instancedMesh.js.map +1 -1
- package/Meshes/mesh.d.ts +3 -3
- package/Meshes/mesh.js +7 -3
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/subMesh.d.ts +1 -1
- package/Meshes/subMesh.js +1 -1
- package/Meshes/subMesh.js.map +1 -1
- package/Meshes/thinInstanceMesh.d.ts +1 -1
- package/Meshes/thinInstanceMesh.js.map +1 -1
- package/Meshes/transformNode.js +6 -0
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.d.ts +2 -2
- package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js +2 -2
- package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js.map +1 -1
- package/Misc/HighDynamicRange/hdr.d.ts +3 -3
- package/Misc/HighDynamicRange/hdr.js +3 -3
- package/Misc/HighDynamicRange/hdr.js.map +1 -1
- package/Misc/HighDynamicRange/panoramaToCubemap.d.ts +1 -1
- package/Misc/HighDynamicRange/panoramaToCubemap.js +1 -1
- package/Misc/HighDynamicRange/panoramaToCubemap.js.map +1 -1
- package/Misc/arrayTools.d.ts +13 -12
- package/Misc/arrayTools.js +70 -39
- package/Misc/arrayTools.js.map +1 -1
- package/Misc/assetsManager.d.ts +3 -3
- package/Misc/assetsManager.js +3 -3
- package/Misc/assetsManager.js.map +1 -1
- package/Misc/basis.js +17 -3
- package/Misc/basis.js.map +1 -1
- package/Misc/environmentTextureTools.d.ts +4 -4
- package/Misc/environmentTextureTools.js +5 -5
- package/Misc/environmentTextureTools.js.map +1 -1
- package/Misc/fileTools.d.ts +3 -3
- package/Misc/fileTools.js +19 -12
- package/Misc/fileTools.js.map +1 -1
- package/Misc/logger.js +1 -1
- package/Misc/logger.js.map +1 -1
- package/Misc/observable.d.ts +1 -1
- package/Misc/observable.js +1 -1
- package/Misc/observable.js.map +1 -1
- package/Misc/performanceMonitor.d.ts +3 -3
- package/Misc/performanceMonitor.js +3 -3
- package/Misc/performanceMonitor.js.map +1 -1
- package/Misc/rgbdTextureTools.d.ts +1 -1
- package/Misc/rgbdTextureTools.js +1 -1
- package/Misc/rgbdTextureTools.js.map +1 -1
- package/Misc/sceneOptimizer.d.ts +7 -7
- package/Misc/sceneOptimizer.js +7 -7
- package/Misc/sceneOptimizer.js.map +1 -1
- package/Misc/stringDictionary.d.ts +6 -6
- package/Misc/stringDictionary.js +6 -6
- package/Misc/stringDictionary.js.map +1 -1
- package/Misc/textureTools.d.ts +4 -4
- package/Misc/textureTools.js +4 -4
- package/Misc/textureTools.js.map +1 -1
- package/Misc/tools.d.ts +6 -6
- package/Misc/tools.js +6 -6
- package/Misc/tools.js.map +1 -1
- package/Misc/videoRecorder.d.ts +1 -1
- package/Misc/videoRecorder.js +1 -1
- package/Misc/videoRecorder.js.map +1 -1
- package/Offline/database.js +3 -3
- package/Offline/database.js.map +1 -1
- package/Particles/IParticleSystem.d.ts +1 -1
- package/Particles/IParticleSystem.js.map +1 -1
- package/Particles/gpuParticleSystem.d.ts +1 -1
- package/Particles/gpuParticleSystem.js +1 -1
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/particleSystem.d.ts +1 -1
- package/Particles/particleSystem.js +1 -1
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/solidParticleSystem.d.ts +4 -0
- package/Particles/solidParticleSystem.js +25 -3
- package/Particles/solidParticleSystem.js.map +1 -1
- package/Physics/Plugins/ammoJSPlugin.d.ts +1 -1
- package/Physics/Plugins/ammoJSPlugin.js +1 -1
- package/Physics/Plugins/ammoJSPlugin.js.map +1 -1
- package/Physics/Plugins/oimoJSPlugin.js +1 -1
- package/Physics/Plugins/oimoJSPlugin.js.map +1 -1
- package/Physics/physicsEngineComponent.d.ts +1 -1
- package/Physics/physicsEngineComponent.js +1 -1
- package/Physics/physicsEngineComponent.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +3 -3
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js +1 -2
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js.map +1 -1
- package/PostProcesses/blurPostProcess.d.ts +3 -3
- package/PostProcesses/blurPostProcess.js +3 -3
- package/PostProcesses/blurPostProcess.js.map +1 -1
- package/PostProcesses/volumetricLightScatteringPostProcess.d.ts +3 -3
- package/PostProcesses/volumetricLightScatteringPostProcess.js +3 -3
- package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
- package/Rendering/depthPeelingRenderer.d.ts +1 -0
- package/Rendering/depthPeelingRenderer.js +32 -5
- package/Rendering/depthPeelingRenderer.js.map +1 -1
- package/Rendering/edgesRenderer.d.ts +2 -2
- package/Rendering/edgesRenderer.js +1 -1
- package/Rendering/edgesRenderer.js.map +1 -1
- package/Rendering/geometryBufferRenderer.d.ts +4 -2
- package/Rendering/geometryBufferRenderer.js +5 -3
- package/Rendering/geometryBufferRenderer.js.map +1 -1
- package/Rendering/geometryBufferRendererSceneComponent.d.ts +2 -1
- package/Rendering/geometryBufferRendererSceneComponent.js +3 -2
- package/Rendering/geometryBufferRendererSceneComponent.js.map +1 -1
- package/Rendering/prePassRenderer.d.ts +11 -3
- package/Rendering/prePassRenderer.js +18 -3
- package/Rendering/prePassRenderer.js.map +1 -1
- package/Rendering/subSurfaceConfiguration.d.ts +2 -2
- package/Rendering/subSurfaceConfiguration.js +2 -2
- package/Rendering/subSurfaceConfiguration.js.map +1 -1
- package/Sprites/spriteSceneComponent.js +4 -1
- package/Sprites/spriteSceneComponent.js.map +1 -1
- package/XR/features/WebXRControllerTeleportation.d.ts +4 -0
- package/XR/features/WebXRControllerTeleportation.js +24 -19
- package/XR/features/WebXRControllerTeleportation.js.map +1 -1
- package/XR/motionController/webXRAbstractMotionController.d.ts +2 -2
- package/XR/motionController/webXRAbstractMotionController.js +2 -2
- package/XR/motionController/webXRAbstractMotionController.js.map +1 -1
- package/XR/motionController/webXRControllerComponent.d.ts +1 -1
- package/XR/motionController/webXRControllerComponent.js +1 -1
- package/XR/motionController/webXRControllerComponent.js.map +1 -1
- package/XR/motionController/webXRMotionControllerManager.d.ts +3 -3
- package/XR/motionController/webXRMotionControllerManager.js +3 -3
- package/XR/motionController/webXRMotionControllerManager.js.map +1 -1
- package/node.d.ts +4 -4
- package/node.js +3 -3
- package/node.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +0 -4
- package/scene.d.ts +80 -63
- package/scene.js +92 -46
- package/scene.js.map +1 -1
- package/sceneComponent.d.ts +1 -1
- package/sceneComponent.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;
|
|
@@ -85,6 +84,17 @@ export interface SceneOptions {
|
|
|
85
84
|
/** Defines if the creation of the scene should impact the engine (Eg. UtilityLayer's scene) */
|
|
86
85
|
virtual?: boolean;
|
|
87
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Define how the scene should favor performance over ease of use
|
|
89
|
+
*/
|
|
90
|
+
export declare enum ScenePerformancePriority {
|
|
91
|
+
/** Default mode. No change. Performance will be treated as less important than backward compatibility */
|
|
92
|
+
BackwardCompatible = 0,
|
|
93
|
+
/** Some performance options will be turned on trying to strike a balance between perf and ease of use */
|
|
94
|
+
Intermediate = 1,
|
|
95
|
+
/** Performance will be top priority */
|
|
96
|
+
Aggressive = 2
|
|
97
|
+
}
|
|
88
98
|
/**
|
|
89
99
|
* Represents a scene to be rendered by the engine.
|
|
90
100
|
* @see https://doc.babylonjs.com/features/scene
|
|
@@ -182,6 +192,12 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
182
192
|
* No setter as we it is a shared configuration, you can set the values instead.
|
|
183
193
|
*/
|
|
184
194
|
get imageProcessingConfiguration(): ImageProcessingConfiguration;
|
|
195
|
+
private _performancePriority;
|
|
196
|
+
/**
|
|
197
|
+
* Gets or sets a value indicating how to treat performance relatively to ease of use and backward compatibility
|
|
198
|
+
*/
|
|
199
|
+
get performancePriority(): ScenePerformancePriority;
|
|
200
|
+
set performancePriority(value: ScenePerformancePriority);
|
|
185
201
|
private _forceWireframe;
|
|
186
202
|
/**
|
|
187
203
|
* Gets or sets a boolean indicating if all rendering must be done in wireframe
|
|
@@ -462,7 +478,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
462
478
|
/**
|
|
463
479
|
* An event triggered when the activeCameras property is updated
|
|
464
480
|
*/
|
|
465
|
-
onActiveCamerasChanged: Observable<
|
|
481
|
+
onActiveCamerasChanged: Observable<Scene>;
|
|
466
482
|
/**
|
|
467
483
|
* This Observable will be triggered before rendering each renderingGroup of each rendered camera.
|
|
468
484
|
* The RenderingGroupInfo class contains all the information about the context in which the observable is called
|
|
@@ -562,7 +578,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
562
578
|
* @param effect The effect to be bound
|
|
563
579
|
* @param variableName name of the shader variable that will hold the eye position
|
|
564
580
|
* @param isVector3 true to indicates that variableName is a Vector3 and not a Vector4
|
|
565
|
-
* @
|
|
581
|
+
* @returns the computed eye position
|
|
566
582
|
*/
|
|
567
583
|
bindEyePosition(effect: Nullable<Effect>, variableName?: string, isVector3?: boolean): Vector4;
|
|
568
584
|
/**
|
|
@@ -674,6 +690,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
674
690
|
set lightsEnabled(value: boolean);
|
|
675
691
|
get lightsEnabled(): boolean;
|
|
676
692
|
private _activeCameras;
|
|
693
|
+
private _unObserveActiveCameras;
|
|
677
694
|
/** All of the active cameras added to this scene. */
|
|
678
695
|
get activeCameras(): Nullable<Camera[]>;
|
|
679
696
|
set activeCameras(cameras: Nullable<Camera[]>);
|
|
@@ -1179,7 +1196,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1179
1196
|
* This function will check if the scene can be rendered (textures are loaded, shaders are compiled)
|
|
1180
1197
|
* Delay loaded resources are not taking in account
|
|
1181
1198
|
* @param checkRenderTargets true to also check that the meshes rendered as part of a render target are ready (default: true)
|
|
1182
|
-
* @
|
|
1199
|
+
* @returns true if all required resources are ready
|
|
1183
1200
|
*/
|
|
1184
1201
|
isReady(checkRenderTargets?: boolean): boolean;
|
|
1185
1202
|
/** Resets all cached information relative to material (including effect and visibility) */
|
|
@@ -1474,7 +1491,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1474
1491
|
/**
|
|
1475
1492
|
* sets the active camera of the scene using its Id
|
|
1476
1493
|
* @param id defines the camera's Id
|
|
1477
|
-
* @
|
|
1494
|
+
* @returns the new active camera or null if none found.
|
|
1478
1495
|
*/
|
|
1479
1496
|
setActiveCameraById(id: string): Nullable<Camera>;
|
|
1480
1497
|
/**
|
|
@@ -1486,44 +1503,44 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1486
1503
|
/**
|
|
1487
1504
|
* get an animation group using its name
|
|
1488
1505
|
* @param name defines the material's name
|
|
1489
|
-
* @
|
|
1506
|
+
* @returns the animation group or null if none found.
|
|
1490
1507
|
*/
|
|
1491
1508
|
getAnimationGroupByName(name: string): Nullable<AnimationGroup>;
|
|
1492
1509
|
/**
|
|
1493
1510
|
* Get a material using its unique id
|
|
1494
1511
|
* @param uniqueId defines the material's unique id
|
|
1495
|
-
* @
|
|
1512
|
+
* @returns the material or null if none found.
|
|
1496
1513
|
*/
|
|
1497
1514
|
getMaterialByUniqueID(uniqueId: number): Nullable<Material>;
|
|
1498
1515
|
/**
|
|
1499
1516
|
* get a material using its id
|
|
1500
1517
|
* @param id defines the material's Id
|
|
1501
|
-
* @
|
|
1518
|
+
* @returns the material or null if none found.
|
|
1502
1519
|
*/
|
|
1503
1520
|
getMaterialById(id: string): Nullable<Material>;
|
|
1504
1521
|
/**
|
|
1505
1522
|
* Gets a the last added material using a given id
|
|
1506
1523
|
* @param id defines the material's Id
|
|
1507
1524
|
* @param allowMultiMaterials determines whether multimaterials should be considered
|
|
1508
|
-
* @
|
|
1525
|
+
* @returns the last material with the given id or null if none found.
|
|
1509
1526
|
*/
|
|
1510
1527
|
getLastMaterialById(id: string, allowMultiMaterials?: boolean): Nullable<Material>;
|
|
1511
1528
|
/**
|
|
1512
1529
|
* Gets a material using its name
|
|
1513
1530
|
* @param name defines the material's name
|
|
1514
|
-
* @
|
|
1531
|
+
* @returns the material or null if none found.
|
|
1515
1532
|
*/
|
|
1516
1533
|
getMaterialByName(name: string): Nullable<Material>;
|
|
1517
1534
|
/**
|
|
1518
1535
|
* Get a texture using its unique id
|
|
1519
1536
|
* @param uniqueId defines the texture's unique id
|
|
1520
|
-
* @
|
|
1537
|
+
* @returns the texture or null if none found.
|
|
1521
1538
|
*/
|
|
1522
1539
|
getTextureByUniqueId(uniqueId: number): Nullable<BaseTexture>;
|
|
1523
1540
|
/**
|
|
1524
1541
|
* Gets a texture using its name
|
|
1525
1542
|
* @param name defines the texture's name
|
|
1526
|
-
* @
|
|
1543
|
+
* @returns the texture or null if none found.
|
|
1527
1544
|
*/
|
|
1528
1545
|
getTextureByName(name: string): Nullable<BaseTexture>;
|
|
1529
1546
|
/**
|
|
@@ -1541,49 +1558,49 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1541
1558
|
/**
|
|
1542
1559
|
* Gets a camera using its name
|
|
1543
1560
|
* @param name defines the camera's name
|
|
1544
|
-
* @
|
|
1561
|
+
* @returns the camera or null if none found.
|
|
1545
1562
|
*/
|
|
1546
1563
|
getCameraByName(name: string): Nullable<Camera>;
|
|
1547
1564
|
/**
|
|
1548
1565
|
* Gets a bone using its Id
|
|
1549
1566
|
* @param id defines the bone's Id
|
|
1550
|
-
* @
|
|
1567
|
+
* @returns the bone or null if not found
|
|
1551
1568
|
*/
|
|
1552
1569
|
getBoneById(id: string): Nullable<Bone>;
|
|
1553
1570
|
/**
|
|
1554
1571
|
* Gets a bone using its id
|
|
1555
1572
|
* @param name defines the bone's name
|
|
1556
|
-
* @
|
|
1573
|
+
* @returns the bone or null if not found
|
|
1557
1574
|
*/
|
|
1558
1575
|
getBoneByName(name: string): Nullable<Bone>;
|
|
1559
1576
|
/**
|
|
1560
1577
|
* Gets a light node using its name
|
|
1561
1578
|
* @param name defines the the light's name
|
|
1562
|
-
* @
|
|
1579
|
+
* @returns the light or null if none found.
|
|
1563
1580
|
*/
|
|
1564
1581
|
getLightByName(name: string): Nullable<Light>;
|
|
1565
1582
|
/**
|
|
1566
1583
|
* Gets a light node using its Id
|
|
1567
1584
|
* @param id defines the light's Id
|
|
1568
|
-
* @
|
|
1585
|
+
* @returns the light or null if none found.
|
|
1569
1586
|
*/
|
|
1570
1587
|
getLightById(id: string): Nullable<Light>;
|
|
1571
1588
|
/**
|
|
1572
1589
|
* Gets a light node using its scene-generated unique Id
|
|
1573
1590
|
* @param uniqueId defines the light's unique Id
|
|
1574
|
-
* @
|
|
1591
|
+
* @returns the light or null if none found.
|
|
1575
1592
|
*/
|
|
1576
1593
|
getLightByUniqueId(uniqueId: number): Nullable<Light>;
|
|
1577
1594
|
/**
|
|
1578
1595
|
* Gets a particle system by Id
|
|
1579
1596
|
* @param id defines the particle system Id
|
|
1580
|
-
* @
|
|
1597
|
+
* @returns the corresponding system or null if none found
|
|
1581
1598
|
*/
|
|
1582
1599
|
getParticleSystemById(id: string): Nullable<IParticleSystem>;
|
|
1583
1600
|
/**
|
|
1584
1601
|
* Gets a geometry using its Id
|
|
1585
1602
|
* @param id defines the geometry's Id
|
|
1586
|
-
* @
|
|
1603
|
+
* @returns the geometry or null if none found.
|
|
1587
1604
|
*/
|
|
1588
1605
|
getGeometryById(id: string): Nullable<Geometry>;
|
|
1589
1606
|
private _getGeometryByUniqueId;
|
|
@@ -1591,13 +1608,13 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1591
1608
|
* Add a new geometry to this scene
|
|
1592
1609
|
* @param geometry defines the geometry to be added to the scene.
|
|
1593
1610
|
* @param force defines if the geometry must be pushed even if a geometry with this id already exists
|
|
1594
|
-
* @
|
|
1611
|
+
* @returns a boolean defining if the geometry was added or not
|
|
1595
1612
|
*/
|
|
1596
1613
|
pushGeometry(geometry: Geometry, force?: boolean): boolean;
|
|
1597
1614
|
/**
|
|
1598
1615
|
* Removes an existing geometry
|
|
1599
1616
|
* @param geometry defines the geometry to be removed from the scene
|
|
1600
|
-
* @
|
|
1617
|
+
* @returns a boolean defining if the geometry was removed or not
|
|
1601
1618
|
*/
|
|
1602
1619
|
removeGeometry(geometry: Geometry): boolean;
|
|
1603
1620
|
/**
|
|
@@ -1608,7 +1625,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1608
1625
|
/**
|
|
1609
1626
|
* Gets the first added mesh found of a given Id
|
|
1610
1627
|
* @param id defines the Id to search for
|
|
1611
|
-
* @
|
|
1628
|
+
* @returns the mesh found or null if not found at all
|
|
1612
1629
|
*/
|
|
1613
1630
|
getMeshById(id: string): Nullable<AbstractMesh>;
|
|
1614
1631
|
/**
|
|
@@ -1620,13 +1637,13 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1620
1637
|
/**
|
|
1621
1638
|
* Gets the first added transform node found of a given Id
|
|
1622
1639
|
* @param id defines the Id to search for
|
|
1623
|
-
* @
|
|
1640
|
+
* @returns the found transform node or null if not found at all.
|
|
1624
1641
|
*/
|
|
1625
1642
|
getTransformNodeById(id: string): Nullable<TransformNode>;
|
|
1626
1643
|
/**
|
|
1627
1644
|
* Gets a transform node with its auto-generated unique Id
|
|
1628
1645
|
* @param uniqueId defines the unique Id to search for
|
|
1629
|
-
* @
|
|
1646
|
+
* @returns the found transform node or null if not found at all.
|
|
1630
1647
|
*/
|
|
1631
1648
|
getTransformNodeByUniqueId(uniqueId: number): Nullable<TransformNode>;
|
|
1632
1649
|
/**
|
|
@@ -1638,91 +1655,91 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1638
1655
|
/**
|
|
1639
1656
|
* Gets a mesh with its auto-generated unique Id
|
|
1640
1657
|
* @param uniqueId defines the unique Id to search for
|
|
1641
|
-
* @
|
|
1658
|
+
* @returns the found mesh or null if not found at all.
|
|
1642
1659
|
*/
|
|
1643
1660
|
getMeshByUniqueId(uniqueId: number): Nullable<AbstractMesh>;
|
|
1644
1661
|
/**
|
|
1645
1662
|
* Gets a the last added mesh using a given Id
|
|
1646
1663
|
* @param id defines the Id to search for
|
|
1647
|
-
* @
|
|
1664
|
+
* @returns the found mesh or null if not found at all.
|
|
1648
1665
|
*/
|
|
1649
1666
|
getLastMeshById(id: string): Nullable<AbstractMesh>;
|
|
1650
1667
|
/**
|
|
1651
1668
|
* Gets a the last added node (Mesh, Camera, Light) using a given Id
|
|
1652
1669
|
* @param id defines the Id to search for
|
|
1653
|
-
* @
|
|
1670
|
+
* @returns the found node or null if not found at all
|
|
1654
1671
|
*/
|
|
1655
1672
|
getLastEntryById(id: string): Nullable<Node>;
|
|
1656
1673
|
/**
|
|
1657
1674
|
* Gets a node (Mesh, Camera, Light) using a given Id
|
|
1658
1675
|
* @param id defines the Id to search for
|
|
1659
|
-
* @
|
|
1676
|
+
* @returns the found node or null if not found at all
|
|
1660
1677
|
*/
|
|
1661
1678
|
getNodeById(id: string): Nullable<Node>;
|
|
1662
1679
|
/**
|
|
1663
1680
|
* Gets a node (Mesh, Camera, Light) using a given name
|
|
1664
1681
|
* @param name defines the name to search for
|
|
1665
|
-
* @
|
|
1682
|
+
* @returns the found node or null if not found at all.
|
|
1666
1683
|
*/
|
|
1667
1684
|
getNodeByName(name: string): Nullable<Node>;
|
|
1668
1685
|
/**
|
|
1669
1686
|
* Gets a mesh using a given name
|
|
1670
1687
|
* @param name defines the name to search for
|
|
1671
|
-
* @
|
|
1688
|
+
* @returns the found mesh or null if not found at all.
|
|
1672
1689
|
*/
|
|
1673
1690
|
getMeshByName(name: string): Nullable<AbstractMesh>;
|
|
1674
1691
|
/**
|
|
1675
1692
|
* Gets a transform node using a given name
|
|
1676
1693
|
* @param name defines the name to search for
|
|
1677
|
-
* @
|
|
1694
|
+
* @returns the found transform node or null if not found at all.
|
|
1678
1695
|
*/
|
|
1679
1696
|
getTransformNodeByName(name: string): Nullable<TransformNode>;
|
|
1680
1697
|
/**
|
|
1681
1698
|
* Gets a skeleton using a given Id (if many are found, this function will pick the last one)
|
|
1682
1699
|
* @param id defines the Id to search for
|
|
1683
|
-
* @
|
|
1700
|
+
* @returns the found skeleton or null if not found at all.
|
|
1684
1701
|
*/
|
|
1685
1702
|
getLastSkeletonById(id: string): Nullable<Skeleton>;
|
|
1686
1703
|
/**
|
|
1687
1704
|
* Gets a skeleton using a given auto generated unique id
|
|
1688
1705
|
* @param uniqueId defines the unique id to search for
|
|
1689
|
-
* @
|
|
1706
|
+
* @returns the found skeleton or null if not found at all.
|
|
1690
1707
|
*/
|
|
1691
1708
|
getSkeletonByUniqueId(uniqueId: number): Nullable<Skeleton>;
|
|
1692
1709
|
/**
|
|
1693
1710
|
* Gets a skeleton using a given id (if many are found, this function will pick the first one)
|
|
1694
1711
|
* @param id defines the id to search for
|
|
1695
|
-
* @
|
|
1712
|
+
* @returns the found skeleton or null if not found at all.
|
|
1696
1713
|
*/
|
|
1697
1714
|
getSkeletonById(id: string): Nullable<Skeleton>;
|
|
1698
1715
|
/**
|
|
1699
1716
|
* Gets a skeleton using a given name
|
|
1700
1717
|
* @param name defines the name to search for
|
|
1701
|
-
* @
|
|
1718
|
+
* @returns the found skeleton or null if not found at all.
|
|
1702
1719
|
*/
|
|
1703
1720
|
getSkeletonByName(name: string): Nullable<Skeleton>;
|
|
1704
1721
|
/**
|
|
1705
1722
|
* Gets a morph target manager using a given id (if many are found, this function will pick the last one)
|
|
1706
1723
|
* @param id defines the id to search for
|
|
1707
|
-
* @
|
|
1724
|
+
* @returns the found morph target manager or null if not found at all.
|
|
1708
1725
|
*/
|
|
1709
1726
|
getMorphTargetManagerById(id: number): Nullable<MorphTargetManager>;
|
|
1710
1727
|
/**
|
|
1711
1728
|
* Gets a morph target using a given id (if many are found, this function will pick the first one)
|
|
1712
1729
|
* @param id defines the id to search for
|
|
1713
|
-
* @
|
|
1730
|
+
* @returns the found morph target or null if not found at all.
|
|
1714
1731
|
*/
|
|
1715
1732
|
getMorphTargetById(id: string): Nullable<MorphTarget>;
|
|
1716
1733
|
/**
|
|
1717
1734
|
* Gets a morph target using a given name (if many are found, this function will pick the first one)
|
|
1718
1735
|
* @param name defines the name to search for
|
|
1719
|
-
* @
|
|
1736
|
+
* @returns the found morph target or null if not found at all.
|
|
1720
1737
|
*/
|
|
1721
1738
|
getMorphTargetByName(name: string): Nullable<MorphTarget>;
|
|
1722
1739
|
/**
|
|
1723
1740
|
* Gets a post process using a given name (if many are found, this function will pick the first one)
|
|
1724
1741
|
* @param name defines the name to search for
|
|
1725
|
-
* @
|
|
1742
|
+
* @returns the found post process or null if not found at all.
|
|
1726
1743
|
*/
|
|
1727
1744
|
getPostProcessByName(name: string): Nullable<PostProcess>;
|
|
1728
1745
|
/**
|
|
@@ -1741,26 +1758,26 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
|
|
|
1741
1758
|
* If you don't care and just want to get the data no matter what, use the more convenient getOrAddExternalDataWithFactory() method.
|
|
1742
1759
|
* @param key the unique key that identifies the data
|
|
1743
1760
|
* @param data the data object to associate to the key for this Engine instance
|
|
1744
|
-
* @
|
|
1761
|
+
* @returns true if no such key were already present and the data was added successfully, false otherwise
|
|
1745
1762
|
*/
|
|
1746
|
-
addExternalData<T>(key: string, data: T): boolean;
|
|
1763
|
+
addExternalData<T extends Object>(key: string, data: T): boolean;
|
|
1747
1764
|
/**
|
|
1748
1765
|
* Get an externally attached data from its key
|
|
1749
1766
|
* @param key the unique key that identifies the data
|
|
1750
|
-
* @
|
|
1767
|
+
* @returns the associated data, if present (can be null), or undefined if not present
|
|
1751
1768
|
*/
|
|
1752
1769
|
getExternalData<T>(key: string): Nullable<T>;
|
|
1753
1770
|
/**
|
|
1754
1771
|
* Get an externally attached data from its key, create it using a factory if it's not already present
|
|
1755
1772
|
* @param key the unique key that identifies the data
|
|
1756
1773
|
* @param factory the factory that will be called to create the instance if and only if it doesn't exists
|
|
1757
|
-
* @
|
|
1774
|
+
* @returns the associated data, can be null if the factory returned null.
|
|
1758
1775
|
*/
|
|
1759
|
-
getOrAddExternalDataWithFactory<T>(key: string, factory: (k: string) => T): T;
|
|
1776
|
+
getOrAddExternalDataWithFactory<T extends Object>(key: string, factory: (k: string) => T): T;
|
|
1760
1777
|
/**
|
|
1761
1778
|
* Remove an externally attached data from the Engine instance
|
|
1762
1779
|
* @param key the unique key that identifies the data
|
|
1763
|
-
* @
|
|
1780
|
+
* @returns true if the data was successfully removed, false if it doesn't exist
|
|
1764
1781
|
*/
|
|
1765
1782
|
removeExternalData(key: string): boolean;
|
|
1766
1783
|
private _evaluateSubMesh;
|
|
@@ -2157,28 +2174,28 @@ declare module "./scene" {
|
|
|
2157
2174
|
/**
|
|
2158
2175
|
* Sets the active camera of the scene using its Id
|
|
2159
2176
|
* @param id defines the camera's Id
|
|
2160
|
-
* @
|
|
2177
|
+
* @returns the new active camera or null if none found.
|
|
2161
2178
|
* @deprecated Please use setActiveCameraById instead
|
|
2162
2179
|
*/
|
|
2163
2180
|
setActiveCameraByID(id: string): Nullable<Camera>;
|
|
2164
2181
|
/**
|
|
2165
2182
|
* Get a material using its id
|
|
2166
2183
|
* @param id defines the material's Id
|
|
2167
|
-
* @
|
|
2184
|
+
* @returns the material or null if none found.
|
|
2168
2185
|
* @deprecated Please use getMaterialById instead
|
|
2169
2186
|
*/
|
|
2170
2187
|
getMaterialByID(id: string): Nullable<Material>;
|
|
2171
2188
|
/**
|
|
2172
2189
|
* Gets a the last added material using a given id
|
|
2173
2190
|
* @param id defines the material's Id
|
|
2174
|
-
* @
|
|
2191
|
+
* @returns the last material with the given id or null if none found.
|
|
2175
2192
|
* @deprecated Please use getLastMaterialById instead
|
|
2176
2193
|
*/
|
|
2177
2194
|
getLastMaterialByID(id: string): Nullable<Material>;
|
|
2178
2195
|
/**
|
|
2179
2196
|
* Get a texture using its unique id
|
|
2180
2197
|
* @param uniqueId defines the texture's unique id
|
|
2181
|
-
* @
|
|
2198
|
+
* @returns the texture or null if none found.
|
|
2182
2199
|
* @deprecated Please use getTextureByUniqueId instead
|
|
2183
2200
|
*/
|
|
2184
2201
|
getTextureByUniqueID(uniqueId: number): Nullable<BaseTexture>;
|
|
@@ -2199,56 +2216,56 @@ declare module "./scene" {
|
|
|
2199
2216
|
/**
|
|
2200
2217
|
* Gets a bone using its Id
|
|
2201
2218
|
* @param id defines the bone's Id
|
|
2202
|
-
* @
|
|
2219
|
+
* @returns the bone or null if not found
|
|
2203
2220
|
* @deprecated Please use getBoneById instead
|
|
2204
2221
|
*/
|
|
2205
2222
|
getBoneByID(id: string): Nullable<Bone>;
|
|
2206
2223
|
/**
|
|
2207
2224
|
* Gets a light node using its Id
|
|
2208
2225
|
* @param id defines the light's Id
|
|
2209
|
-
* @
|
|
2226
|
+
* @returns the light or null if none found.
|
|
2210
2227
|
* @deprecated Please use getLightById instead
|
|
2211
2228
|
*/
|
|
2212
2229
|
getLightByID(id: string): Nullable<Light>;
|
|
2213
2230
|
/**
|
|
2214
2231
|
* Gets a light node using its scene-generated unique Id
|
|
2215
2232
|
* @param uniqueId defines the light's unique Id
|
|
2216
|
-
* @
|
|
2233
|
+
* @returns the light or null if none found.
|
|
2217
2234
|
* @deprecated Please use getLightByUniqueId instead
|
|
2218
2235
|
*/
|
|
2219
2236
|
getLightByUniqueID(uniqueId: number): Nullable<Light>;
|
|
2220
2237
|
/**
|
|
2221
2238
|
* Gets a particle system by Id
|
|
2222
2239
|
* @param id defines the particle system Id
|
|
2223
|
-
* @
|
|
2240
|
+
* @returns the corresponding system or null if none found
|
|
2224
2241
|
* @deprecated Please use getParticleSystemById instead
|
|
2225
2242
|
*/
|
|
2226
2243
|
getParticleSystemByID(id: string): Nullable<IParticleSystem>;
|
|
2227
2244
|
/**
|
|
2228
2245
|
* Gets a geometry using its Id
|
|
2229
2246
|
* @param id defines the geometry's Id
|
|
2230
|
-
* @
|
|
2247
|
+
* @returns the geometry or null if none found.
|
|
2231
2248
|
* @deprecated Please use getGeometryById instead
|
|
2232
2249
|
*/
|
|
2233
2250
|
getGeometryByID(id: string): Nullable<Geometry>;
|
|
2234
2251
|
/**
|
|
2235
2252
|
* Gets the first added mesh found of a given Id
|
|
2236
2253
|
* @param id defines the Id to search for
|
|
2237
|
-
* @
|
|
2254
|
+
* @returns the mesh found or null if not found at all
|
|
2238
2255
|
* @deprecated Please use getMeshById instead
|
|
2239
2256
|
*/
|
|
2240
2257
|
getMeshByID(id: string): Nullable<AbstractMesh>;
|
|
2241
2258
|
/**
|
|
2242
2259
|
* Gets a mesh with its auto-generated unique Id
|
|
2243
2260
|
* @param uniqueId defines the unique Id to search for
|
|
2244
|
-
* @
|
|
2261
|
+
* @returns the found mesh or null if not found at all.
|
|
2245
2262
|
* @deprecated Please use getMeshByUniqueId instead
|
|
2246
2263
|
*/
|
|
2247
2264
|
getMeshByUniqueID(uniqueId: number): Nullable<AbstractMesh>;
|
|
2248
2265
|
/**
|
|
2249
2266
|
* Gets a the last added mesh using a given Id
|
|
2250
2267
|
* @param id defines the Id to search for
|
|
2251
|
-
* @
|
|
2268
|
+
* @returns the found mesh or null if not found at all.
|
|
2252
2269
|
* @deprecated Please use getLastMeshById instead
|
|
2253
2270
|
*/
|
|
2254
2271
|
getLastMeshByID(id: string): Nullable<AbstractMesh>;
|
|
@@ -2262,14 +2279,14 @@ declare module "./scene" {
|
|
|
2262
2279
|
/**
|
|
2263
2280
|
* Gets the first added transform node found of a given Id
|
|
2264
2281
|
* @param id defines the Id to search for
|
|
2265
|
-
* @
|
|
2282
|
+
* @returns the found transform node or null if not found at all.
|
|
2266
2283
|
* @deprecated Please use getTransformNodeById instead
|
|
2267
2284
|
*/
|
|
2268
2285
|
getTransformNodeByID(id: string): Nullable<TransformNode>;
|
|
2269
2286
|
/**
|
|
2270
2287
|
* Gets a transform node with its auto-generated unique Id
|
|
2271
2288
|
* @param uniqueId defines the unique Id to search for
|
|
2272
|
-
* @
|
|
2289
|
+
* @returns the found transform node or null if not found at all.
|
|
2273
2290
|
* @deprecated Please use getTransformNodeByUniqueId instead
|
|
2274
2291
|
*/
|
|
2275
2292
|
getTransformNodeByUniqueID(uniqueId: number): Nullable<TransformNode>;
|
|
@@ -2283,21 +2300,21 @@ declare module "./scene" {
|
|
|
2283
2300
|
/**
|
|
2284
2301
|
* Gets a node (Mesh, Camera, Light) using a given Id
|
|
2285
2302
|
* @param id defines the Id to search for
|
|
2286
|
-
* @
|
|
2303
|
+
* @returns the found node or null if not found at all
|
|
2287
2304
|
* @deprecated Please use getNodeById instead
|
|
2288
2305
|
*/
|
|
2289
2306
|
getNodeByID(id: string): Nullable<Node>;
|
|
2290
2307
|
/**
|
|
2291
2308
|
* Gets a the last added node (Mesh, Camera, Light) using a given Id
|
|
2292
2309
|
* @param id defines the Id to search for
|
|
2293
|
-
* @
|
|
2310
|
+
* @returns the found node or null if not found at all
|
|
2294
2311
|
* @deprecated Please use getLastEntryById instead
|
|
2295
2312
|
*/
|
|
2296
2313
|
getLastEntryByID(id: string): Nullable<Node>;
|
|
2297
2314
|
/**
|
|
2298
2315
|
* Gets a skeleton using a given Id (if many are found, this function will pick the last one)
|
|
2299
2316
|
* @param id defines the Id to search for
|
|
2300
|
-
* @
|
|
2317
|
+
* @returns the found skeleton or null if not found at all.
|
|
2301
2318
|
* @deprecated Please use getLastSkeletonById instead
|
|
2302
2319
|
*/
|
|
2303
2320
|
getLastSkeletonByID(id: string): Nullable<Skeleton>;
|