@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.
Files changed (525) hide show
  1. package/Actions/condition.js +23 -23
  2. package/Actions/condition.js.map +1 -1
  3. package/Animations/animatable.js +48 -48
  4. package/Animations/animatable.js.map +1 -1
  5. package/Animations/animation.js +53 -53
  6. package/Animations/animation.js.map +1 -1
  7. package/Animations/animationGroup.js +53 -53
  8. package/Animations/animationGroup.js.map +1 -1
  9. package/Animations/runtimeAnimation.js +36 -36
  10. package/Animations/runtimeAnimation.js.map +1 -1
  11. package/Audio/audioEngine.js +14 -14
  12. package/Audio/audioEngine.js.map +1 -1
  13. package/Audio/audioSceneComponent.js +14 -14
  14. package/Audio/audioSceneComponent.js.map +1 -1
  15. package/Audio/sound.js +47 -47
  16. package/Audio/sound.js.map +1 -1
  17. package/Behaviors/Meshes/baseSixDofDragBehavior.d.ts +1 -1
  18. package/Behaviors/Meshes/fadeInOutBehavior.js +11 -11
  19. package/Behaviors/Meshes/fadeInOutBehavior.js.map +1 -1
  20. package/Behaviors/Meshes/pointerDragBehavior.js +34 -34
  21. package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
  22. package/Bones/bone.js +15 -15
  23. package/Bones/bone.js.map +1 -1
  24. package/Bones/boneIKController.js +9 -9
  25. package/Bones/boneIKController.js.map +1 -1
  26. package/Bones/boneLookController.js +50 -50
  27. package/Bones/boneLookController.js.map +1 -1
  28. package/Bones/skeleton.js +35 -35
  29. package/Bones/skeleton.js.map +1 -1
  30. package/Buffers/buffer.js +14 -14
  31. package/Buffers/buffer.js.map +1 -1
  32. package/Buffers/dataBuffer.js +6 -6
  33. package/Buffers/dataBuffer.js.map +1 -1
  34. package/Cameras/Inputs/freeCameraDeviceOrientationInput.js +42 -42
  35. package/Cameras/Inputs/freeCameraDeviceOrientationInput.js.map +1 -1
  36. package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.js +18 -18
  37. package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.js.map +1 -1
  38. package/Cameras/VR/vrExperienceHelper.js +178 -178
  39. package/Cameras/VR/vrExperienceHelper.js.map +1 -1
  40. package/Cameras/arcRotateCamera.js +176 -176
  41. package/Cameras/arcRotateCamera.js.map +1 -1
  42. package/Cameras/camera.js +90 -90
  43. package/Cameras/camera.js.map +1 -1
  44. package/Cameras/flyCamera.js +82 -82
  45. package/Cameras/flyCamera.js.map +1 -1
  46. package/Cameras/freeCamera.js +54 -54
  47. package/Cameras/freeCamera.js.map +1 -1
  48. package/Compute/computeShader.js +12 -12
  49. package/Compute/computeShader.js.map +1 -1
  50. package/Culling/ray.d.ts +1 -1
  51. package/Debug/axesViewer.js +12 -12
  52. package/Debug/axesViewer.js.map +1 -1
  53. package/Debug/debugLayer.js +21 -21
  54. package/Debug/debugLayer.js.map +1 -1
  55. package/Debug/directionalLightFrustumViewer.js +20 -20
  56. package/Debug/directionalLightFrustumViewer.js.map +1 -1
  57. package/Debug/rayHelper.js +10 -10
  58. package/Debug/rayHelper.js.map +1 -1
  59. package/Debug/skeletonViewer.js +81 -81
  60. package/Debug/skeletonViewer.js.map +1 -1
  61. package/DeviceInput/InputDevices/deviceSource.d.ts +1 -1
  62. package/DeviceInput/InputDevices/deviceSourceManager.js +31 -31
  63. package/DeviceInput/InputDevices/deviceSourceManager.js.map +1 -1
  64. package/DeviceInput/InputDevices/deviceTypes.d.ts +1 -1
  65. package/DeviceInput/internalDeviceSourceManager.d.ts +2 -2
  66. package/Engines/Extensions/engine.computeShader.d.ts +3 -3
  67. package/Engines/Extensions/engine.multiRender.js +1 -1
  68. package/Engines/Extensions/engine.multiRender.js.map +1 -1
  69. package/Engines/Extensions/engine.query.d.ts +1 -1
  70. package/Engines/Extensions/engine.renderTarget.d.ts +1 -1
  71. package/Engines/Extensions/engine.renderTarget.js +1 -1
  72. package/Engines/Extensions/engine.renderTarget.js.map +1 -1
  73. package/Engines/Native/nativeDataStream.d.ts +1 -1
  74. package/Engines/Native/nativeHardwareTexture.js +3 -3
  75. package/Engines/Native/nativeHardwareTexture.js.map +1 -1
  76. package/Engines/Native/nativeInterfaces.d.ts +5 -5
  77. package/Engines/Native/nativePipelineContext.js +7 -7
  78. package/Engines/Native/nativePipelineContext.js.map +1 -1
  79. package/Engines/Native/nativeRenderTargetWrapper.js +6 -6
  80. package/Engines/Native/nativeRenderTargetWrapper.js.map +1 -1
  81. package/Engines/Processors/shaderCodeInliner.js +4 -4
  82. package/Engines/Processors/shaderCodeInliner.js.map +1 -1
  83. package/Engines/Processors/shaderProcessingOptions.d.ts +1 -1
  84. package/Engines/WebGL/webGLHardwareTexture.js +3 -3
  85. package/Engines/WebGL/webGLHardwareTexture.js.map +1 -1
  86. package/Engines/WebGPU/webgpuBufferManager.js +3 -3
  87. package/Engines/WebGPU/webgpuBufferManager.js.map +1 -1
  88. package/Engines/WebGPU/webgpuCacheBindGroups.js +6 -6
  89. package/Engines/WebGPU/webgpuCacheBindGroups.js.map +1 -1
  90. package/Engines/WebGPU/webgpuCacheRenderPipelineTree.js +5 -5
  91. package/Engines/WebGPU/webgpuCacheRenderPipelineTree.js.map +1 -1
  92. package/Engines/WebGPU/webgpuClearQuad.js +11 -11
  93. package/Engines/WebGPU/webgpuClearQuad.js.map +1 -1
  94. package/Engines/WebGPU/webgpuComputeContext.js +7 -7
  95. package/Engines/WebGPU/webgpuComputeContext.js.map +1 -1
  96. package/Engines/WebGPU/webgpuComputePipelineContext.js +4 -4
  97. package/Engines/WebGPU/webgpuComputePipelineContext.js.map +1 -1
  98. package/Engines/WebGPU/webgpuDrawContext.js +7 -7
  99. package/Engines/WebGPU/webgpuDrawContext.js.map +1 -1
  100. package/Engines/WebGPU/webgpuHardwareTexture.js +9 -9
  101. package/Engines/WebGPU/webgpuHardwareTexture.js.map +1 -1
  102. package/Engines/WebGPU/webgpuMaterialContext.js +5 -5
  103. package/Engines/WebGPU/webgpuMaterialContext.js.map +1 -1
  104. package/Engines/WebGPU/webgpuOcclusionQuery.js +10 -10
  105. package/Engines/WebGPU/webgpuOcclusionQuery.js.map +1 -1
  106. package/Engines/WebGPU/webgpuPipelineContext.js +6 -6
  107. package/Engines/WebGPU/webgpuPipelineContext.js.map +1 -1
  108. package/Engines/WebGPU/webgpuQuerySet.js +3 -3
  109. package/Engines/WebGPU/webgpuQuerySet.js.map +1 -1
  110. package/Engines/WebGPU/webgpuShaderProcessingContext.js +3 -3
  111. package/Engines/WebGPU/webgpuShaderProcessingContext.js.map +1 -1
  112. package/Engines/WebGPU/webgpuTextureHelper.js +3 -3
  113. package/Engines/WebGPU/webgpuTextureHelper.js.map +1 -1
  114. package/Engines/WebGPU/webgpuTimestampQuery.js +3 -3
  115. package/Engines/WebGPU/webgpuTimestampQuery.js.map +1 -1
  116. package/Engines/engine.js +134 -134
  117. package/Engines/engine.js.map +1 -1
  118. package/Engines/nativeEngine.js +6 -6
  119. package/Engines/nativeEngine.js.map +1 -1
  120. package/Engines/nullEngine.js +25 -25
  121. package/Engines/nullEngine.js.map +1 -1
  122. package/Engines/renderTargetWrapper.js +25 -25
  123. package/Engines/renderTargetWrapper.js.map +1 -1
  124. package/Engines/thinEngine.js +243 -243
  125. package/Engines/thinEngine.js.map +1 -1
  126. package/Engines/webgpuEngine.js +132 -132
  127. package/Engines/webgpuEngine.js.map +1 -1
  128. package/Events/keyboardEvents.js +10 -10
  129. package/Events/keyboardEvents.js.map +1 -1
  130. package/Events/pointerEvents.js +9 -9
  131. package/Events/pointerEvents.js.map +1 -1
  132. package/Gamepads/Controllers/poseEnabledController.js +9 -9
  133. package/Gamepads/Controllers/poseEnabledController.js.map +1 -1
  134. package/Gamepads/Controllers/webVRController.js +13 -13
  135. package/Gamepads/Controllers/webVRController.js.map +1 -1
  136. package/Gamepads/gamepad.js +20 -20
  137. package/Gamepads/gamepad.js.map +1 -1
  138. package/Gizmos/axisDragGizmo.js +45 -45
  139. package/Gizmos/axisDragGizmo.js.map +1 -1
  140. package/Gizmos/axisScaleGizmo.js +12 -12
  141. package/Gizmos/axisScaleGizmo.js.map +1 -1
  142. package/Gizmos/boundingBoxGizmo.js +74 -74
  143. package/Gizmos/boundingBoxGizmo.js.map +1 -1
  144. package/Gizmos/gizmo.js +34 -34
  145. package/Gizmos/gizmo.js.map +1 -1
  146. package/Gizmos/gizmoManager.js +40 -40
  147. package/Gizmos/gizmoManager.js.map +1 -1
  148. package/Gizmos/planeDragGizmo.js +23 -23
  149. package/Gizmos/planeDragGizmo.js.map +1 -1
  150. package/Gizmos/planeRotationGizmo.js +12 -12
  151. package/Gizmos/planeRotationGizmo.js.map +1 -1
  152. package/Gizmos/positionGizmo.js +40 -40
  153. package/Gizmos/positionGizmo.js.map +1 -1
  154. package/Gizmos/rotationGizmo.js +47 -47
  155. package/Gizmos/rotationGizmo.js.map +1 -1
  156. package/Gizmos/scaleGizmo.js +41 -41
  157. package/Gizmos/scaleGizmo.js.map +1 -1
  158. package/Helpers/environmentHelper.js +18 -18
  159. package/Helpers/environmentHelper.js.map +1 -1
  160. package/Helpers/textureDome.js +96 -96
  161. package/Helpers/textureDome.js.map +1 -1
  162. package/IAccessibilityTag.d.ts +2 -2
  163. package/Instrumentation/engineInstrumentation.js +21 -21
  164. package/Instrumentation/engineInstrumentation.js.map +1 -1
  165. package/Instrumentation/sceneInstrumentation.js +90 -90
  166. package/Instrumentation/sceneInstrumentation.js.map +1 -1
  167. package/Layers/effectLayer.js +48 -48
  168. package/Layers/effectLayer.js.map +1 -1
  169. package/Layers/glowLayer.js +32 -32
  170. package/Layers/glowLayer.js.map +1 -1
  171. package/Layers/highlightLayer.js +26 -26
  172. package/Layers/highlightLayer.js.map +1 -1
  173. package/Layers/layer.js +40 -40
  174. package/Layers/layer.js.map +1 -1
  175. package/LensFlares/lensFlare.js +15 -15
  176. package/LensFlares/lensFlare.js.map +1 -1
  177. package/LensFlares/lensFlareSystem.js +4 -4
  178. package/LensFlares/lensFlareSystem.js.map +1 -1
  179. package/Lights/Shadows/cascadedShadowGenerator.js +18 -18
  180. package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
  181. package/Lights/Shadows/shadowGenerator.js +115 -115
  182. package/Lights/Shadows/shadowGenerator.js.map +1 -1
  183. package/Lights/directionalLight.js +31 -31
  184. package/Lights/directionalLight.js.map +1 -1
  185. package/Lights/light.js +72 -72
  186. package/Lights/light.js.map +1 -1
  187. package/Lights/pointLight.js +18 -18
  188. package/Lights/pointLight.js.map +1 -1
  189. package/Lights/spotLight.js +30 -30
  190. package/Lights/spotLight.js.map +1 -1
  191. package/Loading/sceneLoader.d.ts +1 -1
  192. package/Materials/Background/backgroundMaterial.js +124 -124
  193. package/Materials/Background/backgroundMaterial.js.map +1 -1
  194. package/Materials/Node/Blocks/Dual/imageSourceBlock.js +8 -8
  195. package/Materials/Node/Blocks/Dual/imageSourceBlock.js.map +1 -1
  196. package/Materials/Node/Blocks/Dual/lightBlock.js +14 -14
  197. package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
  198. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js +9 -9
  199. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
  200. package/Materials/Node/Blocks/Dual/textureBlock.js +26 -26
  201. package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
  202. package/Materials/Node/Blocks/Input/inputBlock.js +34 -34
  203. package/Materials/Node/Blocks/Input/inputBlock.js.map +1 -1
  204. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +14 -14
  205. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
  206. package/Materials/Node/Blocks/PBR/reflectionBlock.js +16 -16
  207. package/Materials/Node/Blocks/PBR/reflectionBlock.js.map +1 -1
  208. package/Materials/Node/Blocks/customBlock.js +7 -7
  209. package/Materials/Node/Blocks/customBlock.js.map +1 -1
  210. package/Materials/Node/Blocks/gradientBlock.js +13 -13
  211. package/Materials/Node/Blocks/gradientBlock.js.map +1 -1
  212. package/Materials/Node/Blocks/triPlanarBlock.js +30 -30
  213. package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
  214. package/Materials/Node/nodeMaterial.d.ts +1 -1
  215. package/Materials/Node/nodeMaterial.js +60 -60
  216. package/Materials/Node/nodeMaterial.js.map +1 -1
  217. package/Materials/Node/nodeMaterialBlock.js +35 -35
  218. package/Materials/Node/nodeMaterialBlock.js.map +1 -1
  219. package/Materials/Node/nodeMaterialBlockConnectionPoint.js +50 -50
  220. package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
  221. package/Materials/PBR/pbrAnisotropicConfiguration.js +5 -5
  222. package/Materials/PBR/pbrAnisotropicConfiguration.js.map +1 -1
  223. package/Materials/PBR/pbrBRDFConfiguration.js +4 -4
  224. package/Materials/PBR/pbrBRDFConfiguration.js.map +1 -1
  225. package/Materials/PBR/pbrBaseMaterial.js +52 -52
  226. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  227. package/Materials/PBR/pbrBaseSimpleMaterial.js +17 -17
  228. package/Materials/PBR/pbrBaseSimpleMaterial.js.map +1 -1
  229. package/Materials/PBR/pbrClearCoatConfiguration.js +5 -5
  230. package/Materials/PBR/pbrClearCoatConfiguration.js.map +1 -1
  231. package/Materials/PBR/pbrIridescenceConfiguration.js +5 -5
  232. package/Materials/PBR/pbrIridescenceConfiguration.js.map +1 -1
  233. package/Materials/PBR/pbrMaterial.js +209 -209
  234. package/Materials/PBR/pbrMaterial.js.map +1 -1
  235. package/Materials/PBR/pbrSheenConfiguration.js +5 -5
  236. package/Materials/PBR/pbrSheenConfiguration.js.map +1 -1
  237. package/Materials/PBR/pbrSpecularGlossinessMaterial.js +6 -6
  238. package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
  239. package/Materials/PBR/pbrSubSurfaceConfiguration.js +51 -51
  240. package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
  241. package/Materials/Textures/baseTexture.js +99 -99
  242. package/Materials/Textures/baseTexture.js.map +1 -1
  243. package/Materials/Textures/cubeTexture.js +61 -61
  244. package/Materials/Textures/cubeTexture.js.map +1 -1
  245. package/Materials/Textures/externalTexture.js +16 -16
  246. package/Materials/Textures/externalTexture.js.map +1 -1
  247. package/Materials/Textures/hdrCubeTexture.js +44 -44
  248. package/Materials/Textures/hdrCubeTexture.js.map +1 -1
  249. package/Materials/Textures/internalTexture.js +31 -31
  250. package/Materials/Textures/internalTexture.js.map +1 -1
  251. package/Materials/Textures/mirrorTexture.js +73 -73
  252. package/Materials/Textures/mirrorTexture.js.map +1 -1
  253. package/Materials/Textures/multiRenderTarget.js +47 -47
  254. package/Materials/Textures/multiRenderTarget.js.map +1 -1
  255. package/Materials/Textures/rawTexture2DArray.js +6 -6
  256. package/Materials/Textures/rawTexture2DArray.js.map +1 -1
  257. package/Materials/Textures/renderTargetTexture.js +142 -142
  258. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  259. package/Materials/Textures/texture.d.ts +1 -1
  260. package/Materials/Textures/texture.js +26 -26
  261. package/Materials/Textures/texture.js.map +1 -1
  262. package/Materials/Textures/textureCreationOptions.d.ts +1 -1
  263. package/Materials/Textures/textureSampler.js +20 -20
  264. package/Materials/Textures/textureSampler.js.map +1 -1
  265. package/Materials/Textures/thinRenderTargetTexture.js +6 -6
  266. package/Materials/Textures/thinRenderTargetTexture.js.map +1 -1
  267. package/Materials/Textures/thinTexture.js +39 -39
  268. package/Materials/Textures/thinTexture.js.map +1 -1
  269. package/Materials/Textures/videoTexture.js +40 -40
  270. package/Materials/Textures/videoTexture.js.map +1 -1
  271. package/Materials/drawWrapper.js +6 -6
  272. package/Materials/drawWrapper.js.map +1 -1
  273. package/Materials/effect.js +18 -18
  274. package/Materials/effect.js.map +1 -1
  275. package/Materials/effectRenderer.js +9 -9
  276. package/Materials/effectRenderer.js.map +1 -1
  277. package/Materials/fresnelParameters.d.ts +2 -2
  278. package/Materials/fresnelParameters.js +13 -13
  279. package/Materials/fresnelParameters.js.map +1 -1
  280. package/Materials/material.detailMapConfiguration.js +5 -5
  281. package/Materials/material.detailMapConfiguration.js.map +1 -1
  282. package/Materials/material.js +223 -223
  283. package/Materials/material.js.map +1 -1
  284. package/Materials/materialPluginBase.js +5 -5
  285. package/Materials/materialPluginBase.js.map +1 -1
  286. package/Materials/materialPluginEvent.d.ts +14 -14
  287. package/Materials/materialPluginManager.d.ts +1 -1
  288. package/Materials/multiMaterial.js +16 -16
  289. package/Materials/multiMaterial.js.map +1 -1
  290. package/Materials/shadowDepthWrapper.js +14 -14
  291. package/Materials/shadowDepthWrapper.js.map +1 -1
  292. package/Materials/standardMaterial.js +100 -100
  293. package/Materials/standardMaterial.js.map +1 -1
  294. package/Materials/uniformBufferEffectCommonAccessor.js +3 -3
  295. package/Materials/uniformBufferEffectCommonAccessor.js.map +1 -1
  296. package/Maths/math.functions.js +2 -0
  297. package/Maths/math.functions.js.map +1 -1
  298. package/Maths/math.path.js +11 -11
  299. package/Maths/math.path.js.map +1 -1
  300. package/Maths/math.vector.d.ts +6 -7
  301. package/Maths/math.vector.js +48 -48
  302. package/Maths/math.vector.js.map +1 -1
  303. package/Meshes/Builders/goldbergBuilder.d.ts +2 -2
  304. package/Meshes/Compression/dracoCompression.js +23 -23
  305. package/Meshes/Compression/dracoCompression.js.map +1 -1
  306. package/Meshes/Compression/meshoptCompression.js +9 -9
  307. package/Meshes/Compression/meshoptCompression.js.map +1 -1
  308. package/Meshes/abstractMesh.js +179 -179
  309. package/Meshes/abstractMesh.js.map +1 -1
  310. package/Meshes/geometry.js +32 -32
  311. package/Meshes/geometry.js.map +1 -1
  312. package/Meshes/goldbergMesh.d.ts +1 -1
  313. package/Meshes/linesMesh.js +3 -3
  314. package/Meshes/linesMesh.js.map +1 -1
  315. package/Meshes/mesh.js +165 -165
  316. package/Meshes/mesh.js.map +1 -1
  317. package/Meshes/mesh.vertexData.js.map +1 -1
  318. package/Meshes/polygonMesh.js +5 -5
  319. package/Meshes/polygonMesh.js.map +1 -1
  320. package/Meshes/subMesh.js +59 -59
  321. package/Meshes/subMesh.js.map +1 -1
  322. package/Meshes/transformNode.js +52 -52
  323. package/Meshes/transformNode.js.map +1 -1
  324. package/Misc/PerformanceViewer/performanceViewerCollectionStrategies.d.ts +1 -1
  325. package/Misc/PerformanceViewer/performanceViewerCollector.js +12 -12
  326. package/Misc/PerformanceViewer/performanceViewerCollector.js.map +1 -1
  327. package/Misc/arrayTools.d.ts +1 -1
  328. package/Misc/copyTextureToTexture.js +3 -3
  329. package/Misc/copyTextureToTexture.js.map +1 -1
  330. package/Misc/coroutine.d.ts +5 -5
  331. package/Misc/deferred.js +9 -9
  332. package/Misc/deferred.js.map +1 -1
  333. package/Misc/depthReducer.js +7 -7
  334. package/Misc/depthReducer.js.map +1 -1
  335. package/Misc/environmentTextureTools.d.ts +1 -1
  336. package/Misc/error.d.ts +1 -1
  337. package/Misc/fileTools.d.ts +5 -5
  338. package/Misc/filesInput.js +6 -6
  339. package/Misc/filesInput.js.map +1 -1
  340. package/Misc/khronosTextureContainer2.js +9 -9
  341. package/Misc/khronosTextureContainer2.js.map +1 -1
  342. package/Misc/observable.js +12 -12
  343. package/Misc/observable.js.map +1 -1
  344. package/Misc/perfCounter.js +16 -16
  345. package/Misc/perfCounter.js.map +1 -1
  346. package/Misc/sceneOptimizer.js +76 -76
  347. package/Misc/sceneOptimizer.js.map +1 -1
  348. package/Misc/stringDictionary.d.ts +1 -1
  349. package/Misc/trajectoryClassifier.js +67 -67
  350. package/Misc/trajectoryClassifier.js.map +1 -1
  351. package/Misc/videoRecorder.js +15 -15
  352. package/Misc/videoRecorder.js.map +1 -1
  353. package/Misc/virtualJoystick.js +12 -12
  354. package/Misc/virtualJoystick.js.map +1 -1
  355. package/Morph/morphTarget.js +28 -28
  356. package/Morph/morphTarget.js.map +1 -1
  357. package/Morph/morphTargetManager.js +18 -18
  358. package/Morph/morphTargetManager.js.map +1 -1
  359. package/Offline/database.js +12 -12
  360. package/Offline/database.js.map +1 -1
  361. package/Particles/EmitterTypes/coneParticleEmitter.js +25 -25
  362. package/Particles/EmitterTypes/coneParticleEmitter.js.map +1 -1
  363. package/Particles/EmitterTypes/meshParticleEmitter.js +20 -20
  364. package/Particles/EmitterTypes/meshParticleEmitter.js.map +1 -1
  365. package/Particles/baseParticleSystem.js +232 -232
  366. package/Particles/baseParticleSystem.js.map +1 -1
  367. package/Particles/cloudPoint.js +9 -9
  368. package/Particles/cloudPoint.js.map +1 -1
  369. package/Particles/gpuParticleSystem.js +123 -123
  370. package/Particles/gpuParticleSystem.js.map +1 -1
  371. package/Particles/particleSystem.js +102 -102
  372. package/Particles/particleSystem.js.map +1 -1
  373. package/Particles/pointsCloudSystem.js +18 -18
  374. package/Particles/pointsCloudSystem.js.map +1 -1
  375. package/Particles/solidParticle.js +23 -23
  376. package/Particles/solidParticle.js.map +1 -1
  377. package/Physics/v1/physicsEngine.js +14 -14
  378. package/Physics/v1/physicsEngine.js.map +1 -1
  379. package/Physics/v1/physicsImpostor.js +149 -149
  380. package/Physics/v1/physicsImpostor.js.map +1 -1
  381. package/Physics/v2/physicsEngine.js +14 -14
  382. package/Physics/v2/physicsEngine.js.map +1 -1
  383. package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +129 -129
  384. package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
  385. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js +68 -68
  386. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js.map +1 -1
  387. package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.js +6 -6
  388. package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.js.map +1 -1
  389. package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js +226 -225
  390. package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js.map +1 -1
  391. package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js +10 -10
  392. package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js.map +1 -1
  393. package/PostProcesses/anaglyphPostProcess.js +7 -7
  394. package/PostProcesses/anaglyphPostProcess.js.map +1 -1
  395. package/PostProcesses/blackAndWhitePostProcess.js +7 -7
  396. package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
  397. package/PostProcesses/bloomEffect.js +28 -28
  398. package/PostProcesses/bloomEffect.js.map +1 -1
  399. package/PostProcesses/bloomMergePostProcess.js +7 -7
  400. package/PostProcesses/bloomMergePostProcess.js.map +1 -1
  401. package/PostProcesses/blurPostProcess.js +32 -32
  402. package/PostProcesses/blurPostProcess.js.map +1 -1
  403. package/PostProcesses/chromaticAberrationPostProcess.js +7 -7
  404. package/PostProcesses/chromaticAberrationPostProcess.js.map +1 -1
  405. package/PostProcesses/circleOfConfusionPostProcess.js +7 -7
  406. package/PostProcesses/circleOfConfusionPostProcess.js.map +1 -1
  407. package/PostProcesses/colorCorrectionPostProcess.js +7 -7
  408. package/PostProcesses/colorCorrectionPostProcess.js.map +1 -1
  409. package/PostProcesses/convolutionPostProcess.js +7 -7
  410. package/PostProcesses/convolutionPostProcess.js.map +1 -1
  411. package/PostProcesses/depthOfFieldBlurPostProcess.js +7 -7
  412. package/PostProcesses/depthOfFieldBlurPostProcess.js.map +1 -1
  413. package/PostProcesses/depthOfFieldEffect.js +36 -36
  414. package/PostProcesses/depthOfFieldEffect.js.map +1 -1
  415. package/PostProcesses/depthOfFieldMergePostProcess.js +7 -7
  416. package/PostProcesses/depthOfFieldMergePostProcess.js.map +1 -1
  417. package/PostProcesses/extractHighlightsPostProcess.js +7 -7
  418. package/PostProcesses/extractHighlightsPostProcess.js.map +1 -1
  419. package/PostProcesses/filterPostProcess.js +7 -7
  420. package/PostProcesses/filterPostProcess.js.map +1 -1
  421. package/PostProcesses/grainPostProcess.js +7 -7
  422. package/PostProcesses/grainPostProcess.js.map +1 -1
  423. package/PostProcesses/imageProcessingPostProcess.js +42 -42
  424. package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
  425. package/PostProcesses/motionBlurPostProcess.js +41 -41
  426. package/PostProcesses/motionBlurPostProcess.js.map +1 -1
  427. package/PostProcesses/passPostProcess.js +15 -15
  428. package/PostProcesses/passPostProcess.js.map +1 -1
  429. package/PostProcesses/postProcess.d.ts +2 -2
  430. package/PostProcesses/postProcess.js +123 -123
  431. package/PostProcesses/postProcess.js.map +1 -1
  432. package/PostProcesses/refractionPostProcess.js +21 -21
  433. package/PostProcesses/refractionPostProcess.js.map +1 -1
  434. package/PostProcesses/screenSpaceCurvaturePostProcess.js +7 -7
  435. package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
  436. package/PostProcesses/screenSpaceReflectionPostProcess.js +19 -19
  437. package/PostProcesses/screenSpaceReflectionPostProcess.js.map +1 -1
  438. package/PostProcesses/sharpenPostProcess.js +7 -7
  439. package/PostProcesses/sharpenPostProcess.js.map +1 -1
  440. package/PostProcesses/stereoscopicInterlacePostProcess.js +14 -14
  441. package/PostProcesses/stereoscopicInterlacePostProcess.js.map +1 -1
  442. package/PostProcesses/tonemapPostProcess.js +7 -7
  443. package/PostProcesses/tonemapPostProcess.js.map +1 -1
  444. package/PostProcesses/volumetricLightScatteringPostProcess.js +11 -11
  445. package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
  446. package/PostProcesses/vrDistortionCorrectionPostProcess.js +7 -7
  447. package/PostProcesses/vrDistortionCorrectionPostProcess.js.map +1 -1
  448. package/Rendering/depthPeelingRenderer.js +36 -36
  449. package/Rendering/depthPeelingRenderer.js.map +1 -1
  450. package/Rendering/depthRenderer.js +8 -8
  451. package/Rendering/depthRenderer.js.map +1 -1
  452. package/Rendering/edgesRenderer.js +34 -34
  453. package/Rendering/edgesRenderer.js.map +1 -1
  454. package/Rendering/fluidRenderer/fluidRenderer.js +8 -8
  455. package/Rendering/fluidRenderer/fluidRenderer.js.map +1 -1
  456. package/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.js +3 -3
  457. package/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.js.map +1 -1
  458. package/Rendering/fluidRenderer/fluidRenderingObject.js +19 -19
  459. package/Rendering/fluidRenderer/fluidRenderingObject.js.map +1 -1
  460. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js +12 -12
  461. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js.map +1 -1
  462. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js +18 -18
  463. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js.map +1 -1
  464. package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.js +68 -68
  465. package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.js.map +1 -1
  466. package/Rendering/fluidRenderer/fluidRenderingTextures.js +29 -29
  467. package/Rendering/fluidRenderer/fluidRenderingTextures.js.map +1 -1
  468. package/Rendering/geometryBufferRenderer.js +44 -44
  469. package/Rendering/geometryBufferRenderer.js.map +1 -1
  470. package/Rendering/prePassRenderer.js +51 -51
  471. package/Rendering/prePassRenderer.js.map +1 -1
  472. package/Rendering/renderingGroup.js +25 -25
  473. package/Rendering/renderingGroup.js.map +1 -1
  474. package/Rendering/renderingManager.js +21 -21
  475. package/Rendering/renderingManager.js.map +1 -1
  476. package/Rendering/subSurfaceConfiguration.js +18 -18
  477. package/Rendering/subSurfaceConfiguration.js.map +1 -1
  478. package/Rendering/utilityLayerRenderer.js +76 -76
  479. package/Rendering/utilityLayerRenderer.js.map +1 -1
  480. package/Sprites/sprite.js +16 -16
  481. package/Sprites/sprite.js.map +1 -1
  482. package/Sprites/spriteManager.js +81 -81
  483. package/Sprites/spriteManager.js.map +1 -1
  484. package/Sprites/spriteMap.js +32 -32
  485. package/Sprites/spriteMap.js.map +1 -1
  486. package/Sprites/spriteRenderer.js +6 -6
  487. package/Sprites/spriteRenderer.js.map +1 -1
  488. package/Sprites/thinSprite.js +22 -22
  489. package/Sprites/thinSprite.js.map +1 -1
  490. package/States/stencilStateComposer.js +10 -10
  491. package/States/stencilStateComposer.js.map +1 -1
  492. package/XR/features/WebXRAnchorSystem.js +7 -7
  493. package/XR/features/WebXRAnchorSystem.js.map +1 -1
  494. package/XR/features/WebXRControllerMovement.d.ts +3 -3
  495. package/XR/features/WebXRControllerMovement.js +97 -97
  496. package/XR/features/WebXRControllerMovement.js.map +1 -1
  497. package/XR/features/WebXRControllerPhysics.js +24 -24
  498. package/XR/features/WebXRControllerPhysics.js.map +1 -1
  499. package/XR/features/WebXRControllerTeleportation.js +26 -26
  500. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  501. package/XR/features/WebXRDOMOverlay.d.ts +1 -1
  502. package/XR/features/WebXRFeaturePointSystem.js +6 -6
  503. package/XR/features/WebXRFeaturePointSystem.js.map +1 -1
  504. package/XR/features/WebXRHandTracking.d.ts +1 -1
  505. package/XR/features/WebXRHandTracking.js +95 -95
  506. package/XR/features/WebXRHandTracking.js.map +1 -1
  507. package/XR/features/WebXRWalkingLocomotion.js +21 -21
  508. package/XR/features/WebXRWalkingLocomotion.js.map +1 -1
  509. package/XR/motionController/webXRAbstractMotionController.d.ts +3 -3
  510. package/XR/motionController/webXRMotionControllerManager.d.ts +1 -1
  511. package/XR/native/nativeXRFrame.js +3 -3
  512. package/XR/native/nativeXRFrame.js.map +1 -1
  513. package/XR/webXRFeaturesManager.d.ts +1 -1
  514. package/XR/webXRLayerWrapper.d.ts +2 -2
  515. package/XR/webXRLayerWrapper.js +17 -17
  516. package/XR/webXRLayerWrapper.js.map +1 -1
  517. package/abstractScene.d.ts +2 -2
  518. package/node.d.ts +1 -1
  519. package/node.js +71 -71
  520. package/node.js.map +1 -1
  521. package/package.json +1 -1
  522. package/scene.js +777 -777
  523. package/scene.js.map +1 -1
  524. package/sceneComponent.d.ts +12 -12
  525. 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