@babylonjs/core 5.32.0 → 5.32.2
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 +1 -1
- package/Actions/abstractActionManager.js +1 -1
- package/Actions/abstractActionManager.js.map +1 -1
- package/Actions/action.d.ts +1 -1
- package/Actions/action.js +1 -1
- package/Actions/action.js.map +1 -1
- package/Actions/actionManager.d.ts +18 -18
- package/Actions/actionManager.js +18 -18
- package/Actions/actionManager.js.map +1 -1
- package/Actions/directActions.d.ts +10 -10
- package/Actions/directActions.js +10 -10
- package/Actions/directActions.js.map +1 -1
- package/Actions/interpolateValueAction.d.ts +1 -1
- package/Actions/interpolateValueAction.js +1 -1
- package/Actions/interpolateValueAction.js.map +1 -1
- package/Animations/animatable.d.ts +2 -2
- package/Animations/animatable.js +2 -2
- package/Animations/animatable.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/easing.d.ts +14 -14
- package/Animations/easing.js +13 -13
- package/Animations/easing.js.map +1 -1
- package/Audio/Interfaces/IAudioEngine.d.ts +2 -2
- package/Audio/Interfaces/IAudioEngine.js.map +1 -1
- package/Audio/Interfaces/ISoundOptions.d.ts +3 -3
- package/Audio/Interfaces/ISoundOptions.js.map +1 -1
- package/Audio/analyser.d.ts +1 -1
- package/Audio/analyser.js +1 -1
- package/Audio/analyser.js.map +1 -1
- package/Audio/audioEngine.d.ts +2 -2
- package/Audio/audioEngine.js +2 -2
- package/Audio/audioEngine.js.map +1 -1
- package/Audio/audioSceneComponent.d.ts +4 -4
- package/Audio/audioSceneComponent.js.map +1 -1
- package/Audio/sound.d.ts +13 -13
- package/Audio/sound.js +13 -13
- package/Audio/sound.js.map +1 -1
- package/Audio/soundTrack.d.ts +5 -5
- package/Audio/soundTrack.js +5 -5
- package/Audio/soundTrack.js.map +1 -1
- package/BakedVertexAnimation/bakedVertexAnimationManager.d.ts +1 -1
- package/BakedVertexAnimation/bakedVertexAnimationManager.js +1 -1
- package/BakedVertexAnimation/bakedVertexAnimationManager.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/Behaviors/Meshes/pointerDragBehavior.d.ts +8 -0
- package/Behaviors/Meshes/pointerDragBehavior.js +9 -3
- package/Behaviors/Meshes/pointerDragBehavior.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/boneIKController.d.ts +1 -1
- package/Bones/boneIKController.js +1 -1
- package/Bones/boneIKController.js.map +1 -1
- package/Bones/boneLookController.d.ts +1 -1
- package/Bones/boneLookController.js +1 -1
- package/Bones/boneLookController.js.map +1 -1
- package/Bones/skeleton.d.ts +3 -3
- package/Bones/skeleton.js +2 -2
- package/Bones/skeleton.js.map +1 -1
- package/Cameras/Inputs/BaseCameraMouseWheelInput.js +2 -2
- package/Cameras/Inputs/BaseCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/BaseCameraPointersInput.js +2 -2
- package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraGamepadInput.d.ts +1 -1
- package/Cameras/Inputs/arcRotateCameraGamepadInput.js +1 -1
- package/Cameras/Inputs/arcRotateCameraGamepadInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.d.ts +1 -1
- package/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.js +1 -1
- package/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.d.ts +1 -1
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js +3 -3
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraPointersInput.d.ts +1 -1
- package/Cameras/Inputs/arcRotateCameraPointersInput.js +1 -1
- package/Cameras/Inputs/arcRotateCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.d.ts +1 -1
- package/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.js +1 -1
- package/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.js.map +1 -1
- package/Cameras/Inputs/flyCameraKeyboardInput.d.ts +1 -1
- package/Cameras/Inputs/flyCameraKeyboardInput.js +1 -1
- package/Cameras/Inputs/flyCameraKeyboardInput.js.map +1 -1
- package/Cameras/Inputs/flyCameraMouseInput.d.ts +2 -2
- package/Cameras/Inputs/flyCameraMouseInput.js +4 -4
- package/Cameras/Inputs/flyCameraMouseInput.js.map +1 -1
- package/Cameras/Inputs/followCameraKeyboardMoveInput.d.ts +1 -1
- package/Cameras/Inputs/followCameraKeyboardMoveInput.js +1 -1
- package/Cameras/Inputs/followCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/followCameraMouseWheelInput.d.ts +1 -1
- package/Cameras/Inputs/followCameraMouseWheelInput.js +3 -3
- package/Cameras/Inputs/followCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/followCameraPointersInput.d.ts +1 -1
- package/Cameras/Inputs/followCameraPointersInput.js +1 -1
- package/Cameras/Inputs/followCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraDeviceOrientationInput.d.ts +2 -2
- package/Cameras/Inputs/freeCameraDeviceOrientationInput.js +2 -2
- package/Cameras/Inputs/freeCameraDeviceOrientationInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraGamepadInput.d.ts +1 -1
- package/Cameras/Inputs/freeCameraGamepadInput.js +1 -1
- package/Cameras/Inputs/freeCameraGamepadInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraKeyboardMoveInput.d.ts +1 -1
- package/Cameras/Inputs/freeCameraKeyboardMoveInput.js +1 -1
- package/Cameras/Inputs/freeCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraMouseInput.d.ts +3 -2
- package/Cameras/Inputs/freeCameraMouseInput.js +10 -7
- package/Cameras/Inputs/freeCameraMouseInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraMouseWheelInput.d.ts +1 -1
- package/Cameras/Inputs/freeCameraMouseWheelInput.js +1 -1
- package/Cameras/Inputs/freeCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraTouchInput.d.ts +2 -2
- package/Cameras/Inputs/freeCameraTouchInput.js +4 -4
- package/Cameras/Inputs/freeCameraTouchInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraVirtualJoystickInput.d.ts +1 -1
- package/Cameras/Inputs/freeCameraVirtualJoystickInput.js +1 -1
- package/Cameras/Inputs/freeCameraVirtualJoystickInput.js.map +1 -1
- package/Cameras/Stereoscopic/anaglyphArcRotateCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/anaglyphArcRotateCamera.js +1 -1
- package/Cameras/Stereoscopic/anaglyphArcRotateCamera.js.map +1 -1
- package/Cameras/Stereoscopic/anaglyphFreeCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/anaglyphFreeCamera.js +1 -1
- package/Cameras/Stereoscopic/anaglyphFreeCamera.js.map +1 -1
- package/Cameras/Stereoscopic/anaglyphGamepadCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/anaglyphGamepadCamera.js +1 -1
- package/Cameras/Stereoscopic/anaglyphGamepadCamera.js.map +1 -1
- package/Cameras/Stereoscopic/anaglyphUniversalCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/anaglyphUniversalCamera.js +1 -1
- package/Cameras/Stereoscopic/anaglyphUniversalCamera.js.map +1 -1
- package/Cameras/Stereoscopic/stereoscopicArcRotateCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/stereoscopicArcRotateCamera.js +1 -1
- package/Cameras/Stereoscopic/stereoscopicArcRotateCamera.js.map +1 -1
- package/Cameras/Stereoscopic/stereoscopicFreeCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/stereoscopicFreeCamera.js +1 -1
- package/Cameras/Stereoscopic/stereoscopicFreeCamera.js.map +1 -1
- package/Cameras/Stereoscopic/stereoscopicGamepadCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/stereoscopicGamepadCamera.js +1 -1
- package/Cameras/Stereoscopic/stereoscopicGamepadCamera.js.map +1 -1
- package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.js +1 -1
- package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.js.map +1 -1
- package/Cameras/Stereoscopic/stereoscopicUniversalCamera.d.ts +1 -1
- package/Cameras/Stereoscopic/stereoscopicUniversalCamera.js +1 -1
- package/Cameras/Stereoscopic/stereoscopicUniversalCamera.js.map +1 -1
- package/Cameras/VR/vrCameraMetrics.d.ts +1 -1
- package/Cameras/VR/vrCameraMetrics.js +1 -1
- package/Cameras/VR/vrCameraMetrics.js.map +1 -1
- package/Cameras/VR/vrDeviceOrientationArcRotateCamera.d.ts +1 -1
- package/Cameras/VR/vrDeviceOrientationArcRotateCamera.js +1 -1
- package/Cameras/VR/vrDeviceOrientationArcRotateCamera.js.map +1 -1
- package/Cameras/VR/vrDeviceOrientationFreeCamera.d.ts +1 -1
- package/Cameras/VR/vrDeviceOrientationFreeCamera.js +1 -1
- package/Cameras/VR/vrDeviceOrientationFreeCamera.js.map +1 -1
- package/Cameras/VR/vrDeviceOrientationGamepadCamera.d.ts +1 -1
- package/Cameras/VR/vrDeviceOrientationGamepadCamera.js +1 -1
- package/Cameras/VR/vrDeviceOrientationGamepadCamera.js.map +1 -1
- package/Cameras/VR/vrExperienceHelper.d.ts +2 -2
- package/Cameras/VR/vrExperienceHelper.js +2 -2
- package/Cameras/VR/vrExperienceHelper.js.map +1 -1
- package/Cameras/VR/webVRCamera.d.ts +2 -2
- package/Cameras/VR/webVRCamera.js +2 -2
- package/Cameras/VR/webVRCamera.js.map +1 -1
- package/Cameras/arcRotateCamera.d.ts +9 -9
- package/Cameras/arcRotateCamera.js +9 -9
- package/Cameras/arcRotateCamera.js.map +1 -1
- package/Cameras/arcRotateCameraInputsManager.d.ts +1 -1
- package/Cameras/arcRotateCameraInputsManager.js +1 -1
- package/Cameras/arcRotateCameraInputsManager.js.map +1 -1
- package/Cameras/camera.d.ts +4 -4
- package/Cameras/camera.js +4 -4
- package/Cameras/camera.js.map +1 -1
- package/Cameras/cameraInputsManager.d.ts +1 -1
- package/Cameras/cameraInputsManager.js +1 -1
- package/Cameras/cameraInputsManager.js.map +1 -1
- package/Cameras/flyCamera.d.ts +1 -1
- package/Cameras/flyCamera.js +1 -1
- package/Cameras/flyCamera.js.map +1 -1
- package/Cameras/flyCameraInputsManager.d.ts +1 -1
- package/Cameras/flyCameraInputsManager.js +1 -1
- package/Cameras/flyCameraInputsManager.js.map +1 -1
- package/Cameras/followCamera.d.ts +4 -4
- package/Cameras/followCamera.js +4 -4
- package/Cameras/followCamera.js.map +1 -1
- package/Cameras/followCameraInputsManager.d.ts +1 -1
- package/Cameras/followCameraInputsManager.js +1 -1
- package/Cameras/followCameraInputsManager.js.map +1 -1
- package/Cameras/freeCamera.d.ts +3 -3
- package/Cameras/freeCamera.js +3 -3
- package/Cameras/freeCamera.js.map +1 -1
- package/Cameras/freeCameraInputsManager.d.ts +1 -1
- package/Cameras/freeCameraInputsManager.js +1 -1
- package/Cameras/freeCameraInputsManager.js.map +1 -1
- package/Cameras/gamepadCamera.d.ts +2 -2
- package/Cameras/gamepadCamera.js +2 -2
- package/Cameras/gamepadCamera.js.map +1 -1
- package/Cameras/targetCamera.d.ts +2 -2
- package/Cameras/targetCamera.js +2 -2
- package/Cameras/targetCamera.js.map +1 -1
- package/Cameras/touchCamera.d.ts +2 -2
- package/Cameras/touchCamera.js +2 -2
- package/Cameras/touchCamera.js.map +1 -1
- package/Cameras/universalCamera.d.ts +2 -2
- package/Cameras/universalCamera.js +2 -2
- package/Cameras/universalCamera.js.map +1 -1
- package/Cameras/virtualJoysticksCamera.d.ts +2 -2
- package/Cameras/virtualJoysticksCamera.js +2 -2
- package/Cameras/virtualJoysticksCamera.js.map +1 -1
- package/Collisions/pickingInfo.d.ts +1 -1
- package/Collisions/pickingInfo.js +1 -1
- package/Collisions/pickingInfo.js.map +1 -1
- package/Culling/Octrees/octree.d.ts +2 -2
- package/Culling/Octrees/octree.js +2 -2
- package/Culling/Octrees/octree.js.map +1 -1
- package/Culling/Octrees/octreeBlock.d.ts +1 -1
- package/Culling/Octrees/octreeBlock.js +1 -1
- package/Culling/Octrees/octreeBlock.js.map +1 -1
- package/Culling/Octrees/octreeSceneComponent.d.ts +3 -3
- package/Culling/Octrees/octreeSceneComponent.js +1 -1
- package/Culling/Octrees/octreeSceneComponent.js.map +1 -1
- package/Culling/boundingInfo.d.ts +3 -3
- package/Culling/boundingInfo.js +2 -2
- package/Culling/boundingInfo.js.map +1 -1
- package/Debug/debugLayer.d.ts +1 -1
- package/Debug/debugLayer.js.map +1 -1
- package/Debug/rayHelper.d.ts +2 -2
- package/Debug/rayHelper.js +2 -2
- package/Debug/rayHelper.js.map +1 -1
- package/Engines/Extensions/engine.alpha.d.ts +2 -2
- package/Engines/Extensions/engine.alpha.js.map +1 -1
- package/Engines/Extensions/engine.multiRender.d.ts +2 -2
- package/Engines/Extensions/engine.multiRender.js.map +1 -1
- package/Engines/Extensions/engine.query.d.ts +8 -8
- package/Engines/Extensions/engine.query.js.map +1 -1
- package/Engines/Extensions/engine.renderTarget.d.ts +1 -1
- package/Engines/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/Extensions/engine.uniformBuffer.d.ts +3 -3
- package/Engines/Extensions/engine.uniformBuffer.js.map +1 -1
- package/Engines/Extensions/engine.views.d.ts +2 -2
- package/Engines/Extensions/engine.views.js +1 -1
- package/Engines/Extensions/engine.views.js.map +1 -1
- package/Engines/Extensions/engine.webVR.d.ts +1 -1
- package/Engines/Extensions/engine.webVR.js.map +1 -1
- package/Engines/Processors/shaderProcessor.d.ts +2 -2
- package/Engines/Processors/shaderProcessor.js +2 -2
- package/Engines/Processors/shaderProcessor.js.map +1 -1
- package/Engines/WebGPU/webgpuShaderProcessor.js +11 -9
- package/Engines/WebGPU/webgpuShaderProcessor.js.map +1 -1
- package/Engines/constants.d.ts +17 -17
- package/Engines/constants.js +17 -17
- package/Engines/constants.js.map +1 -1
- package/Engines/engine.d.ts +12 -12
- package/Engines/engine.js +11 -11
- package/Engines/engine.js.map +1 -1
- package/Engines/nativeEngine.d.ts +2 -2
- package/Engines/nativeEngine.js +23 -2
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/nullEngine.d.ts +5 -5
- package/Engines/nullEngine.js +5 -5
- package/Engines/nullEngine.js.map +1 -1
- package/Engines/thinEngine.d.ts +8 -8
- package/Engines/thinEngine.js +6 -6
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.d.ts +4 -4
- package/Engines/webgpuEngine.js +1 -1
- package/Engines/webgpuEngine.js.map +1 -1
- package/Gamepads/gamepadSceneComponent.d.ts +1 -1
- package/Gamepads/gamepadSceneComponent.js.map +1 -1
- package/Gizmos/gizmo.d.ts +6 -7
- package/Gizmos/gizmo.js +43 -36
- package/Gizmos/gizmo.js.map +1 -1
- package/Gizmos/planeRotationGizmo.js +17 -7
- package/Gizmos/planeRotationGizmo.js.map +1 -1
- package/Gizmos/positionGizmo.d.ts +4 -0
- package/Gizmos/positionGizmo.js +21 -0
- package/Gizmos/positionGizmo.js.map +1 -1
- package/Gizmos/rotationGizmo.d.ts +4 -0
- package/Gizmos/rotationGizmo.js +20 -0
- package/Gizmos/rotationGizmo.js.map +1 -1
- package/Gizmos/scaleGizmo.d.ts +2 -0
- package/Gizmos/scaleGizmo.js +10 -0
- package/Gizmos/scaleGizmo.js.map +1 -1
- package/Helpers/sceneHelpers.d.ts +7 -7
- package/Helpers/sceneHelpers.js.map +1 -1
- package/Inputs/scene.inputManager.js +34 -25
- package/Inputs/scene.inputManager.js.map +1 -1
- package/Instrumentation/engineInstrumentation.d.ts +2 -2
- package/Instrumentation/engineInstrumentation.js +2 -2
- package/Instrumentation/engineInstrumentation.js.map +1 -1
- package/Instrumentation/sceneInstrumentation.d.ts +2 -2
- package/Instrumentation/sceneInstrumentation.js +2 -2
- package/Instrumentation/sceneInstrumentation.js.map +1 -1
- package/Layers/effectLayerSceneComponent.d.ts +2 -2
- package/Layers/effectLayerSceneComponent.js.map +1 -1
- package/Layers/glowLayer.d.ts +1 -1
- package/Layers/glowLayer.js +1 -1
- package/Layers/glowLayer.js.map +1 -1
- package/LensFlares/lensFlare.d.ts +3 -3
- package/LensFlares/lensFlare.js +3 -3
- package/LensFlares/lensFlare.js.map +1 -1
- package/LensFlares/lensFlareSystem.d.ts +2 -2
- package/LensFlares/lensFlareSystem.js +2 -2
- package/LensFlares/lensFlareSystem.js.map +1 -1
- package/LensFlares/lensFlareSystemSceneComponent.d.ts +1 -1
- package/LensFlares/lensFlareSystemSceneComponent.js.map +1 -1
- package/Lights/Shadows/shadowGenerator.d.ts +2 -2
- package/Lights/Shadows/shadowGenerator.js +2 -2
- package/Lights/Shadows/shadowGenerator.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 +1 -1
- package/Lights/hemisphericLight.js +1 -1
- package/Lights/hemisphericLight.js.map +1 -1
- package/Lights/light.d.ts +1 -1
- package/Lights/light.js +1 -1
- package/Lights/light.js.map +1 -1
- package/Lights/pointLight.d.ts +2 -2
- package/Lights/pointLight.js +2 -2
- package/Lights/pointLight.js.map +1 -1
- package/Lights/spotLight.d.ts +2 -2
- package/Lights/spotLight.js +2 -2
- package/Lights/spotLight.js.map +1 -1
- package/Loading/loadingScreen.d.ts +2 -2
- package/Loading/loadingScreen.js +1 -1
- package/Loading/loadingScreen.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/instancesBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Vertex/instancesBlock.js +1 -1
- package/Materials/Node/Blocks/Vertex/instancesBlock.js.map +1 -1
- package/Materials/Node/Blocks/reciprocalBlock.js +6 -2
- package/Materials/Node/Blocks/reciprocalBlock.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.d.ts +1 -1
- package/Materials/PBR/pbrBaseMaterial.js +1 -1
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/PBR/pbrMaterial.d.ts +1 -1
- package/Materials/PBR/pbrMaterial.js +1 -1
- package/Materials/PBR/pbrMaterial.js.map +1 -1
- package/Materials/Textures/Packer/packer.d.ts +1 -1
- package/Materials/Textures/Packer/packer.js +1 -1
- package/Materials/Textures/Packer/packer.js.map +1 -1
- package/Materials/Textures/Procedurals/customProceduralTexture.d.ts +2 -2
- package/Materials/Textures/Procedurals/customProceduralTexture.js +2 -2
- package/Materials/Textures/Procedurals/customProceduralTexture.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.d.ts +2 -2
- package/Materials/Textures/Procedurals/proceduralTexture.js +2 -2
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTextureSceneComponent.d.ts +1 -1
- package/Materials/Textures/Procedurals/proceduralTextureSceneComponent.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/dynamicTexture.d.ts +1 -1
- package/Materials/Textures/dynamicTexture.js +1 -1
- package/Materials/Textures/dynamicTexture.js.map +1 -1
- package/Materials/Textures/mirrorTexture.d.ts +3 -3
- package/Materials/Textures/mirrorTexture.js +3 -3
- package/Materials/Textures/mirrorTexture.js.map +1 -1
- package/Materials/Textures/refractionTexture.d.ts +3 -3
- package/Materials/Textures/refractionTexture.js +3 -3
- package/Materials/Textures/refractionTexture.js.map +1 -1
- package/Materials/Textures/texture.d.ts +10 -10
- package/Materials/Textures/texture.js +10 -10
- package/Materials/Textures/texture.js.map +1 -1
- package/Materials/Textures/videoTexture.d.ts +2 -2
- package/Materials/Textures/videoTexture.js +2 -2
- package/Materials/Textures/videoTexture.js.map +1 -1
- package/Materials/effect.d.ts +20 -2
- package/Materials/effect.js +28 -4
- package/Materials/effect.js.map +1 -1
- package/Materials/effectRenderer.js +1 -0
- package/Materials/effectRenderer.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/material.d.ts +1 -1
- package/Materials/material.js.map +1 -1
- package/Materials/multiMaterial.d.ts +2 -2
- package/Materials/multiMaterial.js +2 -2
- package/Materials/multiMaterial.js.map +1 -1
- package/Materials/shaderMaterial.d.ts +2 -2
- package/Materials/shaderMaterial.js +2 -2
- package/Materials/shaderMaterial.js.map +1 -1
- package/Materials/shadowDepthWrapper.d.ts +1 -1
- package/Materials/shadowDepthWrapper.js +2 -2
- package/Materials/shadowDepthWrapper.js.map +1 -1
- package/Materials/standardMaterial.d.ts +18 -18
- package/Materials/standardMaterial.js +6 -6
- package/Materials/standardMaterial.js.map +1 -1
- package/Maths/math.path.d.ts +7 -7
- package/Maths/math.path.js +7 -7
- package/Maths/math.path.js.map +1 -1
- package/Maths/math.vector.d.ts +4 -4
- package/Maths/math.vector.js +4 -4
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/Builders/boxBuilder.d.ts +3 -3
- package/Meshes/Builders/boxBuilder.js +3 -3
- package/Meshes/Builders/boxBuilder.js.map +1 -1
- package/Meshes/Builders/capsuleBuilder.d.ts +1 -1
- package/Meshes/Builders/capsuleBuilder.js +1 -1
- package/Meshes/Builders/capsuleBuilder.js.map +1 -1
- package/Meshes/Builders/cylinderBuilder.d.ts +2 -2
- package/Meshes/Builders/cylinderBuilder.js +2 -2
- package/Meshes/Builders/cylinderBuilder.js.map +1 -1
- package/Meshes/Builders/decalBuilder.d.ts +1 -1
- package/Meshes/Builders/decalBuilder.js +1 -1
- package/Meshes/Builders/decalBuilder.js.map +1 -1
- package/Meshes/Builders/discBuilder.d.ts +2 -2
- package/Meshes/Builders/discBuilder.js +2 -2
- package/Meshes/Builders/discBuilder.js.map +1 -1
- package/Meshes/Builders/geodesicBuilder.d.ts +1 -1
- package/Meshes/Builders/geodesicBuilder.js +1 -1
- package/Meshes/Builders/geodesicBuilder.js.map +1 -1
- package/Meshes/Builders/goldbergBuilder.d.ts +1 -1
- package/Meshes/Builders/goldbergBuilder.js +1 -1
- package/Meshes/Builders/goldbergBuilder.js.map +1 -1
- package/Meshes/Builders/groundBuilder.d.ts +4 -4
- package/Meshes/Builders/groundBuilder.js +4 -4
- package/Meshes/Builders/groundBuilder.js.map +1 -1
- package/Meshes/Builders/icoSphereBuilder.d.ts +2 -2
- package/Meshes/Builders/icoSphereBuilder.js +2 -2
- package/Meshes/Builders/icoSphereBuilder.js.map +1 -1
- package/Meshes/Builders/latheBuilder.d.ts +2 -2
- package/Meshes/Builders/latheBuilder.js +2 -2
- package/Meshes/Builders/latheBuilder.js.map +1 -1
- package/Meshes/Builders/linesBuilder.d.ts +6 -6
- package/Meshes/Builders/linesBuilder.js +6 -6
- package/Meshes/Builders/linesBuilder.js.map +1 -1
- package/Meshes/Builders/planeBuilder.d.ts +2 -2
- package/Meshes/Builders/planeBuilder.js +2 -2
- package/Meshes/Builders/planeBuilder.js.map +1 -1
- package/Meshes/Builders/polygonBuilder.d.ts +1 -1
- package/Meshes/Builders/polygonBuilder.js +1 -1
- package/Meshes/Builders/polygonBuilder.js.map +1 -1
- package/Meshes/Builders/polyhedronBuilder.d.ts +3 -3
- package/Meshes/Builders/polyhedronBuilder.js +3 -3
- package/Meshes/Builders/polyhedronBuilder.js.map +1 -1
- package/Meshes/Builders/ribbonBuilder.d.ts +4 -4
- package/Meshes/Builders/ribbonBuilder.js +4 -4
- package/Meshes/Builders/ribbonBuilder.js.map +1 -1
- package/Meshes/Builders/shapeBuilder.d.ts +9 -9
- package/Meshes/Builders/shapeBuilder.js +9 -9
- package/Meshes/Builders/shapeBuilder.js.map +1 -1
- package/Meshes/Builders/sphereBuilder.d.ts +2 -2
- package/Meshes/Builders/sphereBuilder.js +2 -2
- package/Meshes/Builders/sphereBuilder.js.map +1 -1
- package/Meshes/Builders/tiledBoxBuilder.d.ts +2 -2
- package/Meshes/Builders/tiledBoxBuilder.js +2 -2
- package/Meshes/Builders/tiledBoxBuilder.js.map +1 -1
- package/Meshes/Builders/tiledPlaneBuilder.d.ts +2 -2
- package/Meshes/Builders/tiledPlaneBuilder.js +2 -2
- package/Meshes/Builders/tiledPlaneBuilder.js.map +1 -1
- package/Meshes/Builders/torusBuilder.d.ts +2 -2
- package/Meshes/Builders/torusBuilder.js +2 -2
- package/Meshes/Builders/torusBuilder.js.map +1 -1
- package/Meshes/Builders/torusKnotBuilder.d.ts +2 -2
- package/Meshes/Builders/torusKnotBuilder.js +2 -2
- package/Meshes/Builders/torusKnotBuilder.js.map +1 -1
- package/Meshes/Builders/tubeBuilder.d.ts +4 -4
- package/Meshes/Builders/tubeBuilder.js +4 -4
- package/Meshes/Builders/tubeBuilder.js.map +1 -1
- package/Meshes/abstractMesh.d.ts +35 -35
- package/Meshes/abstractMesh.js +34 -34
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/instancedMesh.d.ts +3 -3
- package/Meshes/instancedMesh.js +1 -1
- package/Meshes/instancedMesh.js.map +1 -1
- package/Meshes/linesMesh.d.ts +2 -2
- package/Meshes/linesMesh.js +2 -2
- package/Meshes/linesMesh.js.map +1 -1
- package/Meshes/mesh.d.ts +36 -36
- package/Meshes/mesh.js +9 -17
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/meshLODLevel.d.ts +1 -1
- package/Meshes/meshLODLevel.js +1 -1
- package/Meshes/meshLODLevel.js.map +1 -1
- package/Meshes/meshSimplification.d.ts +6 -6
- package/Meshes/meshSimplification.js +4 -4
- package/Meshes/meshSimplification.js.map +1 -1
- package/Meshes/meshSimplificationSceneComponent.d.ts +1 -1
- package/Meshes/meshSimplificationSceneComponent.js.map +1 -1
- package/Meshes/polygonMesh.d.ts +2 -2
- package/Meshes/polygonMesh.js +2 -2
- package/Meshes/polygonMesh.js.map +1 -1
- package/Meshes/transformNode.d.ts +1 -1
- package/Meshes/transformNode.js +1 -1
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/assetsManager.d.ts +2 -2
- package/Misc/assetsManager.js +2 -2
- package/Misc/assetsManager.js.map +1 -1
- package/Misc/iInspectable.d.ts +1 -1
- package/Misc/iInspectable.js.map +1 -1
- package/Misc/sceneOptimizer.d.ts +12 -12
- package/Misc/sceneOptimizer.js +12 -12
- package/Misc/sceneOptimizer.js.map +1 -1
- package/Misc/screenshotTools.d.ts +10 -10
- package/Misc/screenshotTools.js +10 -10
- package/Misc/screenshotTools.js.map +1 -1
- package/Misc/tools.d.ts +4 -4
- package/Misc/tools.js +4 -4
- 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/Morph/morphTarget.d.ts +1 -1
- package/Morph/morphTarget.js +1 -1
- package/Morph/morphTarget.js.map +1 -1
- package/Morph/morphTargetManager.d.ts +1 -1
- package/Morph/morphTargetManager.js +1 -1
- package/Morph/morphTargetManager.js.map +1 -1
- package/Offline/IOfflineProvider.d.ts +1 -1
- package/Offline/IOfflineProvider.js.map +1 -1
- package/Offline/database.d.ts +1 -1
- package/Offline/database.js +1 -1
- package/Offline/database.js.map +1 -1
- package/Particles/IParticleSystem.d.ts +1 -1
- package/Particles/IParticleSystem.js.map +1 -1
- package/Particles/baseParticleSystem.d.ts +1 -1
- package/Particles/baseParticleSystem.js +1 -1
- package/Particles/baseParticleSystem.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 +2 -2
- package/Particles/particleSystem.js +2 -2
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/solidParticleSystem.d.ts +15 -15
- package/Particles/solidParticleSystem.js +13 -13
- package/Particles/solidParticleSystem.js.map +1 -1
- package/Physics/IPhysicsEngine.d.ts +1 -1
- package/Physics/IPhysicsEngine.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/physicsEngine.d.ts +1 -1
- package/Physics/physicsEngine.js +1 -1
- package/Physics/physicsEngine.js.map +1 -1
- package/Physics/physicsEngineComponent.d.ts +3 -3
- package/Physics/physicsEngineComponent.js +2 -2
- package/Physics/physicsEngineComponent.js.map +1 -1
- package/Physics/physicsHelper.d.ts +12 -12
- package/Physics/physicsHelper.js +6 -6
- package/Physics/physicsHelper.js.map +1 -1
- package/Physics/physicsImpostor.d.ts +3 -3
- package/Physics/physicsImpostor.js +1 -1
- package/Physics/physicsImpostor.js.map +1 -1
- package/Physics/physicsJoint.d.ts +9 -9
- package/Physics/physicsJoint.js +5 -5
- package/Physics/physicsJoint.js.map +1 -1
- package/Physics/physicsRaycastResult.d.ts +1 -1
- package/Physics/physicsRaycastResult.js +1 -1
- package/Physics/physicsRaycastResult.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.d.ts +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.d.ts +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderEffect.d.ts +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderEffect.js +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderEffect.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.d.ts +2 -2
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipelineManager.d.ts +2 -2
- package/PostProcesses/RenderPipeline/postProcessRenderPipelineManager.js +2 -2
- package/PostProcesses/RenderPipeline/postProcessRenderPipelineManager.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.d.ts +2 -2
- package/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.js.map +1 -1
- package/PostProcesses/blackAndWhitePostProcess.d.ts +1 -1
- package/PostProcesses/blackAndWhitePostProcess.js +1 -1
- package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
- package/PostProcesses/fxaaPostProcess.d.ts +1 -1
- package/PostProcesses/fxaaPostProcess.js +1 -1
- package/PostProcesses/fxaaPostProcess.js.map +1 -1
- package/PostProcesses/highlightsPostProcess.d.ts +2 -2
- package/PostProcesses/highlightsPostProcess.js +2 -2
- package/PostProcesses/highlightsPostProcess.js.map +1 -1
- package/PostProcesses/imageProcessingPostProcess.d.ts +1 -1
- package/PostProcesses/imageProcessingPostProcess.js +1 -1
- package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
- package/PostProcesses/postProcess.d.ts +2 -2
- package/PostProcesses/postProcess.js +1 -1
- package/PostProcesses/postProcess.js.map +1 -1
- package/PostProcesses/postProcessManager.d.ts +1 -1
- package/PostProcesses/postProcessManager.js +1 -1
- package/PostProcesses/postProcessManager.js.map +1 -1
- package/PostProcesses/refractionPostProcess.d.ts +2 -2
- package/PostProcesses/refractionPostProcess.js +2 -2
- package/PostProcesses/refractionPostProcess.js.map +1 -1
- package/Probes/reflectionProbe.d.ts +2 -2
- package/Probes/reflectionProbe.js +1 -1
- package/Probes/reflectionProbe.js.map +1 -1
- package/Rendering/geometryBufferRenderer.js +2 -2
- package/Rendering/geometryBufferRenderer.js.map +1 -1
- package/Sprites/sprite.d.ts +1 -1
- package/Sprites/sprite.js +1 -1
- package/Sprites/sprite.js.map +1 -1
- package/Sprites/spriteManager.d.ts +2 -2
- package/Sprites/spriteManager.js +1 -1
- package/Sprites/spriteManager.js.map +1 -1
- package/Sprites/spritePackedManager.d.ts +1 -1
- package/Sprites/spritePackedManager.js +1 -1
- package/Sprites/spritePackedManager.js.map +1 -1
- package/Sprites/spriteSceneComponent.d.ts +1 -1
- package/Sprites/spriteSceneComponent.js.map +1 -1
- package/Sprites/thinSprite.d.ts +1 -1
- package/Sprites/thinSprite.js +1 -1
- package/Sprites/thinSprite.js.map +1 -1
- package/XR/webXRCamera.d.ts +1 -1
- package/XR/webXRCamera.js +1 -1
- package/XR/webXRCamera.js.map +1 -1
- package/XR/webXRExperienceHelper.d.ts +1 -1
- package/XR/webXRExperienceHelper.js +1 -1
- package/XR/webXRExperienceHelper.js.map +1 -1
- package/XR/webXRInputSource.d.ts +1 -1
- package/XR/webXRInputSource.js +1 -1
- package/XR/webXRInputSource.js.map +1 -1
- package/XR/webXRSessionManager.d.ts +1 -1
- package/XR/webXRSessionManager.js +1 -1
- package/XR/webXRSessionManager.js.map +1 -1
- package/abstractScene.d.ts +9 -9
- package/abstractScene.js +9 -9
- package/abstractScene.js.map +1 -1
- package/node.d.ts +6 -6
- package/node.js +5 -5
- package/node.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +29 -24
- package/scene.js +24 -18
- package/scene.js.map +1 -1
package/Meshes/mesh.d.ts
CHANGED
|
@@ -228,7 +228,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
228
228
|
* Gets the list of instances created from this mesh
|
|
229
229
|
* it is not supposed to be modified manually.
|
|
230
230
|
* Note also that the order of the InstancedMesh wihin the array is not significant and might change.
|
|
231
|
-
* @see https://doc.babylonjs.com/
|
|
231
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/copies/instances
|
|
232
232
|
*/
|
|
233
233
|
instances: import("./instancedMesh").InstancedMesh[];
|
|
234
234
|
/**
|
|
@@ -239,7 +239,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
239
239
|
_binaryInfo: any;
|
|
240
240
|
/**
|
|
241
241
|
* User defined function used to change how LOD level selection is done
|
|
242
|
-
* @see https://doc.babylonjs.com/
|
|
242
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
243
243
|
*/
|
|
244
244
|
onLODLevelSelection: (distance: number, mesh: Mesh, selectedLevel: Nullable<Mesh>) => void;
|
|
245
245
|
/** @internal */
|
|
@@ -343,7 +343,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
343
343
|
private _sortLODLevels;
|
|
344
344
|
/**
|
|
345
345
|
* Add a mesh as LOD level triggered at the given distance.
|
|
346
|
-
* @see https://doc.babylonjs.com/
|
|
346
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
347
347
|
* @param distanceOrScreenCoverage Either distance from the center of the object to show this level or the screen coverage if `useScreenCoverage` is set to `true`.
|
|
348
348
|
* If screen coverage, value is a fraction of the screen's total surface, between 0 and 1.
|
|
349
349
|
* Example Playground for distance https://playground.babylonjs.com/#QE7KM#197
|
|
@@ -354,18 +354,18 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
354
354
|
addLODLevel(distanceOrScreenCoverage: number, mesh: Nullable<Mesh>): Mesh;
|
|
355
355
|
/**
|
|
356
356
|
* Returns the LOD level mesh at the passed distance or null if not found.
|
|
357
|
-
* @see https://doc.babylonjs.com/
|
|
357
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
358
358
|
* @param distance The distance from the center of the object to show this level
|
|
359
359
|
* @returns a Mesh or `null`
|
|
360
360
|
*/
|
|
361
361
|
getLODLevelAtDistance(distance: number): Nullable<Mesh>;
|
|
362
362
|
/**
|
|
363
363
|
* Remove a mesh from the LOD array
|
|
364
|
-
* @see https://doc.babylonjs.com/
|
|
364
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
365
365
|
* @param mesh defines the mesh to be removed
|
|
366
366
|
* @returns This mesh (for chaining)
|
|
367
367
|
*/
|
|
368
|
-
removeLODLevel(mesh: Mesh): Mesh;
|
|
368
|
+
removeLODLevel(mesh: Nullable<Mesh>): Mesh;
|
|
369
369
|
/**
|
|
370
370
|
* Returns the registered LOD mesh distant from the parameter `camera` position if any, else returns the current mesh.
|
|
371
371
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
@@ -618,7 +618,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
618
618
|
updateVerticesData(kind: string, data: FloatArray, updateExtends?: boolean, makeItUnique?: boolean): AbstractMesh;
|
|
619
619
|
/**
|
|
620
620
|
* This method updates the vertex positions of an updatable mesh according to the `positionFunction` returned values.
|
|
621
|
-
* @see https://doc.babylonjs.com/
|
|
621
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/dynamicMeshMorph#other-shapes-updatemeshpositions
|
|
622
622
|
* @param positionFunction is a simple JS function what is passed the mesh `positions` array. It doesn't need to return anything
|
|
623
623
|
* @param computeNormals is a boolean (default true) to enable/disable the mesh normal recomputation after the vertex position update
|
|
624
624
|
* @returns the current mesh
|
|
@@ -775,7 +775,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
775
775
|
* The mesh World Matrix is then reset.
|
|
776
776
|
* This method returns nothing but really modifies the mesh even if it's originally not set as updatable.
|
|
777
777
|
* Note that, under the hood, this method sets a new VertexBuffer each call.
|
|
778
|
-
* @see https://doc.babylonjs.com/
|
|
778
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/transforms/center_origin/bakingTransforms
|
|
779
779
|
* @param bakeIndependentlyOfChildren indicates whether to preserve all child nodes' World Matrix during baking
|
|
780
780
|
* @returns the current mesh
|
|
781
781
|
*/
|
|
@@ -879,7 +879,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
879
879
|
static _PhysicsImpostorParser(scene: Scene, physicObject: IPhysicsEnabledObject, jsonObject: any): PhysicsImpostor;
|
|
880
880
|
/**
|
|
881
881
|
* Creates a new InstancedMesh object from the mesh model.
|
|
882
|
-
* @see https://doc.babylonjs.com/
|
|
882
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/copies/instances
|
|
883
883
|
* @param name defines the name of the new instance
|
|
884
884
|
* @returns a new InstancedMesh
|
|
885
885
|
*/
|
|
@@ -1011,7 +1011,7 @@ declare module "../Meshes/mesh" {
|
|
|
1011
1011
|
namespace Mesh {
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Creates a ribbon mesh.
|
|
1014
|
-
* @see https://doc.babylonjs.com/
|
|
1014
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
1015
1015
|
* @param name defines the name of the mesh to create
|
|
1016
1016
|
* @param pathArray is a required array of paths, what are each an array of successive Vector3. The pathArray parameter depicts the ribbon geometry.
|
|
1017
1017
|
* @param closeArray creates a seam between the first and the last paths of the path array (default is false)
|
|
@@ -1019,7 +1019,7 @@ declare module "../Meshes/mesh" {
|
|
|
1019
1019
|
* @param offset is taken in account only if the `pathArray` is containing a single path
|
|
1020
1020
|
* @param scene defines the hosting scene
|
|
1021
1021
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1022
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1022
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1023
1023
|
* @param instance defines an instance of an existing Ribbon object to be updated with the passed `pathArray` parameter (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#ribbon)
|
|
1024
1024
|
* @returns a new Mesh
|
|
1025
1025
|
* @deprecated Please use MeshBuilder instead
|
|
@@ -1032,7 +1032,7 @@ declare module "../Meshes/mesh" {
|
|
|
1032
1032
|
* @param tessellation sets the number of polygon sides (positive integer, default 64). So a tessellation valued to 3 will build a triangle, to 4 a square, etc
|
|
1033
1033
|
* @param scene defines the hosting scene
|
|
1034
1034
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1035
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1035
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1036
1036
|
* @returns a new Mesh
|
|
1037
1037
|
* @deprecated Please use MeshBuilder instead
|
|
1038
1038
|
*/
|
|
@@ -1043,7 +1043,7 @@ declare module "../Meshes/mesh" {
|
|
|
1043
1043
|
* @param size sets the size (float) of each box side (default 1)
|
|
1044
1044
|
* @param scene defines the hosting scene
|
|
1045
1045
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1046
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1046
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1047
1047
|
* @returns a new Mesh
|
|
1048
1048
|
* @deprecated Please use MeshBuilder instead
|
|
1049
1049
|
*/
|
|
@@ -1055,7 +1055,7 @@ declare module "../Meshes/mesh" {
|
|
|
1055
1055
|
* @param diameter sets the diameter size (float) of the sphere (default 1)
|
|
1056
1056
|
* @param scene defines the hosting scene
|
|
1057
1057
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1058
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1058
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1059
1059
|
* @returns a new Mesh
|
|
1060
1060
|
* @deprecated Please use MeshBuilder instead
|
|
1061
1061
|
*/
|
|
@@ -1080,7 +1080,7 @@ declare module "../Meshes/mesh" {
|
|
|
1080
1080
|
* @param subdivisions sets the number of rings along the cylinder height (positive integer, default 1)
|
|
1081
1081
|
* @param scene defines the hosting scene
|
|
1082
1082
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1083
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1083
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1084
1084
|
* @returns a new Mesh
|
|
1085
1085
|
* @deprecated Please use MeshBuilder instead
|
|
1086
1086
|
*/
|
|
@@ -1093,7 +1093,7 @@ declare module "../Meshes/mesh" {
|
|
|
1093
1093
|
* @param tessellation sets the number of torus sides (positive integer, default 16)
|
|
1094
1094
|
* @param scene defines the hosting scene
|
|
1095
1095
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1096
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1096
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1097
1097
|
* @returns a new Mesh
|
|
1098
1098
|
* @deprecated Please use MeshBuilder instead
|
|
1099
1099
|
*/
|
|
@@ -1109,7 +1109,7 @@ declare module "../Meshes/mesh" {
|
|
|
1109
1109
|
* @param q the number of windings on Y axis (positive integers, default 3)
|
|
1110
1110
|
* @param scene defines the hosting scene
|
|
1111
1111
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1112
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1112
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1113
1113
|
* @returns a new Mesh
|
|
1114
1114
|
* @deprecated Please use MeshBuilder instead
|
|
1115
1115
|
*/
|
|
@@ -1146,13 +1146,13 @@ declare module "../Meshes/mesh" {
|
|
|
1146
1146
|
* You can set the mesh side orientation with the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
|
|
1147
1147
|
* The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created.
|
|
1148
1148
|
* Remember you can only change the shape positions, not their number when updating a polygon.
|
|
1149
|
-
* @see https://doc.babylonjs.com/
|
|
1149
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#non-regular-polygon
|
|
1150
1150
|
* @param name defines the name of the mesh to create
|
|
1151
1151
|
* @param shape is a required array of successive Vector3 representing the corners of the polygon in th XoZ plane, that is y = 0 for all vectors
|
|
1152
1152
|
* @param scene defines the hosting scene
|
|
1153
1153
|
* @param holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
1154
1154
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1155
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1155
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1156
1156
|
* @param earcutInjection can be used to inject your own earcut reference
|
|
1157
1157
|
* @returns a new Mesh
|
|
1158
1158
|
* @deprecated Please use MeshBuilder instead
|
|
@@ -1160,14 +1160,14 @@ declare module "../Meshes/mesh" {
|
|
|
1160
1160
|
function CreatePolygon(name: string, shape: Vector3[], scene: Scene, holes?: Vector3[][], updatable?: boolean, sideOrientation?: number, earcutInjection?: any): Mesh;
|
|
1161
1161
|
/**
|
|
1162
1162
|
* Creates an extruded polygon mesh, with depth in the Y direction..
|
|
1163
|
-
* @see https://doc.babylonjs.com/
|
|
1163
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-non-regular-polygon
|
|
1164
1164
|
* @param name defines the name of the mesh to create
|
|
1165
1165
|
* @param shape is a required array of successive Vector3 representing the corners of the polygon in th XoZ plane, that is y = 0 for all vectors
|
|
1166
1166
|
* @param depth defines the height of extrusion
|
|
1167
1167
|
* @param scene defines the hosting scene
|
|
1168
1168
|
* @param holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
1169
1169
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1170
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1170
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1171
1171
|
* @param earcutInjection can be used to inject your own earcut reference
|
|
1172
1172
|
* @returns a new Mesh
|
|
1173
1173
|
* @deprecated Please use MeshBuilder instead
|
|
@@ -1176,8 +1176,8 @@ declare module "../Meshes/mesh" {
|
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Creates an extruded shape mesh.
|
|
1178
1178
|
* The extrusion is a parametric shape. It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1179
|
-
* @see https://doc.babylonjs.com/
|
|
1180
|
-
* @see https://doc.babylonjs.com/
|
|
1179
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
1180
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-shapes
|
|
1181
1181
|
* @param name defines the name of the mesh to create
|
|
1182
1182
|
* @param shape is a required array of successive Vector3. This array depicts the shape to be extruded in its local space : the shape must be designed in the xOy plane and will be extruded along the Z axis
|
|
1183
1183
|
* @param path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
@@ -1186,7 +1186,7 @@ declare module "../Meshes/mesh" {
|
|
|
1186
1186
|
* @param cap sets the way the extruded shape is capped. Possible values : Mesh.NO_CAP (default), Mesh.CAP_START, Mesh.CAP_END, Mesh.CAP_ALL
|
|
1187
1187
|
* @param scene defines the hosting scene
|
|
1188
1188
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1189
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1189
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1190
1190
|
* @param instance is an instance of an existing ExtrudedShape object to be updated with the passed `shape`, `path`, `scale` or `rotation` parameters (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#extruded-shape)
|
|
1191
1191
|
* @returns a new Mesh
|
|
1192
1192
|
* @deprecated Please use MeshBuilder instead
|
|
@@ -1197,7 +1197,7 @@ declare module "../Meshes/mesh" {
|
|
|
1197
1197
|
* The custom extrusion is a parametric shape.
|
|
1198
1198
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1199
1199
|
*
|
|
1200
|
-
* @see https://doc.babylonjs.com/
|
|
1200
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-shapes
|
|
1201
1201
|
* @param name defines the name of the mesh to create
|
|
1202
1202
|
* @param shape is a required array of successive Vector3. This array depicts the shape to be extruded in its local space : the shape must be designed in the xOy plane and will be extruded along the Z axis
|
|
1203
1203
|
* @param path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
@@ -1208,8 +1208,8 @@ declare module "../Meshes/mesh" {
|
|
|
1208
1208
|
* @param cap sets the way the extruded shape is capped. Possible values : Mesh.NO_CAP (default), Mesh.CAP_START, Mesh.CAP_END, Mesh.CAP_ALL
|
|
1209
1209
|
* @param scene defines the hosting scene
|
|
1210
1210
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1211
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1212
|
-
* @param instance is an instance of an existing ExtrudedShape object to be updated with the passed `shape`, `path`, `scale` or `rotation` parameters (https://doc.babylonjs.com/
|
|
1211
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1212
|
+
* @param instance is an instance of an existing ExtrudedShape object to be updated with the passed `shape`, `path`, `scale` or `rotation` parameters (https://doc.babylonjs.com/features/featuresDeepDive/mesh/dynamicMeshMorph#extruded-shape)
|
|
1213
1213
|
* @returns a new Mesh
|
|
1214
1214
|
* @deprecated Please use MeshBuilder instead
|
|
1215
1215
|
*/
|
|
@@ -1227,7 +1227,7 @@ declare module "../Meshes/mesh" {
|
|
|
1227
1227
|
* @param tessellation is the side number of the lathe.
|
|
1228
1228
|
* @param scene defines the hosting scene
|
|
1229
1229
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1230
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1230
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1231
1231
|
* @returns a new Mesh
|
|
1232
1232
|
* @deprecated Please use MeshBuilder instead
|
|
1233
1233
|
*/
|
|
@@ -1238,7 +1238,7 @@ declare module "../Meshes/mesh" {
|
|
|
1238
1238
|
* @param size sets the size (float) of both sides of the plane at once (default 1)
|
|
1239
1239
|
* @param scene defines the hosting scene
|
|
1240
1240
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1241
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1241
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1242
1242
|
* @returns a new Mesh
|
|
1243
1243
|
* @deprecated Please use MeshBuilder instead
|
|
1244
1244
|
*/
|
|
@@ -1278,7 +1278,7 @@ declare module "../Meshes/mesh" {
|
|
|
1278
1278
|
}, scene: Scene, updatable?: boolean): Mesh;
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Creates a ground mesh from a height map.
|
|
1281
|
-
* @see https://doc.babylonjs.com/
|
|
1281
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set/height_map
|
|
1282
1282
|
* @param name defines the name of the mesh to create
|
|
1283
1283
|
* @param url sets the URL of the height map image resource
|
|
1284
1284
|
* @param width set the ground width size
|
|
@@ -1299,7 +1299,7 @@ declare module "../Meshes/mesh" {
|
|
|
1299
1299
|
* The tube is a parametric shape.
|
|
1300
1300
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1301
1301
|
*
|
|
1302
|
-
* @see https://doc.babylonjs.com/
|
|
1302
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
1303
1303
|
* @param name defines the name of the mesh to create
|
|
1304
1304
|
* @param path is a required array of successive Vector3. It is the curve used as the axis of the tube
|
|
1305
1305
|
* @param radius sets the tube radius size
|
|
@@ -1308,7 +1308,7 @@ declare module "../Meshes/mesh" {
|
|
|
1308
1308
|
* @param cap sets the way the extruded shape is capped. Possible values : Mesh.NO_CAP (default), Mesh.CAP_START, Mesh.CAP_END, Mesh.CAP_ALL
|
|
1309
1309
|
* @param scene defines the hosting scene
|
|
1310
1310
|
* @param updatable defines if the mesh must be flagged as updatable
|
|
1311
|
-
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/
|
|
1311
|
+
* @param sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1312
1312
|
* @param instance is an instance of an existing Tube object to be updated with the passed `pathArray` parameter (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#tube)
|
|
1313
1313
|
* @returns a new Mesh
|
|
1314
1314
|
* @deprecated Please use MeshBuilder instead
|
|
@@ -1325,10 +1325,10 @@ declare module "../Meshes/mesh" {
|
|
|
1325
1325
|
* * You can build other polyhedron types than the 15 embbeded ones by setting the parameter `custom` (`polyhedronObject`, default null). If you set the parameter `custom`, this overwrittes the parameter `type`
|
|
1326
1326
|
* * A `polyhedronObject` is a formatted javascript object. You'll find a full file with pre-set polyhedra here : https://github.com/BabylonJS/Extensions/tree/master/Polyhedron
|
|
1327
1327
|
* * You can set the color and the UV of each side of the polyhedron with the parameters `faceColors` (Color4, default `(1, 1, 1, 1)`) and faceUV (Vector4, default `(0, 0, 1, 1)`)
|
|
1328
|
-
* * To understand how to set `faceUV` or `faceColors`, please read this by considering the right number of faces of your polyhedron, instead of only 6 for the box : https://doc.babylonjs.com/
|
|
1328
|
+
* * To understand how to set `faceUV` or `faceColors`, please read this by considering the right number of faces of your polyhedron, instead of only 6 for the box : https://doc.babylonjs.com/features/featuresDeepDive/materials/using/texturePerBoxFace
|
|
1329
1329
|
* * The parameter `flat` (boolean, default true). If set to false, it gives the polyhedron a single global face, so less vertices and shared normals. In this case, `faceColors` and `faceUV` are ignored
|
|
1330
1330
|
* * You can also set the mesh side orientation with the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
|
|
1331
|
-
* * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/
|
|
1331
|
+
* * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation
|
|
1332
1332
|
* * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created
|
|
1333
1333
|
* @param name defines the name of the mesh to create
|
|
1334
1334
|
* @param options defines the options used to create the mesh
|
|
@@ -1355,9 +1355,9 @@ declare module "../Meshes/mesh" {
|
|
|
1355
1355
|
* * The parameter `subdivisions` sets the number of subdivisions (positive integer, default 4). The more subdivisions, the more faces on the icosphere whatever its size
|
|
1356
1356
|
* * The parameter `flat` (boolean, default true) gives each side its own normals. Set it to false to get a smooth continuous light reflection on the surface
|
|
1357
1357
|
* * You can also set the mesh side orientation with the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
|
|
1358
|
-
* * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/
|
|
1358
|
+
* * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation
|
|
1359
1359
|
* * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created
|
|
1360
|
-
* @see https://doc.babylonjs.com/
|
|
1360
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/polyhedra#icosphere
|
|
1361
1361
|
* @param name defines the name of the mesh
|
|
1362
1362
|
* @param options defines the options used to create the mesh
|
|
1363
1363
|
* @param scene defines the hosting scene
|
package/Meshes/mesh.js
CHANGED
|
@@ -112,7 +112,7 @@ export class Mesh extends AbstractMesh {
|
|
|
112
112
|
* Gets the list of instances created from this mesh
|
|
113
113
|
* it is not supposed to be modified manually.
|
|
114
114
|
* Note also that the order of the InstancedMesh wihin the array is not significant and might change.
|
|
115
|
-
* @see https://doc.babylonjs.com/
|
|
115
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/copies/instances
|
|
116
116
|
*/
|
|
117
117
|
this.instances = new Array();
|
|
118
118
|
// Private
|
|
@@ -565,7 +565,7 @@ export class Mesh extends AbstractMesh {
|
|
|
565
565
|
}
|
|
566
566
|
/**
|
|
567
567
|
* Add a mesh as LOD level triggered at the given distance.
|
|
568
|
-
* @see https://doc.babylonjs.com/
|
|
568
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
569
569
|
* @param distanceOrScreenCoverage Either distance from the center of the object to show this level or the screen coverage if `useScreenCoverage` is set to `true`.
|
|
570
570
|
* If screen coverage, value is a fraction of the screen's total surface, between 0 and 1.
|
|
571
571
|
* Example Playground for distance https://playground.babylonjs.com/#QE7KM#197
|
|
@@ -588,7 +588,7 @@ export class Mesh extends AbstractMesh {
|
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* Returns the LOD level mesh at the passed distance or null if not found.
|
|
591
|
-
* @see https://doc.babylonjs.com/
|
|
591
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
592
592
|
* @param distance The distance from the center of the object to show this level
|
|
593
593
|
* @returns a Mesh or `null`
|
|
594
594
|
*/
|
|
@@ -604,7 +604,7 @@ export class Mesh extends AbstractMesh {
|
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
606
|
* Remove a mesh from the LOD array
|
|
607
|
-
* @see https://doc.babylonjs.com/
|
|
607
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
|
|
608
608
|
* @param mesh defines the mesh to be removed
|
|
609
609
|
* @returns This mesh (for chaining)
|
|
610
610
|
*/
|
|
@@ -633,19 +633,11 @@ export class Mesh extends AbstractMesh {
|
|
|
633
633
|
if (!internalDataInfo._LODLevels || internalDataInfo._LODLevels.length === 0) {
|
|
634
634
|
return this;
|
|
635
635
|
}
|
|
636
|
-
|
|
637
|
-
if (boundingSphere) {
|
|
638
|
-
bSphere = boundingSphere;
|
|
639
|
-
}
|
|
640
|
-
else {
|
|
641
|
-
const boundingInfo = this.getBoundingInfo();
|
|
642
|
-
bSphere = boundingInfo.boundingSphere;
|
|
643
|
-
}
|
|
636
|
+
const bSphere = boundingSphere || this.getBoundingInfo().boundingSphere;
|
|
644
637
|
const distanceToCamera = camera.mode === Camera.ORTHOGRAPHIC_CAMERA ? camera.minZ : bSphere.centerWorld.subtract(camera.globalPosition).length();
|
|
645
|
-
const useScreenCoverage = internalDataInfo._useLODScreenCoverage;
|
|
646
638
|
let compareValue = distanceToCamera;
|
|
647
639
|
let compareSign = 1;
|
|
648
|
-
if (
|
|
640
|
+
if (internalDataInfo._useLODScreenCoverage) {
|
|
649
641
|
const screenArea = camera.screenArea;
|
|
650
642
|
let meshArea = (bSphere.radiusWorld * camera.minZ) / distanceToCamera;
|
|
651
643
|
meshArea = meshArea * meshArea * Math.PI;
|
|
@@ -1226,7 +1218,7 @@ export class Mesh extends AbstractMesh {
|
|
|
1226
1218
|
}
|
|
1227
1219
|
/**
|
|
1228
1220
|
* This method updates the vertex positions of an updatable mesh according to the `positionFunction` returned values.
|
|
1229
|
-
* @see https://doc.babylonjs.com/
|
|
1221
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/dynamicMeshMorph#other-shapes-updatemeshpositions
|
|
1230
1222
|
* @param positionFunction is a simple JS function what is passed the mesh `positions` array. It doesn't need to return anything
|
|
1231
1223
|
* @param computeNormals is a boolean (default true) to enable/disable the mesh normal recomputation after the vertex position update
|
|
1232
1224
|
* @returns the current mesh
|
|
@@ -2188,7 +2180,7 @@ export class Mesh extends AbstractMesh {
|
|
|
2188
2180
|
* The mesh World Matrix is then reset.
|
|
2189
2181
|
* This method returns nothing but really modifies the mesh even if it's originally not set as updatable.
|
|
2190
2182
|
* Note that, under the hood, this method sets a new VertexBuffer each call.
|
|
2191
|
-
* @see https://doc.babylonjs.com/
|
|
2183
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/transforms/center_origin/bakingTransforms
|
|
2192
2184
|
* @param bakeIndependentlyOfChildren indicates whether to preserve all child nodes' World Matrix during baking
|
|
2193
2185
|
* @returns the current mesh
|
|
2194
2186
|
*/
|
|
@@ -2878,7 +2870,7 @@ export class Mesh extends AbstractMesh {
|
|
|
2878
2870
|
}
|
|
2879
2871
|
/**
|
|
2880
2872
|
* Creates a new InstancedMesh object from the mesh model.
|
|
2881
|
-
* @see https://doc.babylonjs.com/
|
|
2873
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/copies/instances
|
|
2882
2874
|
* @param name defines the name of the new instance
|
|
2883
2875
|
* @returns a new InstancedMesh
|
|
2884
2876
|
*/
|