@babylonjs/core 5.45.2 → 5.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Actions/condition.js +23 -23
- package/Actions/condition.js.map +1 -1
- package/Animations/animatable.js +48 -48
- package/Animations/animatable.js.map +1 -1
- package/Animations/animation.js +53 -53
- package/Animations/animation.js.map +1 -1
- package/Animations/animationGroup.js +53 -53
- package/Animations/animationGroup.js.map +1 -1
- package/Animations/runtimeAnimation.js +36 -36
- package/Animations/runtimeAnimation.js.map +1 -1
- package/Audio/audioEngine.js +14 -14
- package/Audio/audioEngine.js.map +1 -1
- package/Audio/audioSceneComponent.js +14 -14
- package/Audio/audioSceneComponent.js.map +1 -1
- package/Audio/sound.js +47 -47
- package/Audio/sound.js.map +1 -1
- package/Behaviors/Meshes/baseSixDofDragBehavior.d.ts +1 -1
- package/Behaviors/Meshes/fadeInOutBehavior.js +11 -11
- package/Behaviors/Meshes/fadeInOutBehavior.js.map +1 -1
- package/Behaviors/Meshes/pointerDragBehavior.js +34 -34
- package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
- package/Bones/bone.js +15 -15
- package/Bones/bone.js.map +1 -1
- package/Bones/boneIKController.js +9 -9
- package/Bones/boneIKController.js.map +1 -1
- package/Bones/boneLookController.js +50 -50
- package/Bones/boneLookController.js.map +1 -1
- package/Bones/skeleton.js +35 -35
- package/Bones/skeleton.js.map +1 -1
- package/Buffers/buffer.js +14 -14
- package/Buffers/buffer.js.map +1 -1
- package/Buffers/dataBuffer.js +6 -6
- package/Buffers/dataBuffer.js.map +1 -1
- package/Cameras/Inputs/freeCameraDeviceOrientationInput.js +42 -42
- package/Cameras/Inputs/freeCameraDeviceOrientationInput.js.map +1 -1
- package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.js +18 -18
- package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.js.map +1 -1
- package/Cameras/VR/vrExperienceHelper.js +178 -178
- package/Cameras/VR/vrExperienceHelper.js.map +1 -1
- package/Cameras/arcRotateCamera.js +176 -176
- package/Cameras/arcRotateCamera.js.map +1 -1
- package/Cameras/camera.js +90 -90
- package/Cameras/camera.js.map +1 -1
- package/Cameras/flyCamera.js +82 -82
- package/Cameras/flyCamera.js.map +1 -1
- package/Cameras/freeCamera.js +54 -54
- package/Cameras/freeCamera.js.map +1 -1
- package/Compute/computeShader.js +12 -12
- package/Compute/computeShader.js.map +1 -1
- package/Culling/ray.d.ts +1 -1
- package/Debug/axesViewer.js +12 -12
- package/Debug/axesViewer.js.map +1 -1
- package/Debug/debugLayer.js +21 -21
- package/Debug/debugLayer.js.map +1 -1
- package/Debug/directionalLightFrustumViewer.js +20 -20
- package/Debug/directionalLightFrustumViewer.js.map +1 -1
- package/Debug/rayHelper.js +10 -10
- package/Debug/rayHelper.js.map +1 -1
- package/Debug/skeletonViewer.js +81 -81
- package/Debug/skeletonViewer.js.map +1 -1
- package/DeviceInput/InputDevices/deviceSource.d.ts +1 -1
- package/DeviceInput/InputDevices/deviceSourceManager.js +31 -31
- package/DeviceInput/InputDevices/deviceSourceManager.js.map +1 -1
- package/DeviceInput/InputDevices/deviceTypes.d.ts +1 -1
- package/DeviceInput/internalDeviceSourceManager.d.ts +2 -2
- package/Engines/Extensions/engine.computeShader.d.ts +3 -3
- package/Engines/Extensions/engine.multiRender.js +1 -1
- package/Engines/Extensions/engine.multiRender.js.map +1 -1
- package/Engines/Extensions/engine.query.d.ts +1 -1
- package/Engines/Extensions/engine.renderTarget.d.ts +1 -1
- package/Engines/Extensions/engine.renderTarget.js +1 -1
- package/Engines/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/Native/nativeDataStream.d.ts +1 -1
- package/Engines/Native/nativeHardwareTexture.js +3 -3
- package/Engines/Native/nativeHardwareTexture.js.map +1 -1
- package/Engines/Native/nativeInterfaces.d.ts +5 -5
- package/Engines/Native/nativePipelineContext.js +7 -7
- package/Engines/Native/nativePipelineContext.js.map +1 -1
- package/Engines/Native/nativeRenderTargetWrapper.js +6 -6
- package/Engines/Native/nativeRenderTargetWrapper.js.map +1 -1
- package/Engines/Processors/shaderCodeInliner.js +4 -4
- package/Engines/Processors/shaderCodeInliner.js.map +1 -1
- package/Engines/Processors/shaderProcessingOptions.d.ts +1 -1
- package/Engines/WebGL/webGLHardwareTexture.js +3 -3
- package/Engines/WebGL/webGLHardwareTexture.js.map +1 -1
- package/Engines/WebGPU/webgpuBufferManager.js +3 -3
- package/Engines/WebGPU/webgpuBufferManager.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheBindGroups.js +6 -6
- package/Engines/WebGPU/webgpuCacheBindGroups.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheRenderPipelineTree.js +5 -5
- package/Engines/WebGPU/webgpuCacheRenderPipelineTree.js.map +1 -1
- package/Engines/WebGPU/webgpuClearQuad.js +11 -11
- package/Engines/WebGPU/webgpuClearQuad.js.map +1 -1
- package/Engines/WebGPU/webgpuComputeContext.js +7 -7
- package/Engines/WebGPU/webgpuComputeContext.js.map +1 -1
- package/Engines/WebGPU/webgpuComputePipelineContext.js +4 -4
- package/Engines/WebGPU/webgpuComputePipelineContext.js.map +1 -1
- package/Engines/WebGPU/webgpuDrawContext.js +7 -7
- package/Engines/WebGPU/webgpuDrawContext.js.map +1 -1
- package/Engines/WebGPU/webgpuHardwareTexture.js +9 -9
- package/Engines/WebGPU/webgpuHardwareTexture.js.map +1 -1
- package/Engines/WebGPU/webgpuMaterialContext.js +5 -5
- package/Engines/WebGPU/webgpuMaterialContext.js.map +1 -1
- package/Engines/WebGPU/webgpuOcclusionQuery.js +10 -10
- package/Engines/WebGPU/webgpuOcclusionQuery.js.map +1 -1
- package/Engines/WebGPU/webgpuPipelineContext.js +6 -6
- package/Engines/WebGPU/webgpuPipelineContext.js.map +1 -1
- package/Engines/WebGPU/webgpuQuerySet.js +3 -3
- package/Engines/WebGPU/webgpuQuerySet.js.map +1 -1
- package/Engines/WebGPU/webgpuShaderProcessingContext.js +3 -3
- package/Engines/WebGPU/webgpuShaderProcessingContext.js.map +1 -1
- package/Engines/WebGPU/webgpuTextureHelper.js +3 -3
- package/Engines/WebGPU/webgpuTextureHelper.js.map +1 -1
- package/Engines/WebGPU/webgpuTimestampQuery.js +3 -3
- package/Engines/WebGPU/webgpuTimestampQuery.js.map +1 -1
- package/Engines/engine.js +134 -134
- package/Engines/engine.js.map +1 -1
- package/Engines/nativeEngine.js +6 -6
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/nullEngine.js +25 -25
- package/Engines/nullEngine.js.map +1 -1
- package/Engines/renderTargetWrapper.js +25 -25
- package/Engines/renderTargetWrapper.js.map +1 -1
- package/Engines/thinEngine.js +243 -243
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +132 -132
- package/Engines/webgpuEngine.js.map +1 -1
- package/Events/keyboardEvents.js +10 -10
- package/Events/keyboardEvents.js.map +1 -1
- package/Events/pointerEvents.js +9 -9
- package/Events/pointerEvents.js.map +1 -1
- package/Gamepads/Controllers/poseEnabledController.js +9 -9
- package/Gamepads/Controllers/poseEnabledController.js.map +1 -1
- package/Gamepads/Controllers/webVRController.js +13 -13
- package/Gamepads/Controllers/webVRController.js.map +1 -1
- package/Gamepads/gamepad.js +20 -20
- package/Gamepads/gamepad.js.map +1 -1
- package/Gizmos/axisDragGizmo.js +45 -45
- package/Gizmos/axisDragGizmo.js.map +1 -1
- package/Gizmos/axisScaleGizmo.js +12 -12
- package/Gizmos/axisScaleGizmo.js.map +1 -1
- package/Gizmos/boundingBoxGizmo.js +74 -74
- package/Gizmos/boundingBoxGizmo.js.map +1 -1
- package/Gizmos/gizmo.js +34 -34
- package/Gizmos/gizmo.js.map +1 -1
- package/Gizmos/gizmoManager.js +40 -40
- package/Gizmos/gizmoManager.js.map +1 -1
- package/Gizmos/planeDragGizmo.js +23 -23
- package/Gizmos/planeDragGizmo.js.map +1 -1
- package/Gizmos/planeRotationGizmo.js +12 -12
- package/Gizmos/planeRotationGizmo.js.map +1 -1
- package/Gizmos/positionGizmo.js +40 -40
- package/Gizmos/positionGizmo.js.map +1 -1
- package/Gizmos/rotationGizmo.js +47 -47
- package/Gizmos/rotationGizmo.js.map +1 -1
- package/Gizmos/scaleGizmo.js +41 -41
- package/Gizmos/scaleGizmo.js.map +1 -1
- package/Helpers/environmentHelper.js +18 -18
- package/Helpers/environmentHelper.js.map +1 -1
- package/Helpers/textureDome.js +96 -96
- package/Helpers/textureDome.js.map +1 -1
- package/IAccessibilityTag.d.ts +2 -2
- package/Instrumentation/engineInstrumentation.js +21 -21
- package/Instrumentation/engineInstrumentation.js.map +1 -1
- package/Instrumentation/sceneInstrumentation.js +90 -90
- package/Instrumentation/sceneInstrumentation.js.map +1 -1
- package/Layers/effectLayer.js +48 -48
- package/Layers/effectLayer.js.map +1 -1
- package/Layers/glowLayer.js +32 -32
- package/Layers/glowLayer.js.map +1 -1
- package/Layers/highlightLayer.js +26 -26
- package/Layers/highlightLayer.js.map +1 -1
- package/Layers/layer.js +40 -40
- package/Layers/layer.js.map +1 -1
- package/LensFlares/lensFlare.js +15 -15
- package/LensFlares/lensFlare.js.map +1 -1
- package/LensFlares/lensFlareSystem.js +4 -4
- package/LensFlares/lensFlareSystem.js.map +1 -1
- package/Lights/Shadows/cascadedShadowGenerator.js +18 -18
- package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
- package/Lights/Shadows/shadowGenerator.js +115 -115
- package/Lights/Shadows/shadowGenerator.js.map +1 -1
- package/Lights/directionalLight.js +31 -31
- package/Lights/directionalLight.js.map +1 -1
- package/Lights/light.js +72 -72
- package/Lights/light.js.map +1 -1
- package/Lights/pointLight.js +18 -18
- package/Lights/pointLight.js.map +1 -1
- package/Lights/spotLight.js +30 -30
- package/Lights/spotLight.js.map +1 -1
- package/Loading/sceneLoader.d.ts +1 -1
- package/Materials/Background/backgroundMaterial.js +124 -124
- package/Materials/Background/backgroundMaterial.js.map +1 -1
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js +8 -8
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/lightBlock.js +14 -14
- package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js +9 -9
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/textureBlock.js +26 -26
- package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Input/inputBlock.js +34 -34
- package/Materials/Node/Blocks/Input/inputBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +14 -14
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/reflectionBlock.js +16 -16
- package/Materials/Node/Blocks/PBR/reflectionBlock.js.map +1 -1
- package/Materials/Node/Blocks/customBlock.js +7 -7
- package/Materials/Node/Blocks/customBlock.js.map +1 -1
- package/Materials/Node/Blocks/gradientBlock.js +13 -13
- package/Materials/Node/Blocks/gradientBlock.js.map +1 -1
- package/Materials/Node/Blocks/triPlanarBlock.js +30 -30
- package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +1 -1
- package/Materials/Node/nodeMaterial.js +60 -60
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/Node/nodeMaterialBlock.js +35 -35
- package/Materials/Node/nodeMaterialBlock.js.map +1 -1
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js +50 -50
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
- package/Materials/PBR/pbrAnisotropicConfiguration.js +5 -5
- package/Materials/PBR/pbrAnisotropicConfiguration.js.map +1 -1
- package/Materials/PBR/pbrBRDFConfiguration.js +4 -4
- package/Materials/PBR/pbrBRDFConfiguration.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.js +52 -52
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/PBR/pbrBaseSimpleMaterial.js +17 -17
- package/Materials/PBR/pbrBaseSimpleMaterial.js.map +1 -1
- package/Materials/PBR/pbrClearCoatConfiguration.js +5 -5
- package/Materials/PBR/pbrClearCoatConfiguration.js.map +1 -1
- package/Materials/PBR/pbrIridescenceConfiguration.js +5 -5
- package/Materials/PBR/pbrIridescenceConfiguration.js.map +1 -1
- package/Materials/PBR/pbrMaterial.js +209 -209
- package/Materials/PBR/pbrMaterial.js.map +1 -1
- package/Materials/PBR/pbrSheenConfiguration.js +5 -5
- package/Materials/PBR/pbrSheenConfiguration.js.map +1 -1
- package/Materials/PBR/pbrSpecularGlossinessMaterial.js +6 -6
- package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
- package/Materials/PBR/pbrSubSurfaceConfiguration.js +51 -51
- package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
- package/Materials/Textures/baseTexture.js +99 -99
- package/Materials/Textures/baseTexture.js.map +1 -1
- package/Materials/Textures/cubeTexture.js +61 -61
- package/Materials/Textures/cubeTexture.js.map +1 -1
- package/Materials/Textures/externalTexture.js +16 -16
- package/Materials/Textures/externalTexture.js.map +1 -1
- package/Materials/Textures/hdrCubeTexture.js +44 -44
- package/Materials/Textures/hdrCubeTexture.js.map +1 -1
- package/Materials/Textures/internalTexture.js +31 -31
- package/Materials/Textures/internalTexture.js.map +1 -1
- package/Materials/Textures/mirrorTexture.js +73 -73
- package/Materials/Textures/mirrorTexture.js.map +1 -1
- package/Materials/Textures/multiRenderTarget.js +47 -47
- package/Materials/Textures/multiRenderTarget.js.map +1 -1
- package/Materials/Textures/rawTexture2DArray.js +6 -6
- package/Materials/Textures/rawTexture2DArray.js.map +1 -1
- package/Materials/Textures/renderTargetTexture.js +142 -142
- package/Materials/Textures/renderTargetTexture.js.map +1 -1
- package/Materials/Textures/texture.d.ts +1 -1
- package/Materials/Textures/texture.js +26 -26
- package/Materials/Textures/texture.js.map +1 -1
- package/Materials/Textures/textureCreationOptions.d.ts +1 -1
- package/Materials/Textures/textureSampler.js +20 -20
- package/Materials/Textures/textureSampler.js.map +1 -1
- package/Materials/Textures/thinRenderTargetTexture.js +6 -6
- package/Materials/Textures/thinRenderTargetTexture.js.map +1 -1
- package/Materials/Textures/thinTexture.js +39 -39
- package/Materials/Textures/thinTexture.js.map +1 -1
- package/Materials/Textures/videoTexture.js +40 -40
- package/Materials/Textures/videoTexture.js.map +1 -1
- package/Materials/drawWrapper.js +6 -6
- package/Materials/drawWrapper.js.map +1 -1
- package/Materials/effect.js +18 -18
- package/Materials/effect.js.map +1 -1
- package/Materials/effectRenderer.js +9 -9
- package/Materials/effectRenderer.js.map +1 -1
- package/Materials/fresnelParameters.d.ts +2 -2
- package/Materials/fresnelParameters.js +13 -13
- package/Materials/fresnelParameters.js.map +1 -1
- package/Materials/material.detailMapConfiguration.js +5 -5
- package/Materials/material.detailMapConfiguration.js.map +1 -1
- package/Materials/material.js +223 -223
- package/Materials/material.js.map +1 -1
- package/Materials/materialPluginBase.js +5 -5
- package/Materials/materialPluginBase.js.map +1 -1
- package/Materials/materialPluginEvent.d.ts +14 -14
- package/Materials/materialPluginManager.d.ts +1 -1
- package/Materials/multiMaterial.js +16 -16
- package/Materials/multiMaterial.js.map +1 -1
- package/Materials/shadowDepthWrapper.js +14 -14
- package/Materials/shadowDepthWrapper.js.map +1 -1
- package/Materials/standardMaterial.js +100 -100
- package/Materials/standardMaterial.js.map +1 -1
- package/Materials/uniformBufferEffectCommonAccessor.js +3 -3
- package/Materials/uniformBufferEffectCommonAccessor.js.map +1 -1
- package/Maths/math.functions.js +2 -0
- package/Maths/math.functions.js.map +1 -1
- package/Maths/math.path.js +11 -11
- package/Maths/math.path.js.map +1 -1
- package/Maths/math.vector.d.ts +6 -7
- package/Maths/math.vector.js +48 -48
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/Builders/goldbergBuilder.d.ts +2 -2
- package/Meshes/Compression/dracoCompression.js +23 -23
- package/Meshes/Compression/dracoCompression.js.map +1 -1
- package/Meshes/Compression/meshoptCompression.js +9 -9
- package/Meshes/Compression/meshoptCompression.js.map +1 -1
- package/Meshes/abstractMesh.js +179 -179
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/geometry.js +32 -32
- package/Meshes/geometry.js.map +1 -1
- package/Meshes/goldbergMesh.d.ts +1 -1
- package/Meshes/linesMesh.js +3 -3
- package/Meshes/linesMesh.js.map +1 -1
- package/Meshes/mesh.js +165 -165
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/mesh.vertexData.js.map +1 -1
- package/Meshes/polygonMesh.js +5 -5
- package/Meshes/polygonMesh.js.map +1 -1
- package/Meshes/subMesh.js +59 -59
- package/Meshes/subMesh.js.map +1 -1
- package/Meshes/transformNode.js +52 -52
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/PerformanceViewer/performanceViewerCollectionStrategies.d.ts +1 -1
- package/Misc/PerformanceViewer/performanceViewerCollector.js +12 -12
- package/Misc/PerformanceViewer/performanceViewerCollector.js.map +1 -1
- package/Misc/arrayTools.d.ts +1 -1
- package/Misc/copyTextureToTexture.js +3 -3
- package/Misc/copyTextureToTexture.js.map +1 -1
- package/Misc/coroutine.d.ts +5 -5
- package/Misc/deferred.js +9 -9
- package/Misc/deferred.js.map +1 -1
- package/Misc/depthReducer.js +7 -7
- package/Misc/depthReducer.js.map +1 -1
- package/Misc/environmentTextureTools.d.ts +1 -1
- package/Misc/error.d.ts +1 -1
- package/Misc/fileTools.d.ts +5 -5
- package/Misc/filesInput.js +6 -6
- package/Misc/filesInput.js.map +1 -1
- package/Misc/khronosTextureContainer2.js +9 -9
- package/Misc/khronosTextureContainer2.js.map +1 -1
- package/Misc/observable.js +12 -12
- package/Misc/observable.js.map +1 -1
- package/Misc/perfCounter.js +16 -16
- package/Misc/perfCounter.js.map +1 -1
- package/Misc/sceneOptimizer.js +76 -76
- package/Misc/sceneOptimizer.js.map +1 -1
- package/Misc/stringDictionary.d.ts +1 -1
- package/Misc/trajectoryClassifier.js +67 -67
- package/Misc/trajectoryClassifier.js.map +1 -1
- package/Misc/videoRecorder.js +15 -15
- package/Misc/videoRecorder.js.map +1 -1
- package/Misc/virtualJoystick.js +12 -12
- package/Misc/virtualJoystick.js.map +1 -1
- package/Morph/morphTarget.js +28 -28
- package/Morph/morphTarget.js.map +1 -1
- package/Morph/morphTargetManager.js +18 -18
- package/Morph/morphTargetManager.js.map +1 -1
- package/Offline/database.js +12 -12
- package/Offline/database.js.map +1 -1
- package/Particles/EmitterTypes/coneParticleEmitter.js +25 -25
- package/Particles/EmitterTypes/coneParticleEmitter.js.map +1 -1
- package/Particles/EmitterTypes/meshParticleEmitter.js +20 -20
- package/Particles/EmitterTypes/meshParticleEmitter.js.map +1 -1
- package/Particles/baseParticleSystem.js +232 -232
- package/Particles/baseParticleSystem.js.map +1 -1
- package/Particles/cloudPoint.js +9 -9
- package/Particles/cloudPoint.js.map +1 -1
- package/Particles/gpuParticleSystem.js +123 -123
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/particleSystem.js +102 -102
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/pointsCloudSystem.js +18 -18
- package/Particles/pointsCloudSystem.js.map +1 -1
- package/Particles/solidParticle.js +23 -23
- package/Particles/solidParticle.js.map +1 -1
- package/Physics/v1/physicsEngine.js +14 -14
- package/Physics/v1/physicsEngine.js.map +1 -1
- package/Physics/v1/physicsImpostor.js +149 -149
- package/Physics/v1/physicsImpostor.js.map +1 -1
- package/Physics/v2/physicsEngine.js +14 -14
- package/Physics/v2/physicsEngine.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +129 -129
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js +68 -68
- package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.js +6 -6
- package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js +226 -225
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js +10 -10
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js.map +1 -1
- package/PostProcesses/anaglyphPostProcess.js +7 -7
- package/PostProcesses/anaglyphPostProcess.js.map +1 -1
- package/PostProcesses/blackAndWhitePostProcess.js +7 -7
- package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
- package/PostProcesses/bloomEffect.js +28 -28
- package/PostProcesses/bloomEffect.js.map +1 -1
- package/PostProcesses/bloomMergePostProcess.js +7 -7
- package/PostProcesses/bloomMergePostProcess.js.map +1 -1
- package/PostProcesses/blurPostProcess.js +32 -32
- package/PostProcesses/blurPostProcess.js.map +1 -1
- package/PostProcesses/chromaticAberrationPostProcess.js +7 -7
- package/PostProcesses/chromaticAberrationPostProcess.js.map +1 -1
- package/PostProcesses/circleOfConfusionPostProcess.js +7 -7
- package/PostProcesses/circleOfConfusionPostProcess.js.map +1 -1
- package/PostProcesses/colorCorrectionPostProcess.js +7 -7
- package/PostProcesses/colorCorrectionPostProcess.js.map +1 -1
- package/PostProcesses/convolutionPostProcess.js +7 -7
- package/PostProcesses/convolutionPostProcess.js.map +1 -1
- package/PostProcesses/depthOfFieldBlurPostProcess.js +7 -7
- package/PostProcesses/depthOfFieldBlurPostProcess.js.map +1 -1
- package/PostProcesses/depthOfFieldEffect.js +36 -36
- package/PostProcesses/depthOfFieldEffect.js.map +1 -1
- package/PostProcesses/depthOfFieldMergePostProcess.js +7 -7
- package/PostProcesses/depthOfFieldMergePostProcess.js.map +1 -1
- package/PostProcesses/extractHighlightsPostProcess.js +7 -7
- package/PostProcesses/extractHighlightsPostProcess.js.map +1 -1
- package/PostProcesses/filterPostProcess.js +7 -7
- package/PostProcesses/filterPostProcess.js.map +1 -1
- package/PostProcesses/grainPostProcess.js +7 -7
- package/PostProcesses/grainPostProcess.js.map +1 -1
- package/PostProcesses/imageProcessingPostProcess.js +42 -42
- package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
- package/PostProcesses/motionBlurPostProcess.js +41 -41
- package/PostProcesses/motionBlurPostProcess.js.map +1 -1
- package/PostProcesses/passPostProcess.js +15 -15
- package/PostProcesses/passPostProcess.js.map +1 -1
- package/PostProcesses/postProcess.d.ts +2 -2
- package/PostProcesses/postProcess.js +123 -123
- package/PostProcesses/postProcess.js.map +1 -1
- package/PostProcesses/refractionPostProcess.js +21 -21
- package/PostProcesses/refractionPostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceCurvaturePostProcess.js +7 -7
- package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceReflectionPostProcess.js +19 -19
- package/PostProcesses/screenSpaceReflectionPostProcess.js.map +1 -1
- package/PostProcesses/sharpenPostProcess.js +7 -7
- package/PostProcesses/sharpenPostProcess.js.map +1 -1
- package/PostProcesses/stereoscopicInterlacePostProcess.js +14 -14
- package/PostProcesses/stereoscopicInterlacePostProcess.js.map +1 -1
- package/PostProcesses/tonemapPostProcess.js +7 -7
- package/PostProcesses/tonemapPostProcess.js.map +1 -1
- package/PostProcesses/volumetricLightScatteringPostProcess.js +11 -11
- package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
- package/PostProcesses/vrDistortionCorrectionPostProcess.js +7 -7
- package/PostProcesses/vrDistortionCorrectionPostProcess.js.map +1 -1
- package/Rendering/depthPeelingRenderer.js +36 -36
- package/Rendering/depthPeelingRenderer.js.map +1 -1
- package/Rendering/depthRenderer.js +8 -8
- package/Rendering/depthRenderer.js.map +1 -1
- package/Rendering/edgesRenderer.js +34 -34
- package/Rendering/edgesRenderer.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderer.js +8 -8
- package/Rendering/fluidRenderer/fluidRenderer.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.js +3 -3
- package/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingObject.js +19 -19
- package/Rendering/fluidRenderer/fluidRenderingObject.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js +12 -12
- package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js +18 -18
- package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.js +68 -68
- package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingTextures.js +29 -29
- package/Rendering/fluidRenderer/fluidRenderingTextures.js.map +1 -1
- package/Rendering/geometryBufferRenderer.js +44 -44
- package/Rendering/geometryBufferRenderer.js.map +1 -1
- package/Rendering/prePassRenderer.js +51 -51
- package/Rendering/prePassRenderer.js.map +1 -1
- package/Rendering/renderingGroup.js +25 -25
- package/Rendering/renderingGroup.js.map +1 -1
- package/Rendering/renderingManager.js +21 -21
- package/Rendering/renderingManager.js.map +1 -1
- package/Rendering/subSurfaceConfiguration.js +18 -18
- package/Rendering/subSurfaceConfiguration.js.map +1 -1
- package/Rendering/utilityLayerRenderer.js +76 -76
- package/Rendering/utilityLayerRenderer.js.map +1 -1
- package/Sprites/sprite.js +16 -16
- package/Sprites/sprite.js.map +1 -1
- package/Sprites/spriteManager.js +81 -81
- package/Sprites/spriteManager.js.map +1 -1
- package/Sprites/spriteMap.js +32 -32
- package/Sprites/spriteMap.js.map +1 -1
- package/Sprites/spriteRenderer.js +6 -6
- package/Sprites/spriteRenderer.js.map +1 -1
- package/Sprites/thinSprite.js +22 -22
- package/Sprites/thinSprite.js.map +1 -1
- package/States/stencilStateComposer.js +10 -10
- package/States/stencilStateComposer.js.map +1 -1
- package/XR/features/WebXRAnchorSystem.js +7 -7
- package/XR/features/WebXRAnchorSystem.js.map +1 -1
- package/XR/features/WebXRControllerMovement.d.ts +3 -3
- package/XR/features/WebXRControllerMovement.js +97 -97
- package/XR/features/WebXRControllerMovement.js.map +1 -1
- package/XR/features/WebXRControllerPhysics.js +24 -24
- package/XR/features/WebXRControllerPhysics.js.map +1 -1
- package/XR/features/WebXRControllerTeleportation.js +26 -26
- package/XR/features/WebXRControllerTeleportation.js.map +1 -1
- package/XR/features/WebXRDOMOverlay.d.ts +1 -1
- package/XR/features/WebXRFeaturePointSystem.js +6 -6
- package/XR/features/WebXRFeaturePointSystem.js.map +1 -1
- package/XR/features/WebXRHandTracking.d.ts +1 -1
- package/XR/features/WebXRHandTracking.js +95 -95
- package/XR/features/WebXRHandTracking.js.map +1 -1
- package/XR/features/WebXRWalkingLocomotion.js +21 -21
- package/XR/features/WebXRWalkingLocomotion.js.map +1 -1
- package/XR/motionController/webXRAbstractMotionController.d.ts +3 -3
- package/XR/motionController/webXRMotionControllerManager.d.ts +1 -1
- package/XR/native/nativeXRFrame.js +3 -3
- package/XR/native/nativeXRFrame.js.map +1 -1
- package/XR/webXRFeaturesManager.d.ts +1 -1
- package/XR/webXRLayerWrapper.d.ts +2 -2
- package/XR/webXRLayerWrapper.js +17 -17
- package/XR/webXRLayerWrapper.js.map +1 -1
- package/abstractScene.d.ts +2 -2
- package/node.d.ts +1 -1
- package/node.js +71 -71
- package/node.js.map +1 -1
- package/package.json +1 -1
- package/scene.js +777 -777
- package/scene.js.map +1 -1
- package/sceneComponent.d.ts +12 -12
- package/types.d.ts +11 -11
|
@@ -11,238 +11,6 @@ import "../Engines/Extensions/engine.dynamicBuffer.js";
|
|
|
11
11
|
* @example https://doc.babylonjs.com/features/featuresDeepDive/particles/particle_system/particle_system_intro
|
|
12
12
|
*/
|
|
13
13
|
export class BaseParticleSystem {
|
|
14
|
-
/**
|
|
15
|
-
* Instantiates a particle system.
|
|
16
|
-
* Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.
|
|
17
|
-
* @param name The name of the particle system
|
|
18
|
-
*/
|
|
19
|
-
constructor(name) {
|
|
20
|
-
/**
|
|
21
|
-
* List of animations used by the particle system.
|
|
22
|
-
*/
|
|
23
|
-
this.animations = [];
|
|
24
|
-
/**
|
|
25
|
-
* The rendering group used by the Particle system to chose when to render.
|
|
26
|
-
*/
|
|
27
|
-
this.renderingGroupId = 0;
|
|
28
|
-
/**
|
|
29
|
-
* The emitter represents the Mesh or position we are attaching the particle system to.
|
|
30
|
-
*/
|
|
31
|
-
this.emitter = Vector3.Zero();
|
|
32
|
-
/**
|
|
33
|
-
* The maximum number of particles to emit per frame
|
|
34
|
-
*/
|
|
35
|
-
this.emitRate = 10;
|
|
36
|
-
/**
|
|
37
|
-
* If you want to launch only a few particles at once, that can be done, as well.
|
|
38
|
-
*/
|
|
39
|
-
this.manualEmitCount = -1;
|
|
40
|
-
/**
|
|
41
|
-
* The overall motion speed (0.01 is default update speed, faster updates = faster animation)
|
|
42
|
-
*/
|
|
43
|
-
this.updateSpeed = 0.01;
|
|
44
|
-
/**
|
|
45
|
-
* The amount of time the particle system is running (depends of the overall update speed).
|
|
46
|
-
*/
|
|
47
|
-
this.targetStopDuration = 0;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies whether the particle system will be disposed once it reaches the end of the animation.
|
|
50
|
-
*/
|
|
51
|
-
this.disposeOnStop = false;
|
|
52
|
-
/**
|
|
53
|
-
* Minimum power of emitting particles.
|
|
54
|
-
*/
|
|
55
|
-
this.minEmitPower = 1;
|
|
56
|
-
/**
|
|
57
|
-
* Maximum power of emitting particles.
|
|
58
|
-
*/
|
|
59
|
-
this.maxEmitPower = 1;
|
|
60
|
-
/**
|
|
61
|
-
* Minimum life time of emitting particles.
|
|
62
|
-
*/
|
|
63
|
-
this.minLifeTime = 1;
|
|
64
|
-
/**
|
|
65
|
-
* Maximum life time of emitting particles.
|
|
66
|
-
*/
|
|
67
|
-
this.maxLifeTime = 1;
|
|
68
|
-
/**
|
|
69
|
-
* Minimum Size of emitting particles.
|
|
70
|
-
*/
|
|
71
|
-
this.minSize = 1;
|
|
72
|
-
/**
|
|
73
|
-
* Maximum Size of emitting particles.
|
|
74
|
-
*/
|
|
75
|
-
this.maxSize = 1;
|
|
76
|
-
/**
|
|
77
|
-
* Minimum scale of emitting particles on X axis.
|
|
78
|
-
*/
|
|
79
|
-
this.minScaleX = 1;
|
|
80
|
-
/**
|
|
81
|
-
* Maximum scale of emitting particles on X axis.
|
|
82
|
-
*/
|
|
83
|
-
this.maxScaleX = 1;
|
|
84
|
-
/**
|
|
85
|
-
* Minimum scale of emitting particles on Y axis.
|
|
86
|
-
*/
|
|
87
|
-
this.minScaleY = 1;
|
|
88
|
-
/**
|
|
89
|
-
* Maximum scale of emitting particles on Y axis.
|
|
90
|
-
*/
|
|
91
|
-
this.maxScaleY = 1;
|
|
92
|
-
/**
|
|
93
|
-
* Gets or sets the minimal initial rotation in radians.
|
|
94
|
-
*/
|
|
95
|
-
this.minInitialRotation = 0;
|
|
96
|
-
/**
|
|
97
|
-
* Gets or sets the maximal initial rotation in radians.
|
|
98
|
-
*/
|
|
99
|
-
this.maxInitialRotation = 0;
|
|
100
|
-
/**
|
|
101
|
-
* Minimum angular speed of emitting particles (Z-axis rotation for each particle).
|
|
102
|
-
*/
|
|
103
|
-
this.minAngularSpeed = 0;
|
|
104
|
-
/**
|
|
105
|
-
* Maximum angular speed of emitting particles (Z-axis rotation for each particle).
|
|
106
|
-
*/
|
|
107
|
-
this.maxAngularSpeed = 0;
|
|
108
|
-
/**
|
|
109
|
-
* The layer mask we are rendering the particles through.
|
|
110
|
-
*/
|
|
111
|
-
this.layerMask = 0x0fffffff;
|
|
112
|
-
/**
|
|
113
|
-
* This can help using your own shader to render the particle system.
|
|
114
|
-
* The according effect will be created
|
|
115
|
-
*/
|
|
116
|
-
this.customShader = null;
|
|
117
|
-
/**
|
|
118
|
-
* By default particle system starts as soon as they are created. This prevents the
|
|
119
|
-
* automatic start to happen and let you decide when to start emitting particles.
|
|
120
|
-
*/
|
|
121
|
-
this.preventAutoStart = false;
|
|
122
|
-
/** @internal */
|
|
123
|
-
this._wasDispatched = false;
|
|
124
|
-
this._rootUrl = "";
|
|
125
|
-
/** Gets or sets the strength to apply to the noise value (default is (10, 10, 10)) */
|
|
126
|
-
this.noiseStrength = new Vector3(10, 10, 10);
|
|
127
|
-
/**
|
|
128
|
-
* Callback triggered when the particle animation is ending.
|
|
129
|
-
*/
|
|
130
|
-
this.onAnimationEnd = null;
|
|
131
|
-
/**
|
|
132
|
-
* Blend mode use to render the particle, it can be either ParticleSystem.BLENDMODE_ONEONE or ParticleSystem.BLENDMODE_STANDARD.
|
|
133
|
-
*/
|
|
134
|
-
this.blendMode = BaseParticleSystem.BLENDMODE_ONEONE;
|
|
135
|
-
/**
|
|
136
|
-
* Forces the particle to write their depth information to the depth buffer. This can help preventing other draw calls
|
|
137
|
-
* to override the particles.
|
|
138
|
-
*/
|
|
139
|
-
this.forceDepthWrite = false;
|
|
140
|
-
/** Gets or sets a value indicating how many cycles (or frames) must be executed before first rendering (this value has to be set before starting the system). Default is 0 */
|
|
141
|
-
this.preWarmCycles = 0;
|
|
142
|
-
/** Gets or sets a value indicating the time step multiplier to use in pre-warm mode (default is 1) */
|
|
143
|
-
this.preWarmStepOffset = 1;
|
|
144
|
-
/**
|
|
145
|
-
* If using a spritesheet (isAnimationSheetEnabled) defines the speed of the sprite loop (default is 1 meaning the animation will play once during the entire particle lifetime)
|
|
146
|
-
*/
|
|
147
|
-
this.spriteCellChangeSpeed = 1;
|
|
148
|
-
/**
|
|
149
|
-
* If using a spritesheet (isAnimationSheetEnabled) defines the first sprite cell to display
|
|
150
|
-
*/
|
|
151
|
-
this.startSpriteCellID = 0;
|
|
152
|
-
/**
|
|
153
|
-
* If using a spritesheet (isAnimationSheetEnabled) defines the last sprite cell to display
|
|
154
|
-
*/
|
|
155
|
-
this.endSpriteCellID = 0;
|
|
156
|
-
/**
|
|
157
|
-
* If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell width to use
|
|
158
|
-
*/
|
|
159
|
-
this.spriteCellWidth = 0;
|
|
160
|
-
/**
|
|
161
|
-
* If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell height to use
|
|
162
|
-
*/
|
|
163
|
-
this.spriteCellHeight = 0;
|
|
164
|
-
/**
|
|
165
|
-
* If using a spritesheet (isAnimationSheetEnabled), defines wether the sprite animation is looping
|
|
166
|
-
*/
|
|
167
|
-
this.spriteCellLoop = true;
|
|
168
|
-
/**
|
|
169
|
-
* This allows the system to random pick the start cell ID between startSpriteCellID and endSpriteCellID
|
|
170
|
-
*/
|
|
171
|
-
this.spriteRandomStartCell = false;
|
|
172
|
-
/** Gets or sets a Vector2 used to move the pivot (by default (0,0)) */
|
|
173
|
-
this.translationPivot = new Vector2(0, 0);
|
|
174
|
-
/**
|
|
175
|
-
* Gets or sets a boolean indicating that hosted animations (in the system.animations array) must be started when system.start() is called
|
|
176
|
-
*/
|
|
177
|
-
this.beginAnimationOnStart = false;
|
|
178
|
-
/**
|
|
179
|
-
* Gets or sets the frame to start the animation from when beginAnimationOnStart is true
|
|
180
|
-
*/
|
|
181
|
-
this.beginAnimationFrom = 0;
|
|
182
|
-
/**
|
|
183
|
-
* Gets or sets the frame to end the animation on when beginAnimationOnStart is true
|
|
184
|
-
*/
|
|
185
|
-
this.beginAnimationTo = 60;
|
|
186
|
-
/**
|
|
187
|
-
* Gets or sets a boolean indicating if animations must loop when beginAnimationOnStart is true
|
|
188
|
-
*/
|
|
189
|
-
this.beginAnimationLoop = false;
|
|
190
|
-
/**
|
|
191
|
-
* Gets or sets a world offset applied to all particles
|
|
192
|
-
*/
|
|
193
|
-
this.worldOffset = new Vector3(0, 0, 0);
|
|
194
|
-
this._useLogarithmicDepth = false;
|
|
195
|
-
/**
|
|
196
|
-
* You can use gravity if you want to give an orientation to your particles.
|
|
197
|
-
*/
|
|
198
|
-
this.gravity = Vector3.Zero();
|
|
199
|
-
this._colorGradients = null;
|
|
200
|
-
this._sizeGradients = null;
|
|
201
|
-
this._lifeTimeGradients = null;
|
|
202
|
-
this._angularSpeedGradients = null;
|
|
203
|
-
this._velocityGradients = null;
|
|
204
|
-
this._limitVelocityGradients = null;
|
|
205
|
-
this._dragGradients = null;
|
|
206
|
-
this._emitRateGradients = null;
|
|
207
|
-
this._startSizeGradients = null;
|
|
208
|
-
this._rampGradients = null;
|
|
209
|
-
this._colorRemapGradients = null;
|
|
210
|
-
this._alphaRemapGradients = null;
|
|
211
|
-
/**
|
|
212
|
-
* Defines the delay in milliseconds before starting the system (0 by default)
|
|
213
|
-
*/
|
|
214
|
-
this.startDelay = 0;
|
|
215
|
-
/** Gets or sets a value indicating the damping to apply if the limit velocity factor is reached */
|
|
216
|
-
this.limitVelocityDamping = 0.4;
|
|
217
|
-
/**
|
|
218
|
-
* Random color of each particle after it has been emitted, between color1 and color2 vectors
|
|
219
|
-
*/
|
|
220
|
-
this.color1 = new Color4(1.0, 1.0, 1.0, 1.0);
|
|
221
|
-
/**
|
|
222
|
-
* Random color of each particle after it has been emitted, between color1 and color2 vectors
|
|
223
|
-
*/
|
|
224
|
-
this.color2 = new Color4(1.0, 1.0, 1.0, 1.0);
|
|
225
|
-
/**
|
|
226
|
-
* Color the particle will have at the end of its lifetime
|
|
227
|
-
*/
|
|
228
|
-
this.colorDead = new Color4(0, 0, 0, 1.0);
|
|
229
|
-
/**
|
|
230
|
-
* An optional mask to filter some colors out of the texture, or filter a part of the alpha channel
|
|
231
|
-
*/
|
|
232
|
-
this.textureMask = new Color4(1.0, 1.0, 1.0, 1.0);
|
|
233
|
-
/** @internal */
|
|
234
|
-
this._isSubEmitter = false;
|
|
235
|
-
/** @internal */
|
|
236
|
-
this._billboardMode = 7;
|
|
237
|
-
/** @internal */
|
|
238
|
-
this._isBillboardBased = true;
|
|
239
|
-
/**
|
|
240
|
-
* Local cache of defines for image processing.
|
|
241
|
-
*/
|
|
242
|
-
this._imageProcessingConfigurationDefines = new ImageProcessingConfigurationDefines();
|
|
243
|
-
this.id = name;
|
|
244
|
-
this.name = name;
|
|
245
|
-
}
|
|
246
14
|
/**
|
|
247
15
|
* Gets or sets a texture used to add random noise to particle positions
|
|
248
16
|
*/
|
|
@@ -517,6 +285,238 @@ export class BaseParticleSystem {
|
|
|
517
285
|
}
|
|
518
286
|
return this;
|
|
519
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Instantiates a particle system.
|
|
290
|
+
* Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.
|
|
291
|
+
* @param name The name of the particle system
|
|
292
|
+
*/
|
|
293
|
+
constructor(name) {
|
|
294
|
+
/**
|
|
295
|
+
* List of animations used by the particle system.
|
|
296
|
+
*/
|
|
297
|
+
this.animations = [];
|
|
298
|
+
/**
|
|
299
|
+
* The rendering group used by the Particle system to chose when to render.
|
|
300
|
+
*/
|
|
301
|
+
this.renderingGroupId = 0;
|
|
302
|
+
/**
|
|
303
|
+
* The emitter represents the Mesh or position we are attaching the particle system to.
|
|
304
|
+
*/
|
|
305
|
+
this.emitter = Vector3.Zero();
|
|
306
|
+
/**
|
|
307
|
+
* The maximum number of particles to emit per frame
|
|
308
|
+
*/
|
|
309
|
+
this.emitRate = 10;
|
|
310
|
+
/**
|
|
311
|
+
* If you want to launch only a few particles at once, that can be done, as well.
|
|
312
|
+
*/
|
|
313
|
+
this.manualEmitCount = -1;
|
|
314
|
+
/**
|
|
315
|
+
* The overall motion speed (0.01 is default update speed, faster updates = faster animation)
|
|
316
|
+
*/
|
|
317
|
+
this.updateSpeed = 0.01;
|
|
318
|
+
/**
|
|
319
|
+
* The amount of time the particle system is running (depends of the overall update speed).
|
|
320
|
+
*/
|
|
321
|
+
this.targetStopDuration = 0;
|
|
322
|
+
/**
|
|
323
|
+
* Specifies whether the particle system will be disposed once it reaches the end of the animation.
|
|
324
|
+
*/
|
|
325
|
+
this.disposeOnStop = false;
|
|
326
|
+
/**
|
|
327
|
+
* Minimum power of emitting particles.
|
|
328
|
+
*/
|
|
329
|
+
this.minEmitPower = 1;
|
|
330
|
+
/**
|
|
331
|
+
* Maximum power of emitting particles.
|
|
332
|
+
*/
|
|
333
|
+
this.maxEmitPower = 1;
|
|
334
|
+
/**
|
|
335
|
+
* Minimum life time of emitting particles.
|
|
336
|
+
*/
|
|
337
|
+
this.minLifeTime = 1;
|
|
338
|
+
/**
|
|
339
|
+
* Maximum life time of emitting particles.
|
|
340
|
+
*/
|
|
341
|
+
this.maxLifeTime = 1;
|
|
342
|
+
/**
|
|
343
|
+
* Minimum Size of emitting particles.
|
|
344
|
+
*/
|
|
345
|
+
this.minSize = 1;
|
|
346
|
+
/**
|
|
347
|
+
* Maximum Size of emitting particles.
|
|
348
|
+
*/
|
|
349
|
+
this.maxSize = 1;
|
|
350
|
+
/**
|
|
351
|
+
* Minimum scale of emitting particles on X axis.
|
|
352
|
+
*/
|
|
353
|
+
this.minScaleX = 1;
|
|
354
|
+
/**
|
|
355
|
+
* Maximum scale of emitting particles on X axis.
|
|
356
|
+
*/
|
|
357
|
+
this.maxScaleX = 1;
|
|
358
|
+
/**
|
|
359
|
+
* Minimum scale of emitting particles on Y axis.
|
|
360
|
+
*/
|
|
361
|
+
this.minScaleY = 1;
|
|
362
|
+
/**
|
|
363
|
+
* Maximum scale of emitting particles on Y axis.
|
|
364
|
+
*/
|
|
365
|
+
this.maxScaleY = 1;
|
|
366
|
+
/**
|
|
367
|
+
* Gets or sets the minimal initial rotation in radians.
|
|
368
|
+
*/
|
|
369
|
+
this.minInitialRotation = 0;
|
|
370
|
+
/**
|
|
371
|
+
* Gets or sets the maximal initial rotation in radians.
|
|
372
|
+
*/
|
|
373
|
+
this.maxInitialRotation = 0;
|
|
374
|
+
/**
|
|
375
|
+
* Minimum angular speed of emitting particles (Z-axis rotation for each particle).
|
|
376
|
+
*/
|
|
377
|
+
this.minAngularSpeed = 0;
|
|
378
|
+
/**
|
|
379
|
+
* Maximum angular speed of emitting particles (Z-axis rotation for each particle).
|
|
380
|
+
*/
|
|
381
|
+
this.maxAngularSpeed = 0;
|
|
382
|
+
/**
|
|
383
|
+
* The layer mask we are rendering the particles through.
|
|
384
|
+
*/
|
|
385
|
+
this.layerMask = 0x0fffffff;
|
|
386
|
+
/**
|
|
387
|
+
* This can help using your own shader to render the particle system.
|
|
388
|
+
* The according effect will be created
|
|
389
|
+
*/
|
|
390
|
+
this.customShader = null;
|
|
391
|
+
/**
|
|
392
|
+
* By default particle system starts as soon as they are created. This prevents the
|
|
393
|
+
* automatic start to happen and let you decide when to start emitting particles.
|
|
394
|
+
*/
|
|
395
|
+
this.preventAutoStart = false;
|
|
396
|
+
/** @internal */
|
|
397
|
+
this._wasDispatched = false;
|
|
398
|
+
this._rootUrl = "";
|
|
399
|
+
/** Gets or sets the strength to apply to the noise value (default is (10, 10, 10)) */
|
|
400
|
+
this.noiseStrength = new Vector3(10, 10, 10);
|
|
401
|
+
/**
|
|
402
|
+
* Callback triggered when the particle animation is ending.
|
|
403
|
+
*/
|
|
404
|
+
this.onAnimationEnd = null;
|
|
405
|
+
/**
|
|
406
|
+
* Blend mode use to render the particle, it can be either ParticleSystem.BLENDMODE_ONEONE or ParticleSystem.BLENDMODE_STANDARD.
|
|
407
|
+
*/
|
|
408
|
+
this.blendMode = BaseParticleSystem.BLENDMODE_ONEONE;
|
|
409
|
+
/**
|
|
410
|
+
* Forces the particle to write their depth information to the depth buffer. This can help preventing other draw calls
|
|
411
|
+
* to override the particles.
|
|
412
|
+
*/
|
|
413
|
+
this.forceDepthWrite = false;
|
|
414
|
+
/** Gets or sets a value indicating how many cycles (or frames) must be executed before first rendering (this value has to be set before starting the system). Default is 0 */
|
|
415
|
+
this.preWarmCycles = 0;
|
|
416
|
+
/** Gets or sets a value indicating the time step multiplier to use in pre-warm mode (default is 1) */
|
|
417
|
+
this.preWarmStepOffset = 1;
|
|
418
|
+
/**
|
|
419
|
+
* If using a spritesheet (isAnimationSheetEnabled) defines the speed of the sprite loop (default is 1 meaning the animation will play once during the entire particle lifetime)
|
|
420
|
+
*/
|
|
421
|
+
this.spriteCellChangeSpeed = 1;
|
|
422
|
+
/**
|
|
423
|
+
* If using a spritesheet (isAnimationSheetEnabled) defines the first sprite cell to display
|
|
424
|
+
*/
|
|
425
|
+
this.startSpriteCellID = 0;
|
|
426
|
+
/**
|
|
427
|
+
* If using a spritesheet (isAnimationSheetEnabled) defines the last sprite cell to display
|
|
428
|
+
*/
|
|
429
|
+
this.endSpriteCellID = 0;
|
|
430
|
+
/**
|
|
431
|
+
* If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell width to use
|
|
432
|
+
*/
|
|
433
|
+
this.spriteCellWidth = 0;
|
|
434
|
+
/**
|
|
435
|
+
* If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell height to use
|
|
436
|
+
*/
|
|
437
|
+
this.spriteCellHeight = 0;
|
|
438
|
+
/**
|
|
439
|
+
* If using a spritesheet (isAnimationSheetEnabled), defines wether the sprite animation is looping
|
|
440
|
+
*/
|
|
441
|
+
this.spriteCellLoop = true;
|
|
442
|
+
/**
|
|
443
|
+
* This allows the system to random pick the start cell ID between startSpriteCellID and endSpriteCellID
|
|
444
|
+
*/
|
|
445
|
+
this.spriteRandomStartCell = false;
|
|
446
|
+
/** Gets or sets a Vector2 used to move the pivot (by default (0,0)) */
|
|
447
|
+
this.translationPivot = new Vector2(0, 0);
|
|
448
|
+
/**
|
|
449
|
+
* Gets or sets a boolean indicating that hosted animations (in the system.animations array) must be started when system.start() is called
|
|
450
|
+
*/
|
|
451
|
+
this.beginAnimationOnStart = false;
|
|
452
|
+
/**
|
|
453
|
+
* Gets or sets the frame to start the animation from when beginAnimationOnStart is true
|
|
454
|
+
*/
|
|
455
|
+
this.beginAnimationFrom = 0;
|
|
456
|
+
/**
|
|
457
|
+
* Gets or sets the frame to end the animation on when beginAnimationOnStart is true
|
|
458
|
+
*/
|
|
459
|
+
this.beginAnimationTo = 60;
|
|
460
|
+
/**
|
|
461
|
+
* Gets or sets a boolean indicating if animations must loop when beginAnimationOnStart is true
|
|
462
|
+
*/
|
|
463
|
+
this.beginAnimationLoop = false;
|
|
464
|
+
/**
|
|
465
|
+
* Gets or sets a world offset applied to all particles
|
|
466
|
+
*/
|
|
467
|
+
this.worldOffset = new Vector3(0, 0, 0);
|
|
468
|
+
this._useLogarithmicDepth = false;
|
|
469
|
+
/**
|
|
470
|
+
* You can use gravity if you want to give an orientation to your particles.
|
|
471
|
+
*/
|
|
472
|
+
this.gravity = Vector3.Zero();
|
|
473
|
+
this._colorGradients = null;
|
|
474
|
+
this._sizeGradients = null;
|
|
475
|
+
this._lifeTimeGradients = null;
|
|
476
|
+
this._angularSpeedGradients = null;
|
|
477
|
+
this._velocityGradients = null;
|
|
478
|
+
this._limitVelocityGradients = null;
|
|
479
|
+
this._dragGradients = null;
|
|
480
|
+
this._emitRateGradients = null;
|
|
481
|
+
this._startSizeGradients = null;
|
|
482
|
+
this._rampGradients = null;
|
|
483
|
+
this._colorRemapGradients = null;
|
|
484
|
+
this._alphaRemapGradients = null;
|
|
485
|
+
/**
|
|
486
|
+
* Defines the delay in milliseconds before starting the system (0 by default)
|
|
487
|
+
*/
|
|
488
|
+
this.startDelay = 0;
|
|
489
|
+
/** Gets or sets a value indicating the damping to apply if the limit velocity factor is reached */
|
|
490
|
+
this.limitVelocityDamping = 0.4;
|
|
491
|
+
/**
|
|
492
|
+
* Random color of each particle after it has been emitted, between color1 and color2 vectors
|
|
493
|
+
*/
|
|
494
|
+
this.color1 = new Color4(1.0, 1.0, 1.0, 1.0);
|
|
495
|
+
/**
|
|
496
|
+
* Random color of each particle after it has been emitted, between color1 and color2 vectors
|
|
497
|
+
*/
|
|
498
|
+
this.color2 = new Color4(1.0, 1.0, 1.0, 1.0);
|
|
499
|
+
/**
|
|
500
|
+
* Color the particle will have at the end of its lifetime
|
|
501
|
+
*/
|
|
502
|
+
this.colorDead = new Color4(0, 0, 0, 1.0);
|
|
503
|
+
/**
|
|
504
|
+
* An optional mask to filter some colors out of the texture, or filter a part of the alpha channel
|
|
505
|
+
*/
|
|
506
|
+
this.textureMask = new Color4(1.0, 1.0, 1.0, 1.0);
|
|
507
|
+
/** @internal */
|
|
508
|
+
this._isSubEmitter = false;
|
|
509
|
+
/** @internal */
|
|
510
|
+
this._billboardMode = 7;
|
|
511
|
+
/** @internal */
|
|
512
|
+
this._isBillboardBased = true;
|
|
513
|
+
/**
|
|
514
|
+
* Local cache of defines for image processing.
|
|
515
|
+
*/
|
|
516
|
+
this._imageProcessingConfigurationDefines = new ImageProcessingConfigurationDefines();
|
|
517
|
+
this.id = name;
|
|
518
|
+
this.name = name;
|
|
519
|
+
}
|
|
520
520
|
/**
|
|
521
521
|
* Creates a Point Emitter for the particle system (emits directly from the emitter position)
|
|
522
522
|
* @param direction1 Particles are emitted between the direction1 and direction2 from within the box
|