@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.
- 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/animationGroup.d.ts +3 -3
- package/Animations/animationGroup.js +3 -3
- package/Animations/animationGroup.js.map +1 -1
- package/Audio/audioSceneComponent.d.ts +1 -1
- package/Audio/audioSceneComponent.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 +2 -2
- package/Bones/skeleton.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/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/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/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/sceneLoader.d.ts +1 -1
- package/Loading/sceneLoader.js.map +1 -1
- package/Materials/Background/backgroundMaterial.js +1 -1
- package/Materials/Background/backgroundMaterial.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +1 -1
- package/Materials/Node/nodeMaterial.js +2 -2
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.js +1 -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 +1 -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 +9 -4
- 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/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 +3 -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 +1 -1
- 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/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/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.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/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/scene.d.ts +61 -61
- package/scene.js +58 -46
- 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<
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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>;
|