@babylonjs/core 6.24.0 → 6.25.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/Buffers/buffer.align.d.ts +25 -0
- package/Buffers/buffer.align.js +120 -0
- package/Buffers/buffer.align.js.map +1 -0
- package/Buffers/buffer.d.ts +15 -3
- package/Buffers/buffer.js +27 -7
- package/Buffers/buffer.js.map +1 -1
- package/Buffers/index.d.ts +1 -0
- package/Buffers/index.js +1 -0
- package/Buffers/index.js.map +1 -1
- package/Cameras/Inputs/BaseCameraPointersInput.js +0 -3
- package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/flyCameraMouseInput.js +1 -4
- package/Cameras/Inputs/flyCameraMouseInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraMouseInput.js +0 -6
- package/Cameras/Inputs/freeCameraMouseInput.js.map +1 -1
- package/Cameras/RigModes/index.d.ts +0 -1
- package/Cameras/RigModes/index.js +0 -1
- package/Cameras/RigModes/index.js.map +1 -1
- package/Cameras/RigModes/vrRigMode.js +1 -1
- package/Cameras/RigModes/vrRigMode.js.map +1 -1
- package/Cameras/VR/index.d.ts +0 -1
- package/Cameras/VR/index.js +0 -1
- package/Cameras/VR/index.js.map +1 -1
- package/Cameras/VR/vrExperienceHelper.d.ts +7 -66
- package/Cameras/VR/vrExperienceHelper.js +17 -702
- package/Cameras/VR/vrExperienceHelper.js.map +1 -1
- package/Cameras/camera.d.ts +15 -20
- package/Cameras/camera.js +41 -36
- package/Cameras/camera.js.map +1 -1
- package/Cameras/targetCamera.js +1 -1
- package/Cameras/targetCamera.js.map +1 -1
- package/Engines/Extensions/index.d.ts +0 -1
- package/Engines/Extensions/index.js +0 -1
- package/Engines/Extensions/index.js.map +1 -1
- package/Engines/WebGL/webGLRenderTargetWrapper.d.ts +4 -0
- package/Engines/WebGL/webGLRenderTargetWrapper.js +4 -0
- package/Engines/WebGL/webGLRenderTargetWrapper.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheRenderPipeline.js +8 -7
- package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheSampler.js +1 -1
- package/Engines/WebGPU/webgpuCacheSampler.js.map +1 -1
- package/Engines/constants.d.ts +0 -4
- package/Engines/constants.js +0 -4
- package/Engines/constants.js.map +1 -1
- package/Engines/engine.d.ts +38 -258
- package/Engines/engine.js +0 -65
- package/Engines/engine.js.map +1 -1
- package/Engines/engineFactory.js +9 -14
- package/Engines/engineFactory.js.map +1 -1
- package/Engines/engineFeatures.d.ts +2 -0
- package/Engines/engineFeatures.js.map +1 -1
- package/Engines/nativeEngine.js +1 -0
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/nullEngine.js +1 -0
- package/Engines/nullEngine.js.map +1 -1
- package/Engines/thinEngine.d.ts +22 -5
- package/Engines/thinEngine.js +55 -22
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.d.ts +1 -0
- package/Engines/webgpuEngine.js +4 -2
- package/Engines/webgpuEngine.js.map +1 -1
- package/FlowGraph/Blocks/Data/Logic/flowGraphBitwiseBlocks.d.ts +9 -8
- package/FlowGraph/Blocks/Data/Logic/flowGraphBitwiseBlocks.js +34 -16
- package/FlowGraph/Blocks/Data/Logic/flowGraphBitwiseBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.d.ts +4 -3
- package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.js +14 -6
- package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixBlocks.d.ts +19 -14
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixBlocks.js +64 -27
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphNumberMathBlocks.d.ts +39 -41
- package/FlowGraph/Blocks/Data/Math/flowGraphNumberMathBlocks.js +152 -74
- package/FlowGraph/Blocks/Data/Math/flowGraphNumberMathBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphVector2MathBlocks.d.ts +12 -12
- package/FlowGraph/Blocks/Data/Math/flowGraphVector2MathBlocks.js +42 -21
- package/FlowGraph/Blocks/Data/Math/flowGraphVector2MathBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphVector3MathBlocks.d.ts +17 -14
- package/FlowGraph/Blocks/Data/Math/flowGraphVector3MathBlocks.js +62 -26
- package/FlowGraph/Blocks/Data/Math/flowGraphVector3MathBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphVector4MathBlocks.d.ts +13 -10
- package/FlowGraph/Blocks/Data/Math/flowGraphVector4MathBlocks.js +46 -18
- package/FlowGraph/Blocks/Data/Math/flowGraphVector4MathBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.d.ts +4 -1
- package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js +6 -2
- package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js +7 -2
- package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphConstantBlock.d.ts +5 -3
- package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js +10 -5
- package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.d.ts +4 -1
- package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js +6 -2
- package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js +7 -2
- package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js +7 -2
- package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.d.ts +4 -1
- package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js +6 -2
- package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.d.ts +6 -2
- package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js +12 -3
- package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.d.ts +5 -3
- package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js +11 -6
- package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.d.ts +1 -0
- package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js +7 -2
- package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.d.ts +1 -0
- package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js +7 -2
- package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js +8 -3
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Audio/flowGraphStopAudioBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/Audio/flowGraphStopAudioBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/Audio/flowGraphStopAudioBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.d.ts +6 -3
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js +22 -16
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.d.ts +7 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js +15 -10
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js +8 -3
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.d.ts +7 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js +14 -7
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.d.ts +5 -3
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js +9 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/flowGraphLogBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/flowGraphLogBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/flowGraphLogBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js +8 -3
- package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.d.ts +3 -1
- package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js +7 -2
- package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js.map +1 -1
- package/FlowGraph/flowGraph.d.ts +41 -3
- package/FlowGraph/flowGraph.js +135 -0
- package/FlowGraph/flowGraph.js.map +1 -1
- package/FlowGraph/flowGraphAsyncExecutionBlock.d.ts +2 -1
- package/FlowGraph/flowGraphAsyncExecutionBlock.js +2 -2
- package/FlowGraph/flowGraphAsyncExecutionBlock.js.map +1 -1
- package/FlowGraph/flowGraphBlock.d.ts +15 -3
- package/FlowGraph/flowGraphBlock.js +50 -7
- package/FlowGraph/flowGraphBlock.js.map +1 -1
- package/FlowGraph/flowGraphConnection.d.ts +34 -4
- package/FlowGraph/flowGraphConnection.js +49 -3
- package/FlowGraph/flowGraphConnection.js.map +1 -1
- package/FlowGraph/flowGraphContext.d.ts +25 -5
- package/FlowGraph/flowGraphContext.js +86 -4
- package/FlowGraph/flowGraphContext.js.map +1 -1
- package/FlowGraph/flowGraphCoordinator.d.ts +7 -1
- package/FlowGraph/flowGraphCoordinator.js +18 -2
- package/FlowGraph/flowGraphCoordinator.js.map +1 -1
- package/FlowGraph/flowGraphDataConnection.d.ts +4 -11
- package/FlowGraph/flowGraphDataConnection.js +16 -14
- package/FlowGraph/flowGraphDataConnection.js.map +1 -1
- package/FlowGraph/flowGraphExecutionBlock.d.ts +8 -3
- package/FlowGraph/flowGraphExecutionBlock.js +37 -6
- package/FlowGraph/flowGraphExecutionBlock.js.map +1 -1
- package/FlowGraph/flowGraphRichTypes.d.ts +5 -9
- package/FlowGraph/flowGraphRichTypes.js +29 -44
- package/FlowGraph/flowGraphRichTypes.js.map +1 -1
- package/FlowGraph/flowGraphSignalConnection.js +2 -0
- package/FlowGraph/flowGraphSignalConnection.js.map +1 -1
- package/FlowGraph/flowGraphVariableDefinitions.d.ts +22 -2
- package/FlowGraph/flowGraphVariableDefinitions.js +29 -0
- package/FlowGraph/flowGraphVariableDefinitions.js.map +1 -1
- package/FlowGraph/flowGraphWithOnDoneExecutionBlock.d.ts +2 -1
- package/FlowGraph/flowGraphWithOnDoneExecutionBlock.js +2 -2
- package/FlowGraph/flowGraphWithOnDoneExecutionBlock.js.map +1 -1
- package/Gamepads/gamepadManager.js +0 -5
- package/Gamepads/gamepadManager.js.map +1 -1
- package/Gamepads/index.d.ts +0 -1
- package/Gamepads/index.js +0 -2
- package/Gamepads/index.js.map +1 -1
- package/Gizmos/gizmo.js +1 -4
- package/Gizmos/gizmo.js.map +1 -1
- package/Materials/GreasedLine/greasedLineMaterialDefaults.d.ts +24 -0
- package/Materials/GreasedLine/greasedLineMaterialDefaults.js +19 -0
- package/Materials/GreasedLine/greasedLineMaterialDefaults.js.map +1 -0
- package/Materials/GreasedLine/greasedLineMaterialInterfaces.d.ts +243 -0
- package/Materials/GreasedLine/greasedLineMaterialInterfaces.js +55 -0
- package/Materials/GreasedLine/greasedLineMaterialInterfaces.js.map +1 -0
- package/Materials/GreasedLine/greasedLinePluginMaterial.d.ts +253 -0
- package/Materials/{greasedLinePluginMaterial.js → GreasedLine/greasedLinePluginMaterial.js} +148 -205
- package/Materials/GreasedLine/greasedLinePluginMaterial.js.map +1 -0
- package/Materials/{greasedLineSimpleMaterial.d.ts → GreasedLine/greasedLineSimpleMaterial.d.ts} +20 -48
- package/Materials/{greasedLineSimpleMaterial.js → GreasedLine/greasedLineSimpleMaterial.js} +74 -91
- package/Materials/GreasedLine/greasedLineSimpleMaterial.js.map +1 -0
- package/Materials/Node/Blocks/Input/prePassTextureBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Input/prePassTextureBlock.js.map +1 -1
- package/Materials/Textures/texture.js +1 -0
- package/Materials/Textures/texture.js.map +1 -1
- package/Materials/index.d.ts +4 -1
- package/Materials/index.js +4 -1
- package/Materials/index.js.map +1 -1
- package/Maths/math.vector.d.ts +32 -22
- package/Maths/math.vector.js +54 -43
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/Builders/greasedLineBuilder.d.ts +7 -6
- package/Meshes/Builders/greasedLineBuilder.js +65 -31
- package/Meshes/Builders/greasedLineBuilder.js.map +1 -1
- package/Meshes/GreasedLine/greasedLineBaseMesh.d.ts +216 -0
- package/Meshes/GreasedLine/greasedLineBaseMesh.js +247 -0
- package/Meshes/GreasedLine/greasedLineBaseMesh.js.map +1 -0
- package/Meshes/GreasedLine/greasedLineMesh.d.ts +92 -0
- package/Meshes/{greasedLineMesh.js → GreasedLine/greasedLineMesh.js} +29 -223
- package/Meshes/GreasedLine/greasedLineMesh.js.map +1 -0
- package/Meshes/GreasedLine/greasedLineRibbonMesh.d.ts +107 -0
- package/Meshes/GreasedLine/greasedLineRibbonMesh.js +462 -0
- package/Meshes/GreasedLine/greasedLineRibbonMesh.js.map +1 -0
- package/Meshes/Node/Blocks/Sources/meshBlock.d.ts +9 -2
- package/Meshes/Node/Blocks/Sources/meshBlock.js +17 -5
- package/Meshes/Node/Blocks/Sources/meshBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Textures/geometryTextureBlock.d.ts +15 -0
- package/Meshes/Node/Blocks/Textures/geometryTextureBlock.js +50 -1
- package/Meshes/Node/Blocks/Textures/geometryTextureBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock.js +5 -5
- package/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock.js.map +1 -1
- package/Meshes/Node/nodeGeometry.d.ts +1 -2
- package/Meshes/Node/nodeGeometry.js +3 -4
- package/Meshes/Node/nodeGeometry.js.map +1 -1
- package/Meshes/Node/nodeGeometryBlock.d.ts +1 -2
- package/Meshes/Node/nodeGeometryBlock.js +1 -2
- package/Meshes/Node/nodeGeometryBlock.js.map +1 -1
- package/Meshes/geometry.js +6 -12
- package/Meshes/geometry.js.map +1 -1
- package/Meshes/index.d.ts +3 -1
- package/Meshes/index.js +3 -1
- package/Meshes/index.js.map +1 -1
- package/Meshes/mesh.d.ts +4 -0
- package/Meshes/mesh.js +7 -0
- package/Meshes/mesh.js.map +1 -1
- package/Misc/deepCopier.js +3 -0
- package/Misc/deepCopier.js.map +1 -1
- package/Misc/greasedLineTools.d.ts +52 -5
- package/Misc/greasedLineTools.js +180 -10
- package/Misc/greasedLineTools.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +9 -2
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
- package/PostProcesses/motionBlurPostProcess.js +4 -1
- package/PostProcesses/motionBlurPostProcess.js.map +1 -1
- package/PostProcesses/postProcess.js +1 -6
- package/PostProcesses/postProcess.js.map +1 -1
- package/Rendering/geometryBufferRenderer.js +4 -0
- package/Rendering/geometryBufferRenderer.js.map +1 -1
- package/Shaders/greasedLine.fragment.js +2 -5
- package/Shaders/greasedLine.fragment.js.map +1 -1
- package/Shaders/greasedLine.vertex.js +15 -4
- package/Shaders/greasedLine.vertex.js.map +1 -1
- package/XR/webXRDefaultExperience.d.ts +1 -1
- package/XR/webXRDefaultExperience.js +1 -1
- package/XR/webXRDefaultExperience.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +17 -10
- package/scene.js +25 -30
- package/scene.js.map +1 -1
- package/Cameras/RigModes/webVRRigMode.d.ts +0 -5
- package/Cameras/RigModes/webVRRigMode.js +0 -34
- package/Cameras/RigModes/webVRRigMode.js.map +0 -1
- package/Cameras/VR/webVRCamera.d.ts +0 -316
- package/Cameras/VR/webVRCamera.js +0 -618
- package/Cameras/VR/webVRCamera.js.map +0 -1
- package/Engines/Extensions/engine.webVR.d.ts +0 -91
- package/Engines/Extensions/engine.webVR.js +0 -195
- package/Engines/Extensions/engine.webVR.js.map +0 -1
- package/FlowGraph/Blocks/Execution/flowGraphCustomFunctionBlock.d.ts +0 -23
- package/FlowGraph/Blocks/Execution/flowGraphCustomFunctionBlock.js +0 -18
- package/FlowGraph/Blocks/Execution/flowGraphCustomFunctionBlock.js.map +0 -1
- package/Gamepads/Controllers/daydreamController.d.ts +0 -38
- package/Gamepads/Controllers/daydreamController.js +0 -70
- package/Gamepads/Controllers/daydreamController.js.map +0 -1
- package/Gamepads/Controllers/gearVRController.d.ts +0 -39
- package/Gamepads/Controllers/gearVRController.js +0 -79
- package/Gamepads/Controllers/gearVRController.js.map +0 -1
- package/Gamepads/Controllers/genericController.d.ts +0 -34
- package/Gamepads/Controllers/genericController.js +0 -48
- package/Gamepads/Controllers/genericController.js.map +0 -1
- package/Gamepads/Controllers/index.d.ts +0 -8
- package/Gamepads/Controllers/index.js +0 -9
- package/Gamepads/Controllers/index.js.map +0 -1
- package/Gamepads/Controllers/oculusTouchController.d.ts +0 -78
- package/Gamepads/Controllers/oculusTouchController.js +0 -196
- package/Gamepads/Controllers/oculusTouchController.js.map +0 -1
- package/Gamepads/Controllers/poseEnabledController.d.ts +0 -219
- package/Gamepads/Controllers/poseEnabledController.js +0 -293
- package/Gamepads/Controllers/poseEnabledController.js.map +0 -1
- package/Gamepads/Controllers/viveController.d.ts +0 -52
- package/Gamepads/Controllers/viveController.js +0 -115
- package/Gamepads/Controllers/viveController.js.map +0 -1
- package/Gamepads/Controllers/webVRController.d.ts +0 -85
- package/Gamepads/Controllers/webVRController.js +0 -122
- package/Gamepads/Controllers/webVRController.js.map +0 -1
- package/Gamepads/Controllers/windowsMotionController.d.ts +0 -212
- package/Gamepads/Controllers/windowsMotionController.js +0 -519
- package/Gamepads/Controllers/windowsMotionController.js.map +0 -1
- package/Materials/greasedLinePluginMaterial.d.ts +0 -496
- package/Materials/greasedLinePluginMaterial.js.map +0 -1
- package/Materials/greasedLineSimpleMaterial.js.map +0 -1
- package/Meshes/greasedLineMesh.d.ts +0 -204
- package/Meshes/greasedLineMesh.js.map +0 -1
package/Cameras/camera.d.ts
CHANGED
|
@@ -13,6 +13,14 @@ import type { PostProcess } from "../PostProcesses/postProcess";
|
|
|
13
13
|
import type { RenderTargetTexture } from "../Materials/Textures/renderTargetTexture";
|
|
14
14
|
import type { FreeCamera } from "./freeCamera";
|
|
15
15
|
import type { Ray } from "../Culling/ray";
|
|
16
|
+
interface IObliqueParams {
|
|
17
|
+
/** The angle of the plane */
|
|
18
|
+
angle: number;
|
|
19
|
+
/** The length of the plane */
|
|
20
|
+
length: number;
|
|
21
|
+
/** The offset of the plane */
|
|
22
|
+
offset: number;
|
|
23
|
+
}
|
|
16
24
|
/**
|
|
17
25
|
* This is the base class of all the camera used in the application.
|
|
18
26
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/cameras
|
|
@@ -72,10 +80,6 @@ export declare class Camera extends Node {
|
|
|
72
80
|
* Defines that both eyes of the camera should be renderered in a VR mode (carbox).
|
|
73
81
|
*/
|
|
74
82
|
static readonly RIG_MODE_VR = 20;
|
|
75
|
-
/**
|
|
76
|
-
* Defines that both eyes of the camera should be renderered in a VR mode (webVR).
|
|
77
|
-
*/
|
|
78
|
-
static readonly RIG_MODE_WEBVR = 21;
|
|
79
83
|
/**
|
|
80
84
|
* Custom rig mode allowing rig cameras to be populated manually with any number of cameras
|
|
81
85
|
*/
|
|
@@ -102,6 +106,10 @@ export declare class Camera extends Node {
|
|
|
102
106
|
*/
|
|
103
107
|
set upVector(vec: Vector3);
|
|
104
108
|
get upVector(): Vector3;
|
|
109
|
+
/**
|
|
110
|
+
* Object containing oblique projection values (only used with ORTHOGRAPHIC_CAMERA)
|
|
111
|
+
*/
|
|
112
|
+
oblique: Nullable<IObliqueParams>;
|
|
105
113
|
/**
|
|
106
114
|
* The screen area in scene units squared
|
|
107
115
|
*/
|
|
@@ -249,7 +257,6 @@ export declare class Camera extends Node {
|
|
|
249
257
|
_rigCameras: Camera[];
|
|
250
258
|
/** @internal */
|
|
251
259
|
_rigPostProcess: Nullable<PostProcess>;
|
|
252
|
-
protected _webvrViewMatrix: Matrix;
|
|
253
260
|
/** @internal */
|
|
254
261
|
_skipRendering: boolean;
|
|
255
262
|
/** @internal */
|
|
@@ -429,12 +436,13 @@ export declare class Camera extends Node {
|
|
|
429
436
|
* @returns a Matrix
|
|
430
437
|
*/
|
|
431
438
|
getTransformationMatrix(): Matrix;
|
|
439
|
+
private _computeObliqueDistance;
|
|
432
440
|
private _updateFrustumPlanes;
|
|
433
441
|
/**
|
|
434
442
|
* Checks if a cullable object (mesh...) is in the camera frustum
|
|
435
443
|
* This checks the bounding box center. See isCompletelyInFrustum for a full bounding check
|
|
436
444
|
* @param target The object to check
|
|
437
|
-
* @param checkRigCameras If the rig cameras should be checked (eg. with
|
|
445
|
+
* @param checkRigCameras If the rig cameras should be checked (eg. with VR camera both eyes should be checked) (Default: false)
|
|
438
446
|
* @returns true if the object is in frustum otherwise false
|
|
439
447
|
*/
|
|
440
448
|
isInFrustum(target: ICullable, checkRigCameras?: boolean): boolean;
|
|
@@ -505,20 +513,6 @@ export declare class Camera extends Node {
|
|
|
505
513
|
protected _setRigMode(rigParams: any): void;
|
|
506
514
|
/** @internal */
|
|
507
515
|
_getVRProjectionMatrix(): Matrix;
|
|
508
|
-
protected _updateCameraRotationMatrix(): void;
|
|
509
|
-
protected _updateWebVRCameraRotationMatrix(): void;
|
|
510
|
-
/**
|
|
511
|
-
* This function MUST be overwritten by the different WebVR cameras available.
|
|
512
|
-
* The context in which it is running is the RIG camera. So 'this' is the TargetCamera, left or right.
|
|
513
|
-
* @internal
|
|
514
|
-
*/
|
|
515
|
-
_getWebVRProjectionMatrix(): Matrix;
|
|
516
|
-
/**
|
|
517
|
-
* This function MUST be overwritten by the different WebVR cameras available.
|
|
518
|
-
* The context in which it is running is the RIG camera. So 'this' is the TargetCamera, left or right.
|
|
519
|
-
* @internal
|
|
520
|
-
*/
|
|
521
|
-
_getWebVRViewMatrix(): Matrix;
|
|
522
516
|
/**
|
|
523
517
|
* @internal
|
|
524
518
|
*/
|
|
@@ -588,3 +582,4 @@ export declare class Camera extends Node {
|
|
|
588
582
|
/** @internal */
|
|
589
583
|
_calculateHandednessMultiplier(): number;
|
|
590
584
|
}
|
|
585
|
+
export {};
|
package/Cameras/camera.js
CHANGED
|
@@ -120,6 +120,10 @@ export class Camera extends Node {
|
|
|
120
120
|
/** @internal */
|
|
121
121
|
this._position = Vector3.Zero();
|
|
122
122
|
this._upVector = Vector3.Up();
|
|
123
|
+
/**
|
|
124
|
+
* Object containing oblique projection values (only used with ORTHOGRAPHIC_CAMERA)
|
|
125
|
+
*/
|
|
126
|
+
this.oblique = null;
|
|
123
127
|
/**
|
|
124
128
|
* Define the current limit on the left side for an orthographic camera
|
|
125
129
|
* In scene unit
|
|
@@ -232,7 +236,6 @@ export class Camera extends Node {
|
|
|
232
236
|
this.isRigCamera = false;
|
|
233
237
|
/** @internal */
|
|
234
238
|
this._rigCameras = new Array();
|
|
235
|
-
this._webvrViewMatrix = Matrix.Identity();
|
|
236
239
|
/** @internal */
|
|
237
240
|
this._skipRendering = false;
|
|
238
241
|
/** @internal */
|
|
@@ -371,6 +374,9 @@ export class Camera extends Node {
|
|
|
371
374
|
this._cache.orthoRight = undefined;
|
|
372
375
|
this._cache.orthoBottom = undefined;
|
|
373
376
|
this._cache.orthoTop = undefined;
|
|
377
|
+
this._cache.obliqueAngle = undefined;
|
|
378
|
+
this._cache.obliqueLength = undefined;
|
|
379
|
+
this._cache.obliqueOffset = undefined;
|
|
374
380
|
this._cache.renderWidth = undefined;
|
|
375
381
|
this._cache.renderHeight = undefined;
|
|
376
382
|
}
|
|
@@ -397,28 +403,35 @@ export class Camera extends Node {
|
|
|
397
403
|
}
|
|
398
404
|
/** @internal */
|
|
399
405
|
_isSynchronizedProjectionMatrix() {
|
|
400
|
-
let
|
|
401
|
-
if (!
|
|
406
|
+
let isSynchronized = this._cache.mode === this.mode && this._cache.minZ === this.minZ && this._cache.maxZ === this.maxZ;
|
|
407
|
+
if (!isSynchronized) {
|
|
402
408
|
return false;
|
|
403
409
|
}
|
|
404
410
|
const engine = this.getEngine();
|
|
405
411
|
if (this.mode === Camera.PERSPECTIVE_CAMERA) {
|
|
406
|
-
|
|
412
|
+
isSynchronized =
|
|
407
413
|
this._cache.fov === this.fov &&
|
|
408
414
|
this._cache.fovMode === this.fovMode &&
|
|
409
415
|
this._cache.aspectRatio === engine.getAspectRatio(this) &&
|
|
410
416
|
this._cache.projectionPlaneTilt === this.projectionPlaneTilt;
|
|
411
417
|
}
|
|
412
418
|
else {
|
|
413
|
-
|
|
419
|
+
isSynchronized =
|
|
414
420
|
this._cache.orthoLeft === this.orthoLeft &&
|
|
415
421
|
this._cache.orthoRight === this.orthoRight &&
|
|
416
422
|
this._cache.orthoBottom === this.orthoBottom &&
|
|
417
423
|
this._cache.orthoTop === this.orthoTop &&
|
|
418
424
|
this._cache.renderWidth === engine.getRenderWidth() &&
|
|
419
425
|
this._cache.renderHeight === engine.getRenderHeight();
|
|
426
|
+
if (this.oblique) {
|
|
427
|
+
isSynchronized =
|
|
428
|
+
isSynchronized &&
|
|
429
|
+
this._cache.obliqueAngle === this.oblique.angle &&
|
|
430
|
+
this._cache.obliqueLength === this.oblique.length &&
|
|
431
|
+
this._cache.obliqueOffset === this.oblique.offset;
|
|
432
|
+
}
|
|
420
433
|
}
|
|
421
|
-
return
|
|
434
|
+
return isSynchronized;
|
|
422
435
|
}
|
|
423
436
|
/**
|
|
424
437
|
* Attach the input controls to a specific dom element to get the input from.
|
|
@@ -606,7 +619,7 @@ export class Camera extends Node {
|
|
|
606
619
|
* @returns the projection matrix
|
|
607
620
|
*/
|
|
608
621
|
getProjectionMatrix(force) {
|
|
609
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
622
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
610
623
|
if (this._doNotComputeProjectionMatrix || (!force && this._isSynchronizedProjectionMatrix())) {
|
|
611
624
|
return this._projectionMatrix;
|
|
612
625
|
}
|
|
@@ -640,15 +653,28 @@ export class Camera extends Node {
|
|
|
640
653
|
const halfWidth = engine.getRenderWidth() / 2.0;
|
|
641
654
|
const halfHeight = engine.getRenderHeight() / 2.0;
|
|
642
655
|
if (scene.useRightHandedSystem) {
|
|
643
|
-
|
|
656
|
+
if (this.oblique) {
|
|
657
|
+
Matrix.ObliqueOffCenterRHToRef((_a = this.orthoLeft) !== null && _a !== void 0 ? _a : -halfWidth, (_b = this.orthoRight) !== null && _b !== void 0 ? _b : halfWidth, (_c = this.orthoBottom) !== null && _c !== void 0 ? _c : -halfHeight, (_d = this.orthoTop) !== null && _d !== void 0 ? _d : halfHeight, reverseDepth ? this.maxZ : this.minZ, reverseDepth ? this.minZ : this.maxZ, this.oblique.length, this.oblique.angle, this._computeObliqueDistance(this.oblique.offset), this._projectionMatrix, engine.isNDCHalfZRange);
|
|
658
|
+
}
|
|
659
|
+
else {
|
|
660
|
+
Matrix.OrthoOffCenterRHToRef((_e = this.orthoLeft) !== null && _e !== void 0 ? _e : -halfWidth, (_f = this.orthoRight) !== null && _f !== void 0 ? _f : halfWidth, (_g = this.orthoBottom) !== null && _g !== void 0 ? _g : -halfHeight, (_h = this.orthoTop) !== null && _h !== void 0 ? _h : halfHeight, reverseDepth ? this.maxZ : this.minZ, reverseDepth ? this.minZ : this.maxZ, this._projectionMatrix, engine.isNDCHalfZRange);
|
|
661
|
+
}
|
|
644
662
|
}
|
|
645
663
|
else {
|
|
646
|
-
|
|
664
|
+
if (this.oblique) {
|
|
665
|
+
Matrix.ObliqueOffCenterLHToRef((_j = this.orthoLeft) !== null && _j !== void 0 ? _j : -halfWidth, (_k = this.orthoRight) !== null && _k !== void 0 ? _k : halfWidth, (_l = this.orthoBottom) !== null && _l !== void 0 ? _l : -halfHeight, (_m = this.orthoTop) !== null && _m !== void 0 ? _m : halfHeight, reverseDepth ? this.maxZ : this.minZ, reverseDepth ? this.minZ : this.maxZ, this.oblique.length, this.oblique.angle, this._computeObliqueDistance(this.oblique.offset), this._projectionMatrix, engine.isNDCHalfZRange);
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
Matrix.OrthoOffCenterLHToRef((_o = this.orthoLeft) !== null && _o !== void 0 ? _o : -halfWidth, (_p = this.orthoRight) !== null && _p !== void 0 ? _p : halfWidth, (_q = this.orthoBottom) !== null && _q !== void 0 ? _q : -halfHeight, (_r = this.orthoTop) !== null && _r !== void 0 ? _r : halfHeight, reverseDepth ? this.maxZ : this.minZ, reverseDepth ? this.minZ : this.maxZ, this._projectionMatrix, engine.isNDCHalfZRange);
|
|
669
|
+
}
|
|
647
670
|
}
|
|
648
671
|
this._cache.orthoLeft = this.orthoLeft;
|
|
649
672
|
this._cache.orthoRight = this.orthoRight;
|
|
650
673
|
this._cache.orthoBottom = this.orthoBottom;
|
|
651
674
|
this._cache.orthoTop = this.orthoTop;
|
|
675
|
+
this._cache.obliqueAngle = (_s = this.oblique) === null || _s === void 0 ? void 0 : _s.angle;
|
|
676
|
+
this._cache.obliqueLength = (_t = this.oblique) === null || _t === void 0 ? void 0 : _t.length;
|
|
677
|
+
this._cache.obliqueOffset = (_u = this.oblique) === null || _u === void 0 ? void 0 : _u.offset;
|
|
652
678
|
this._cache.renderWidth = engine.getRenderWidth();
|
|
653
679
|
this._cache.renderHeight = engine.getRenderHeight();
|
|
654
680
|
}
|
|
@@ -663,6 +689,11 @@ export class Camera extends Node {
|
|
|
663
689
|
this._computedViewMatrix.multiplyToRef(this._projectionMatrix, this._transformMatrix);
|
|
664
690
|
return this._transformMatrix;
|
|
665
691
|
}
|
|
692
|
+
_computeObliqueDistance(offset) {
|
|
693
|
+
const arcRotateCamera = this;
|
|
694
|
+
const targetCamera = this;
|
|
695
|
+
return (arcRotateCamera.radius || (targetCamera.target ? Vector3.Distance(this.position, targetCamera.target) : this.position.length())) + offset;
|
|
696
|
+
}
|
|
666
697
|
_updateFrustumPlanes() {
|
|
667
698
|
if (!this._refreshFrustumPlanes) {
|
|
668
699
|
return;
|
|
@@ -680,7 +711,7 @@ export class Camera extends Node {
|
|
|
680
711
|
* Checks if a cullable object (mesh...) is in the camera frustum
|
|
681
712
|
* This checks the bounding box center. See isCompletelyInFrustum for a full bounding check
|
|
682
713
|
* @param target The object to check
|
|
683
|
-
* @param checkRigCameras If the rig cameras should be checked (eg. with
|
|
714
|
+
* @param checkRigCameras If the rig cameras should be checked (eg. with VR camera both eyes should be checked) (Default: false)
|
|
684
715
|
* @returns true if the object is in frustum otherwise false
|
|
685
716
|
*/
|
|
686
717
|
isInFrustum(target, checkRigCameras = false) {
|
|
@@ -890,28 +921,6 @@ export class Camera extends Node {
|
|
|
890
921
|
this._cameraRigParams.vrWorkMatrix.multiplyToRef(this._cameraRigParams.vrHMatrix, this._projectionMatrix);
|
|
891
922
|
return this._projectionMatrix;
|
|
892
923
|
}
|
|
893
|
-
_updateCameraRotationMatrix() {
|
|
894
|
-
//Here for WebVR
|
|
895
|
-
}
|
|
896
|
-
_updateWebVRCameraRotationMatrix() {
|
|
897
|
-
//Here for WebVR
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* This function MUST be overwritten by the different WebVR cameras available.
|
|
901
|
-
* The context in which it is running is the RIG camera. So 'this' is the TargetCamera, left or right.
|
|
902
|
-
* @internal
|
|
903
|
-
*/
|
|
904
|
-
_getWebVRProjectionMatrix() {
|
|
905
|
-
return Matrix.Identity();
|
|
906
|
-
}
|
|
907
|
-
/**
|
|
908
|
-
* This function MUST be overwritten by the different WebVR cameras available.
|
|
909
|
-
* The context in which it is running is the RIG camera. So 'this' is the TargetCamera, left or right.
|
|
910
|
-
* @internal
|
|
911
|
-
*/
|
|
912
|
-
_getWebVRViewMatrix() {
|
|
913
|
-
return Matrix.Identity();
|
|
914
|
-
}
|
|
915
924
|
/**
|
|
916
925
|
* @internal
|
|
917
926
|
*/
|
|
@@ -1168,10 +1177,6 @@ Camera.RIG_MODE_STEREOSCOPIC_INTERLACED = 14;
|
|
|
1168
1177
|
* Defines that both eyes of the camera should be renderered in a VR mode (carbox).
|
|
1169
1178
|
*/
|
|
1170
1179
|
Camera.RIG_MODE_VR = 20;
|
|
1171
|
-
/**
|
|
1172
|
-
* Defines that both eyes of the camera should be renderered in a VR mode (webVR).
|
|
1173
|
-
*/
|
|
1174
|
-
Camera.RIG_MODE_WEBVR = 21;
|
|
1175
1180
|
/**
|
|
1176
1181
|
* Custom rig mode allowing rig cameras to be populated manually with any number of cameras
|
|
1177
1182
|
*/
|