@babylonjs/core 6.7.0 → 6.8.1
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.js.map +1 -1
- package/Actions/action.js.map +1 -1
- package/Animations/animation.js.map +1 -1
- package/Animations/animationGroup.d.ts +5 -0
- package/Animations/animationGroup.js +12 -0
- package/Animations/animationGroup.js.map +1 -1
- package/Animations/easing.js.map +1 -1
- package/Audio/audioSceneComponent.js.map +1 -1
- package/Audio/sound.js.map +1 -1
- package/BakedVertexAnimation/bakedVertexAnimationManager.js.map +1 -1
- package/Behaviors/Cameras/bouncingBehavior.js.map +1 -1
- package/Behaviors/Cameras/framingBehavior.js.map +1 -1
- package/Behaviors/Meshes/fadeInOutBehavior.js.map +1 -1
- package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
- package/Bones/bone.js.map +1 -1
- package/Bones/boneIKController.js.map +1 -1
- package/Bones/boneLookController.js.map +1 -1
- package/Buffers/dataBuffer.js.map +1 -1
- package/Cameras/Inputs/BaseCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraGamepadInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/flyCameraKeyboardInput.js.map +1 -1
- package/Cameras/Inputs/flyCameraMouseInput.js.map +1 -1
- package/Cameras/Inputs/followCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/followCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/followCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraGamepadInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraMouseInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraTouchInput.js.map +1 -1
- package/Cameras/VR/vrExperienceHelper.js.map +1 -1
- package/Cameras/arcRotateCamera.js.map +1 -1
- package/Cameras/camera.js.map +1 -1
- package/Cameras/flyCamera.js.map +1 -1
- package/Cameras/followCamera.js.map +1 -1
- package/Cameras/freeCamera.js.map +1 -1
- package/Cameras/targetCamera.js.map +1 -1
- package/Collisions/collider.js.map +1 -1
- package/Compute/computeEffect.js.map +1 -1
- package/Compute/computeShader.js +1 -5
- package/Compute/computeShader.js.map +1 -1
- package/Culling/Octrees/octree.js.map +1 -1
- package/Culling/boundingBox.js.map +1 -1
- package/Culling/boundingInfo.js.map +1 -1
- package/Culling/boundingSphere.js.map +1 -1
- package/Culling/ray.d.ts +7 -2
- package/Culling/ray.js +8 -3
- package/Culling/ray.js.map +1 -1
- package/Debug/debugLayer.js +1 -9
- package/Debug/debugLayer.js.map +1 -1
- package/Debug/skeletonViewer.js.map +1 -1
- package/Engines/Extensions/engine.cubeTexture.js +1 -6
- package/Engines/Extensions/engine.cubeTexture.js.map +1 -1
- package/Engines/Extensions/engine.multiRender.js.map +1 -1
- package/Engines/Extensions/engine.multiview.d.ts +6 -1
- package/Engines/Extensions/engine.multiview.js +27 -7
- package/Engines/Extensions/engine.multiview.js.map +1 -1
- package/Engines/Extensions/engine.renderTarget.js +1 -6
- package/Engines/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/Extensions/engine.renderTargetCube.js +1 -9
- package/Engines/Extensions/engine.renderTargetCube.js.map +1 -1
- package/Engines/Extensions/engine.webVR.js +1 -5
- package/Engines/Extensions/engine.webVR.js.map +1 -1
- package/Engines/Native/nativeInterfaces.d.ts +1 -0
- package/Engines/Native/nativeInterfaces.js.map +1 -1
- package/Engines/Processors/Expressions/Operators/shaderDefineArithmeticOperator.js +3 -0
- package/Engines/Processors/Expressions/Operators/shaderDefineArithmeticOperator.js.map +1 -1
- package/Engines/Processors/Expressions/shaderDefineExpression.d.ts +37 -0
- package/Engines/Processors/Expressions/shaderDefineExpression.js +57 -0
- package/Engines/Processors/Expressions/shaderDefineExpression.js.map +1 -1
- package/Engines/Processors/shaderCodeInliner.js.map +1 -1
- package/Engines/Processors/shaderProcessor.js +34 -14
- package/Engines/Processors/shaderProcessor.js.map +1 -1
- package/Engines/WebGL/webGLRenderTargetWrapper.d.ts +19 -0
- package/Engines/WebGL/webGLRenderTargetWrapper.js +20 -1
- package/Engines/WebGL/webGLRenderTargetWrapper.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.cubeTexture.js +1 -7
- package/Engines/WebGPU/Extensions/engine.cubeTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTarget.js +1 -8
- package/Engines/WebGPU/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTargetCube.js +1 -10
- package/Engines/WebGPU/Extensions/engine.renderTargetCube.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheBindGroups.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheSampler.js +1 -6
- package/Engines/WebGPU/webgpuCacheSampler.js.map +1 -1
- package/Engines/WebGPU/webgpuShaderProcessor.js.map +1 -1
- package/Engines/WebGPU/webgpuTintWASM.js +1 -4
- package/Engines/WebGPU/webgpuTintWASM.js.map +1 -1
- package/Engines/engine.d.ts +8 -1
- package/Engines/engine.js.map +1 -1
- package/Engines/engineCapabilities.d.ts +2 -0
- package/Engines/engineCapabilities.js.map +1 -1
- package/Engines/nativeEngine.d.ts +2 -0
- package/Engines/nativeEngine.js +16 -0
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/nullEngine.js +1 -9
- package/Engines/nullEngine.js.map +1 -1
- package/Engines/thinEngine.js +7 -9
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +3 -14
- package/Engines/webgpuEngine.js.map +1 -1
- package/Gamepads/Controllers/gearVRController.js.map +1 -1
- package/Gamepads/Controllers/oculusTouchController.js.map +1 -1
- package/Gamepads/Controllers/poseEnabledController.js.map +1 -1
- package/Gamepads/Controllers/windowsMotionController.js.map +1 -1
- package/Gamepads/gamepad.js.map +1 -1
- package/Gizmos/cameraGizmo.js.map +1 -1
- package/Gizmos/gizmo.js.map +1 -1
- package/Gizmos/lightGizmo.js.map +1 -1
- package/Gizmos/planeRotationGizmo.js.map +1 -1
- package/Helpers/environmentHelper.js +2 -8
- package/Helpers/environmentHelper.js.map +1 -1
- package/Helpers/textureDome.js.map +1 -1
- package/Inputs/scene.inputManager.js +4 -1
- package/Inputs/scene.inputManager.js.map +1 -1
- package/Layers/effectLayer.js +1 -8
- package/Layers/effectLayer.js.map +1 -1
- package/Layers/glowLayer.js +1 -12
- package/Layers/glowLayer.js.map +1 -1
- package/Layers/highlightLayer.js +1 -11
- package/Layers/highlightLayer.js.map +1 -1
- package/Legacy/legacy.js +1 -1
- package/Legacy/legacy.js.map +1 -1
- package/LensFlares/lensFlareSystem.js.map +1 -1
- package/Lights/Shadows/shadowGenerator.js +1 -4
- package/Lights/Shadows/shadowGenerator.js.map +1 -1
- package/Lights/directionalLight.js.map +1 -1
- package/Lights/hemisphericLight.js.map +1 -1
- package/Lights/light.js.map +1 -1
- package/Lights/spotLight.js.map +1 -1
- package/Loading/loadingScreen.js.map +1 -1
- package/Loading/sceneLoader.d.ts +8 -8
- package/Loading/sceneLoader.js +35 -19
- package/Loading/sceneLoader.js.map +1 -1
- package/Materials/Background/backgroundMaterial.js.map +1 -1
- package/Materials/Node/Blocks/Dual/currentScreenBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/imageProcessingBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/clearCoatBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/reflectionBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/refractionBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/sheenBlock.js.map +1 -1
- package/Materials/Node/Blocks/addBlock.js +2 -0
- package/Materials/Node/Blocks/addBlock.js.map +1 -1
- package/Materials/Node/Blocks/clampBlock.js.map +1 -1
- package/Materials/Node/Blocks/cloudBlock.js.map +1 -1
- package/Materials/Node/Blocks/customBlock.d.ts +1 -0
- package/Materials/Node/Blocks/customBlock.js +18 -2
- package/Materials/Node/Blocks/customBlock.js.map +1 -1
- package/Materials/Node/Blocks/divideBlock.js +2 -0
- package/Materials/Node/Blocks/divideBlock.js.map +1 -1
- package/Materials/Node/Blocks/meshAttributeExistsBlock.js.map +1 -1
- package/Materials/Node/Blocks/multiplyBlock.js +2 -0
- package/Materials/Node/Blocks/multiplyBlock.js.map +1 -1
- package/Materials/Node/Blocks/remapBlock.js.map +1 -1
- package/Materials/Node/Blocks/subtractBlock.js +2 -0
- package/Materials/Node/Blocks/subtractBlock.js.map +1 -1
- package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
- package/Materials/Node/Blocks/worleyNoise3DBlock.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +6 -1
- package/Materials/Node/nodeMaterial.js +6 -10
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/PBR/pbrAnisotropicConfiguration.js.map +1 -1
- package/Materials/PBR/pbrBRDFConfiguration.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.js +1 -5
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/PBR/pbrBaseSimpleMaterial.js.map +1 -1
- package/Materials/PBR/pbrClearCoatConfiguration.js.map +1 -1
- package/Materials/PBR/pbrIridescenceConfiguration.js.map +1 -1
- package/Materials/PBR/pbrMaterial.d.ts +2 -1
- package/Materials/PBR/pbrMaterial.js +6 -13
- package/Materials/PBR/pbrMaterial.js.map +1 -1
- package/Materials/PBR/pbrMetallicRoughnessMaterial.js.map +1 -1
- package/Materials/PBR/pbrSheenConfiguration.js.map +1 -1
- package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
- package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/Textures/baseTexture.js.map +1 -1
- package/Materials/Textures/cubeTexture.js.map +1 -1
- package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
- package/Materials/Textures/hdrCubeTexture.js.map +1 -1
- package/Materials/Textures/htmlElementTexture.js +1 -4
- package/Materials/Textures/htmlElementTexture.js.map +1 -1
- package/Materials/Textures/internalTexture.js.map +1 -1
- package/Materials/Textures/renderTargetTexture.js.map +1 -1
- package/Materials/Textures/texture.js.map +1 -1
- package/Materials/Textures/videoTexture.js +9 -22
- package/Materials/Textures/videoTexture.js.map +1 -1
- package/Materials/colorCurves.js.map +1 -1
- package/Materials/effect.js.map +1 -1
- package/Materials/greasedLinePluginMaterial.d.ts +307 -0
- package/Materials/greasedLinePluginMaterial.js +553 -0
- package/Materials/greasedLinePluginMaterial.js.map +1 -0
- package/Materials/imageProcessingConfiguration.js.map +1 -1
- package/Materials/index.d.ts +1 -0
- package/Materials/index.js +1 -0
- package/Materials/index.js.map +1 -1
- package/Materials/material.d.ts +3 -0
- package/Materials/material.decalMapConfiguration.js.map +1 -1
- package/Materials/material.detailMapConfiguration.js.map +1 -1
- package/Materials/material.js +40 -5
- package/Materials/material.js.map +1 -1
- package/Materials/materialPluginBase.d.ts +2 -2
- package/Materials/materialPluginBase.js +2 -2
- package/Materials/materialPluginBase.js.map +1 -1
- package/Materials/materialPluginManager.d.ts +3 -2
- package/Materials/materialPluginManager.js +3 -1
- package/Materials/materialPluginManager.js.map +1 -1
- package/Materials/multiMaterial.js +1 -1
- package/Materials/multiMaterial.js.map +1 -1
- package/Materials/shaderMaterial.d.ts +23 -4
- package/Materials/shaderMaterial.js +41 -21
- package/Materials/shaderMaterial.js.map +1 -1
- package/Materials/standardMaterial.d.ts +2 -1
- package/Materials/standardMaterial.js +4 -1
- package/Materials/standardMaterial.js.map +1 -1
- package/Materials/uniformBuffer.js.map +1 -1
- package/Maths/math.vector.d.ts +2 -1
- package/Maths/math.vector.js +3 -2
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/Builders/decalBuilder.js +4 -4
- package/Meshes/Builders/decalBuilder.js.map +1 -1
- package/Meshes/Builders/greasedLineBuilder.d.ts +105 -0
- package/Meshes/Builders/greasedLineBuilder.js +330 -0
- package/Meshes/Builders/greasedLineBuilder.js.map +1 -0
- package/Meshes/Builders/index.d.ts +1 -0
- package/Meshes/Builders/index.js +1 -0
- package/Meshes/Builders/index.js.map +1 -1
- package/Meshes/abstractMesh.d.ts +3 -2
- package/Meshes/abstractMesh.js +5 -3
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/greasedLineMesh.d.ts +189 -0
- package/Meshes/greasedLineMesh.js +437 -0
- package/Meshes/greasedLineMesh.js.map +1 -0
- package/Meshes/index.d.ts +1 -0
- package/Meshes/index.js +1 -0
- package/Meshes/index.js.map +1 -1
- package/Meshes/mesh.d.ts +4 -0
- package/Meshes/mesh.js +20 -10
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/mesh.vertexData.js.map +1 -1
- package/Meshes/meshUVSpaceRenderer.js +1 -8
- package/Meshes/meshUVSpaceRenderer.js.map +1 -1
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/basis.js.map +1 -1
- package/Misc/deepCopier.js +8 -2
- package/Misc/deepCopier.js.map +1 -1
- package/Misc/dumpTools.d.ts +4 -3
- package/Misc/dumpTools.js +5 -4
- package/Misc/dumpTools.js.map +1 -1
- package/Misc/environmentTextureTools.js +1 -1
- package/Misc/environmentTextureTools.js.map +1 -1
- package/Misc/fileTools.js +10 -10
- package/Misc/fileTools.js.map +1 -1
- package/Misc/greasedLineTools.d.ts +141 -0
- package/Misc/greasedLineTools.js +263 -0
- package/Misc/greasedLineTools.js.map +1 -0
- package/Misc/index.d.ts +1 -0
- package/Misc/index.js +1 -0
- package/Misc/index.js.map +1 -1
- package/Misc/khronosTextureContainer.js.map +1 -1
- package/Misc/observable.d.ts +11 -0
- package/Misc/observable.js +26 -1
- package/Misc/observable.js.map +1 -1
- package/Misc/sceneOptimizer.js.map +1 -1
- package/Misc/screenshotTools.d.ts +15 -5
- package/Misc/screenshotTools.js +23 -13
- package/Misc/screenshotTools.js.map +1 -1
- package/Misc/smartArray.js.map +1 -1
- package/Misc/tools.d.ts +21 -9
- package/Misc/tools.js +21 -9
- package/Misc/tools.js.map +1 -1
- package/Misc/videoRecorder.js +1 -4
- package/Misc/videoRecorder.js.map +1 -1
- package/Misc/virtualJoystick.js +1 -4
- package/Misc/virtualJoystick.js.map +1 -1
- package/Misc/webRequest.js.map +1 -1
- package/Morph/morphTarget.js.map +1 -1
- package/Morph/morphTargetManager.js.map +1 -1
- package/Offline/database.js.map +1 -1
- package/Particles/baseParticleSystem.js.map +1 -1
- package/Particles/gpuParticleSystem.d.ts +1 -0
- package/Particles/gpuParticleSystem.js +5 -8
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/particle.js.map +1 -1
- package/Particles/particleSystem.js +1 -1
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/particleSystemSet.js.map +1 -1
- package/Physics/physicsHelper.js +4 -4
- package/Physics/physicsHelper.js.map +1 -1
- package/Physics/physicsRaycastResult.d.ts +3 -1
- package/Physics/physicsRaycastResult.js +10 -1
- package/Physics/physicsRaycastResult.js.map +1 -1
- package/Physics/v1/Plugins/ammoJSPlugin.js.map +1 -1
- package/Physics/v1/physicsImpostor.js.map +1 -1
- package/Physics/v2/IPhysicsEnginePlugin.d.ts +10 -0
- package/Physics/v2/IPhysicsEnginePlugin.js.map +1 -1
- package/Physics/v2/Plugins/havokPlugin.d.ts +3 -2
- package/Physics/v2/Plugins/havokPlugin.js +9 -6
- package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js.map +1 -1
- package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
- package/PostProcesses/bloomMergePostProcess.js.map +1 -1
- package/PostProcesses/blurPostProcess.js.map +1 -1
- package/PostProcesses/circleOfConfusionPostProcess.js.map +1 -1
- package/PostProcesses/colorCorrectionPostProcess.js.map +1 -1
- package/PostProcesses/convolutionPostProcess.js.map +1 -1
- package/PostProcesses/depthOfFieldBlurPostProcess.js.map +1 -1
- package/PostProcesses/extractHighlightsPostProcess.js.map +1 -1
- package/PostProcesses/filterPostProcess.js.map +1 -1
- package/PostProcesses/grainPostProcess.js.map +1 -1
- package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
- package/PostProcesses/motionBlurPostProcess.js.map +1 -1
- package/PostProcesses/postProcess.js.map +1 -1
- package/PostProcesses/refractionPostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceReflectionPostProcess.js.map +1 -1
- package/PostProcesses/sharpenPostProcess.js.map +1 -1
- package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
- package/Probes/reflectionProbe.js.map +1 -1
- package/Rendering/boundingBoxRenderer.js +2 -4
- package/Rendering/boundingBoxRenderer.js.map +1 -1
- package/Rendering/depthPeelingRenderer.js.map +1 -1
- package/Rendering/depthRenderer.js.map +1 -1
- package/Rendering/geometryBufferRenderer.js.map +1 -1
- package/Rendering/outlineRenderer.js.map +1 -1
- package/Rendering/prePassRenderer.js.map +1 -1
- package/Rendering/renderingGroup.js.map +1 -1
- package/Rendering/renderingManager.js.map +1 -1
- package/Rendering/subSurfaceConfiguration.js.map +1 -1
- package/Rendering/utilityLayerRenderer.js.map +1 -1
- package/Shaders/ShadersInclude/pbrBlockAlbedoOpacity.js +4 -2
- package/Shaders/ShadersInclude/pbrBlockAlbedoOpacity.js.map +1 -1
- package/Shaders/ShadersInclude/pbrDebug.js +11 -2
- package/Shaders/ShadersInclude/pbrDebug.js.map +1 -1
- package/Shaders/velocity.fragment.d.ts +5 -0
- package/Shaders/velocity.fragment.js +13 -0
- package/Shaders/velocity.fragment.js.map +1 -0
- package/Shaders/velocity.vertex.d.ts +7 -0
- package/Shaders/velocity.vertex.js +23 -0
- package/Shaders/velocity.vertex.js.map +1 -0
- package/Sprites/spriteManager.js.map +1 -1
- package/XR/features/WebXRAnchorSystem.js.map +1 -1
- package/XR/features/WebXRBackgroundRemover.js.map +1 -1
- package/XR/features/WebXRControllerMovement.js.map +1 -1
- package/XR/features/WebXRControllerPhysics.js +4 -13
- package/XR/features/WebXRControllerPhysics.js.map +1 -1
- package/XR/features/WebXRControllerPointerSelection.js.map +1 -1
- package/XR/features/WebXRControllerTeleportation.js.map +1 -1
- package/XR/features/WebXRDOMOverlay.js.map +1 -1
- package/XR/features/WebXRDepthSensing.js.map +1 -1
- package/XR/features/WebXREyeTracking.js.map +1 -1
- package/XR/features/WebXRFeaturePointSystem.js.map +1 -1
- package/XR/features/WebXRHandTracking.js +2 -8
- package/XR/features/WebXRHandTracking.js.map +1 -1
- package/XR/features/WebXRHitTest.js.map +1 -1
- package/XR/features/WebXRHitTestLegacy.js.map +1 -1
- package/XR/features/WebXRImageTracking.js.map +1 -1
- package/XR/features/WebXRLayers.js +18 -8
- package/XR/features/WebXRLayers.js.map +1 -1
- package/XR/features/WebXRLightEstimation.js.map +1 -1
- package/XR/features/WebXRMeshDetector.js.map +1 -1
- package/XR/features/WebXRNearInteraction.js.map +1 -1
- package/XR/features/WebXRPlaneDetector.js.map +1 -1
- package/XR/features/WebXRSpaceWarp.d.ts +138 -0
- package/XR/features/WebXRSpaceWarp.js +290 -0
- package/XR/features/WebXRSpaceWarp.js.map +1 -0
- package/XR/features/index.d.ts +1 -0
- package/XR/features/index.js +1 -0
- package/XR/features/index.js.map +1 -1
- package/XR/motionController/webXRAbstractMotionController.js +1 -4
- package/XR/motionController/webXRAbstractMotionController.js.map +1 -1
- package/XR/motionController/webXRControllerComponent.js.map +1 -1
- package/XR/motionController/webXRGenericMotionController.js.map +1 -1
- package/XR/motionController/webXRHTCViveMotionController.js.map +1 -1
- package/XR/motionController/webXRMicrosoftMixedRealityController.js.map +1 -1
- package/XR/motionController/webXROculusTouchMotionController.js.map +1 -1
- package/XR/webXRCamera.js.map +1 -1
- package/XR/webXRDefaultExperience.js +6 -28
- package/XR/webXRDefaultExperience.js.map +1 -1
- package/XR/webXRFeaturesManager.d.ts +4 -0
- package/XR/webXRFeaturesManager.js +5 -4
- package/XR/webXRFeaturesManager.js.map +1 -1
- package/XR/webXRInput.js +1 -6
- package/XR/webXRInput.js.map +1 -1
- package/XR/webXRSessionManager.d.ts +4 -0
- package/XR/webXRSessionManager.js +6 -0
- package/XR/webXRSessionManager.js.map +1 -1
- package/abstractScene.js.map +1 -1
- package/assetContainer.js +1 -4
- package/assetContainer.js.map +1 -1
- package/node.js.map +1 -1
- package/package.json +2 -4
- package/scene.d.ts +5 -2
- package/scene.js +9 -12
- package/scene.js.map +1 -1
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { MaterialPluginBase } from "./materialPluginBase";
|
|
2
|
+
import type { Scene } from "../scene";
|
|
3
|
+
import type { UniformBuffer } from "./uniformBuffer";
|
|
4
|
+
import type { Vector2 } from "../Maths/math.vector";
|
|
5
|
+
import { Color3 } from "../Maths/math.color";
|
|
6
|
+
import type { Nullable } from "../types";
|
|
7
|
+
import type { Material } from "./material";
|
|
8
|
+
import { MaterialDefines } from "./materialDefines";
|
|
9
|
+
import type { AbstractMesh } from "../Meshes/abstractMesh";
|
|
10
|
+
import type { BaseTexture } from "./Textures/baseTexture";
|
|
11
|
+
export declare enum GreasedLineMeshMaterialType {
|
|
12
|
+
MATERIAL_TYPE_STANDARD = 0,
|
|
13
|
+
MATERIAL_TYPE_PBR = 1
|
|
14
|
+
}
|
|
15
|
+
export declare enum GreasedLineMeshColorMode {
|
|
16
|
+
COLOR_MODE_SET = 0,
|
|
17
|
+
COLOR_MODE_ADD = 1,
|
|
18
|
+
COLOR_MODE_MULTIPLY = 2
|
|
19
|
+
}
|
|
20
|
+
export declare enum GreasedLineMeshColorDistributionType {
|
|
21
|
+
COLOR_DISTRIBUTION_TYPE_SEGMENT = 0,
|
|
22
|
+
COLOR_DISTRIBUTION_TYPE_LINE = 1
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Options for GreasedLineMaterial
|
|
26
|
+
*/
|
|
27
|
+
export interface GreasedLineMaterialOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Line width. If sizeAttenuation os false scene units will be used for width.
|
|
30
|
+
* Defaults to 0.1 if @see sizeAttenuation is false, or to 1 if it's true.
|
|
31
|
+
*/
|
|
32
|
+
width?: number;
|
|
33
|
+
/**
|
|
34
|
+
* If false then width units = scene units. If true then line will width be reduced.
|
|
35
|
+
* Defaults to false.
|
|
36
|
+
*/
|
|
37
|
+
sizeAttenuation?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Type of the material to use to render the line.
|
|
40
|
+
* Defaults to StandardMaterial.
|
|
41
|
+
*/
|
|
42
|
+
materialType?: GreasedLineMeshMaterialType;
|
|
43
|
+
/**
|
|
44
|
+
* Color of the line. Applies to all line segments.
|
|
45
|
+
* Defaults to White.
|
|
46
|
+
*/
|
|
47
|
+
color?: Color3;
|
|
48
|
+
/**
|
|
49
|
+
* Color mode of the line. Applies to all line segments.
|
|
50
|
+
* The pixel color from the material shader will be modified with the value of @see color using the colorMode.
|
|
51
|
+
* Defaults to @see GreasedLineMeshColorMode.SET
|
|
52
|
+
*/
|
|
53
|
+
colorMode?: GreasedLineMeshColorMode;
|
|
54
|
+
/**
|
|
55
|
+
* Colors of the line segments.
|
|
56
|
+
* Defaults to empty.
|
|
57
|
+
*/
|
|
58
|
+
colors?: Color3[];
|
|
59
|
+
/**
|
|
60
|
+
* If true, @see colors are used, otherwise they're ignored.
|
|
61
|
+
* Defaults to false.
|
|
62
|
+
*/
|
|
63
|
+
useColors?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Sampling type of the colors texture
|
|
66
|
+
* Defaults to NEAREST_NEAREST.
|
|
67
|
+
*/
|
|
68
|
+
colorsSampling?: number;
|
|
69
|
+
/**
|
|
70
|
+
* The method used to distribute the colors along the line.
|
|
71
|
+
* You can use segment distribution when each segment will use on color from the color table.
|
|
72
|
+
* Or you can use line distribution when the colors are distributed evenly along the line ignoring the segments.
|
|
73
|
+
*/
|
|
74
|
+
colorDistributionType?: GreasedLineMeshColorDistributionType;
|
|
75
|
+
/**
|
|
76
|
+
* If true, dashing is used.
|
|
77
|
+
* Defaults to false.
|
|
78
|
+
*/
|
|
79
|
+
useDash?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* @see GreasedLinePluginMaterial.setDashCount
|
|
82
|
+
* Number of dashes in the line.
|
|
83
|
+
* Defaults to 1.
|
|
84
|
+
*/
|
|
85
|
+
dashCount?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Offset of the dashes along the line. 0 to 1.
|
|
88
|
+
* Defaults to 0.
|
|
89
|
+
* @see GreasedLinePluginMaterial.setDashOffset
|
|
90
|
+
*/
|
|
91
|
+
dashOffset?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Length of the dash. 0 to 1. 0.5 means half empty, half drawn.
|
|
94
|
+
* Defaults to 0.5.
|
|
95
|
+
* @see GreasedLinePluginMaterial.setDashRatio
|
|
96
|
+
*/
|
|
97
|
+
dashRatio?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Sets the line length visibility.
|
|
100
|
+
* 0 - 0% of the line will be visible.
|
|
101
|
+
* 1 - 100% of the line will be visible.
|
|
102
|
+
* @see GreasedLinePluginMaterial.setVisibility
|
|
103
|
+
*/
|
|
104
|
+
visibility?: number;
|
|
105
|
+
/**
|
|
106
|
+
* Defaults to engine.getRenderWidth() and engine.getRenderHeight()
|
|
107
|
+
* Rendering resolution
|
|
108
|
+
*/
|
|
109
|
+
resolution?: Vector2;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
export declare class MaterialGreasedLineDefines extends MaterialDefines {
|
|
115
|
+
/**
|
|
116
|
+
* The material has a color option specified
|
|
117
|
+
*/
|
|
118
|
+
GREASED_LINE_HAS_COLOR: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* The material's size attenuation optiom
|
|
121
|
+
*/
|
|
122
|
+
GREASED_LINE_SIZE_ATTENUATION: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The type of color distribution is set to line this value equals to true.
|
|
125
|
+
*/
|
|
126
|
+
GREASED_LINE_COLOR_DISTRIBUTION_TYPE_LINE: boolean;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* GreasedLinePluginMaterial for GreasedLineMesh
|
|
130
|
+
*/
|
|
131
|
+
export declare class GreasedLinePluginMaterial extends MaterialPluginBase {
|
|
132
|
+
private _scene;
|
|
133
|
+
/**
|
|
134
|
+
* Plugin name
|
|
135
|
+
*/
|
|
136
|
+
static readonly GREASED_LINE_MATERIAL_NAME = "GreasedLinePluginMaterial";
|
|
137
|
+
private _colorsTexture?;
|
|
138
|
+
private _dashArray;
|
|
139
|
+
private _options;
|
|
140
|
+
private _engine;
|
|
141
|
+
private static _EmptyColorsTexture;
|
|
142
|
+
constructor(material: Material, _scene: Scene, options: GreasedLineMaterialOptions);
|
|
143
|
+
/**
|
|
144
|
+
* Get the shader attributes
|
|
145
|
+
* @param attributes array which will be filled with the attributes
|
|
146
|
+
*/
|
|
147
|
+
getAttributes(attributes: string[]): void;
|
|
148
|
+
/**
|
|
149
|
+
* Get the shader samplers
|
|
150
|
+
* @param samplers
|
|
151
|
+
*/
|
|
152
|
+
getSamplers(samplers: string[]): void;
|
|
153
|
+
/**
|
|
154
|
+
* Get the shader textures
|
|
155
|
+
* @param activeTextures
|
|
156
|
+
*/
|
|
157
|
+
getActiveTextures(activeTextures: BaseTexture[]): void;
|
|
158
|
+
/**
|
|
159
|
+
* Get the shader uniforms
|
|
160
|
+
* @returns uniforms
|
|
161
|
+
*/
|
|
162
|
+
getUniforms(): {
|
|
163
|
+
ubo: {
|
|
164
|
+
name: string;
|
|
165
|
+
size: number;
|
|
166
|
+
type: string;
|
|
167
|
+
}[];
|
|
168
|
+
vertex: string;
|
|
169
|
+
fragment: string;
|
|
170
|
+
};
|
|
171
|
+
get isEnabled(): boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Bind the uniform buffer
|
|
174
|
+
* @param uniformBuffer
|
|
175
|
+
*/
|
|
176
|
+
bindForSubMesh(uniformBuffer: UniformBuffer): void;
|
|
177
|
+
/**
|
|
178
|
+
* Prepare the defines
|
|
179
|
+
* @param defines
|
|
180
|
+
* @param _scene
|
|
181
|
+
* @param _mesh
|
|
182
|
+
*/
|
|
183
|
+
prepareDefines(defines: MaterialGreasedLineDefines, _scene: Scene, _mesh: AbstractMesh): void;
|
|
184
|
+
/**
|
|
185
|
+
* Get the class name
|
|
186
|
+
* @returns class name
|
|
187
|
+
*/
|
|
188
|
+
getClassName(): string;
|
|
189
|
+
/**
|
|
190
|
+
* Get shader code
|
|
191
|
+
* @param shaderType vertex/fragment
|
|
192
|
+
* @returns shader code
|
|
193
|
+
*/
|
|
194
|
+
getCustomCode(shaderType: string): Nullable<{
|
|
195
|
+
[pointName: string]: string;
|
|
196
|
+
}>;
|
|
197
|
+
/**
|
|
198
|
+
* Converts boolean to number.
|
|
199
|
+
* @param bool
|
|
200
|
+
* @returns 1 if true, 0 if false.
|
|
201
|
+
*/
|
|
202
|
+
private static _BooleanToNumber;
|
|
203
|
+
/**
|
|
204
|
+
* Converts an array of Color3 to Uint8Array
|
|
205
|
+
* @param colors Arrray of Color3
|
|
206
|
+
* @returns Uin8Array of colors [r, g, b, a, r, g, b, a, ...]
|
|
207
|
+
*/
|
|
208
|
+
private static _Color3toRGBAUint8;
|
|
209
|
+
/**
|
|
210
|
+
* Creates a RawTexture from an RGBA color array and sets it on the plugin material instance.
|
|
211
|
+
* @param name name of the texture
|
|
212
|
+
* @param colors Uint8Array of colors
|
|
213
|
+
*/
|
|
214
|
+
private _createColorsTexture;
|
|
215
|
+
/**
|
|
216
|
+
* Disposes the plugin material.
|
|
217
|
+
*/
|
|
218
|
+
dispose(): void;
|
|
219
|
+
/**
|
|
220
|
+
* Sets whether to use the colors option to colorize the line.
|
|
221
|
+
* @param value true if use the colors, otherwise false
|
|
222
|
+
*/
|
|
223
|
+
setUseColors(value: boolean): void;
|
|
224
|
+
/**
|
|
225
|
+
* Creates or updates the colors texture
|
|
226
|
+
* @param colors color table RGBA
|
|
227
|
+
* @param lazy if lazy, the colors are not updated
|
|
228
|
+
* @param forceUpdate force creation of a new texture
|
|
229
|
+
* @returns
|
|
230
|
+
*/
|
|
231
|
+
setColors(colors: Nullable<Color3[]>, lazy?: boolean, forceUpdate?: boolean): void;
|
|
232
|
+
/**
|
|
233
|
+
* Updates the material. Use when material created in lazy mode.
|
|
234
|
+
*/
|
|
235
|
+
updateLazy(): void;
|
|
236
|
+
/**
|
|
237
|
+
* Gets the plugin material options
|
|
238
|
+
* @returns the plugin material options @see GreasedLineMaterialOptions
|
|
239
|
+
*/
|
|
240
|
+
getOptions(): GreasedLineMaterialOptions;
|
|
241
|
+
/**
|
|
242
|
+
* Sets the line length visibility.
|
|
243
|
+
* 0 - 0% of the line will be visible
|
|
244
|
+
* 1 - 100% of the line will be visible
|
|
245
|
+
* @param value
|
|
246
|
+
*/
|
|
247
|
+
setVisibility(value: number): void;
|
|
248
|
+
/**
|
|
249
|
+
* Turns on/off dashmode
|
|
250
|
+
* @param value
|
|
251
|
+
*/
|
|
252
|
+
setUseDash(value: boolean): void;
|
|
253
|
+
/**
|
|
254
|
+
* Sets the dash array.
|
|
255
|
+
* @param value dash array
|
|
256
|
+
*/
|
|
257
|
+
setDashCount(value: number): void;
|
|
258
|
+
/**
|
|
259
|
+
* Sets the dash ratio
|
|
260
|
+
* @param value dash length ratio 0..1 (0.5 = half empty, half drawn)
|
|
261
|
+
*/
|
|
262
|
+
setDashRatio(value: number): void;
|
|
263
|
+
/**
|
|
264
|
+
* Sets the dash offset
|
|
265
|
+
* @param value the dashes will be offset by this value
|
|
266
|
+
*/
|
|
267
|
+
setDashOffset(value: number): void;
|
|
268
|
+
/**
|
|
269
|
+
* Sets line base width. At each point the line width is calculated by widths[pointIndex] * width
|
|
270
|
+
* @param value base width
|
|
271
|
+
*/
|
|
272
|
+
setWidth(value: number): void;
|
|
273
|
+
/**
|
|
274
|
+
* Turn on/off attenuation of the width option and widths array.
|
|
275
|
+
* @param value false means 1 unit in width = 1 unit on scene, true means 1 unit in width is reduced on the screen to make better looking lines
|
|
276
|
+
*/
|
|
277
|
+
setSizeAttenuation(value: boolean): void;
|
|
278
|
+
/**
|
|
279
|
+
* Sets the color of the line. If set the whole line will be mixed with this color according to the colorMode option.
|
|
280
|
+
* @param value color
|
|
281
|
+
*/
|
|
282
|
+
setColor(value: Color3 | undefined, doNotMarkDirty?: boolean): void;
|
|
283
|
+
/**
|
|
284
|
+
* Sets the mixing mode of the color paramater. Default value is GreasedLineMeshColorMode.SET
|
|
285
|
+
* @see GreasedLineMeshColorMode
|
|
286
|
+
* @param value color mode
|
|
287
|
+
*/
|
|
288
|
+
setColorMode(value: GreasedLineMeshColorMode): void;
|
|
289
|
+
/**
|
|
290
|
+
* Serializes this plugin material
|
|
291
|
+
* @returns serializationObjec
|
|
292
|
+
*/
|
|
293
|
+
serialize(): any;
|
|
294
|
+
/**
|
|
295
|
+
* Parses a serialized objects
|
|
296
|
+
* @param source serialized object
|
|
297
|
+
* @param scene scene
|
|
298
|
+
* @param rootUrl root url for textures
|
|
299
|
+
*/
|
|
300
|
+
parse(source: any, scene: Scene, rootUrl: string): void;
|
|
301
|
+
/**
|
|
302
|
+
* A minimum size texture for the colors sampler2D when there is no colors texture defined yet.
|
|
303
|
+
* For fast switching using the useColors property without the need to use defines.
|
|
304
|
+
* @param scene Scene
|
|
305
|
+
*/
|
|
306
|
+
private static _PrepareEmptyColorsTexture;
|
|
307
|
+
}
|