@galacean/engine-core 2.0.0-alpha.6 → 2.0.0-alpha.61

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 (321) hide show
  1. package/dist/main.js +29118 -22321
  2. package/dist/main.js.map +1 -1
  3. package/dist/module.js +29102 -22313
  4. package/dist/module.js.map +1 -1
  5. package/package.json +3 -5
  6. package/types/2d/assembler/ISpriteAssembler.d.ts +1 -0
  7. package/types/2d/assembler/ISpriteRenderer.d.ts +3 -2
  8. package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
  9. package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
  10. package/types/2d/assembler/TiledSpriteAssembler.d.ts +1 -0
  11. package/types/2d/atlas/FontAtlas.d.ts +23 -1
  12. package/types/2d/atlas/SpriteAtlas.d.ts +8 -0
  13. package/types/2d/sprite/Sprite.d.ts +30 -4
  14. package/types/2d/sprite/SpriteMask.d.ts +49 -1
  15. package/types/2d/sprite/SpriteRenderer.d.ts +35 -1
  16. package/types/2d/text/CharInfo.d.ts +20 -1
  17. package/types/2d/text/CharRenderInfo.d.ts +15 -1
  18. package/types/2d/text/Font.d.ts +11 -1
  19. package/types/2d/text/ITextRenderer.d.ts +3 -0
  20. package/types/2d/text/SubFont.d.ts +35 -1
  21. package/types/2d/text/TextRenderer.d.ts +54 -1
  22. package/types/2d/text/TextUtils.d.ts +89 -1
  23. package/types/Background.d.ts +19 -2
  24. package/types/BasicResources.d.ts +58 -0
  25. package/types/Camera.d.ts +79 -1
  26. package/types/Canvas.d.ts +36 -7
  27. package/types/Component.d.ts +35 -2
  28. package/types/ComponentsDependencies.d.ts +38 -1
  29. package/types/ComponentsManager.d.ts +20 -0
  30. package/types/Engine.d.ts +114 -7
  31. package/types/EngineEventType.d.ts +13 -0
  32. package/types/Entity.d.ts +112 -21
  33. package/types/Polyfill.d.ts +12 -1
  34. package/types/RenderPipeline/BasicRenderPipeline.d.ts +4 -2
  35. package/types/RenderPipeline/BatcherManager.d.ts +23 -1
  36. package/types/RenderPipeline/Blitter.d.ts +1 -1
  37. package/types/RenderPipeline/CullingResults.d.ts +17 -1
  38. package/types/RenderPipeline/DepthOnlyPass.d.ts +15 -1
  39. package/types/RenderPipeline/InstanceBuffer.d.ts +28 -0
  40. package/types/RenderPipeline/MaskManager.d.ts +36 -1
  41. package/types/RenderPipeline/OpaqueTexturePass.d.ts +16 -1
  42. package/types/RenderPipeline/PipelineUtils.d.ts +11 -1
  43. package/types/RenderPipeline/PrimitiveChunk.d.ts +27 -1
  44. package/types/RenderPipeline/PrimitiveChunkManager.d.ts +16 -1
  45. package/types/RenderPipeline/RenderContext.d.ts +46 -1
  46. package/types/RenderPipeline/RenderElement.d.ts +26 -6
  47. package/types/RenderPipeline/RenderQueue.d.ts +23 -1
  48. package/types/RenderPipeline/RenderTargetPool.d.ts +17 -1
  49. package/types/RenderPipeline/SubPrimitiveChunk.d.ts +14 -1
  50. package/types/RenderPipeline/VertexArea.d.ts +10 -1
  51. package/types/RenderPipeline/VertexMergeBatcher.d.ts +11 -0
  52. package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +9 -1
  53. package/types/RenderPipeline/index.d.ts +4 -1
  54. package/types/Renderer.d.ts +82 -19
  55. package/types/Scene.d.ts +34 -7
  56. package/types/SceneManager.d.ts +18 -6
  57. package/types/Script.d.ts +41 -0
  58. package/types/Signal.d.ts +71 -0
  59. package/types/SystemInfo.d.ts +14 -2
  60. package/types/Transform.d.ts +26 -1
  61. package/types/UpdateFlag.d.ts +4 -1
  62. package/types/UpdateFlagManager.d.ts +41 -1
  63. package/types/Utils.d.ts +20 -0
  64. package/types/VirtualCamera.d.ts +16 -1
  65. package/types/animation/AnimationClip.d.ts +13 -2
  66. package/types/animation/AnimationClipCurveBinding.d.ts +17 -2
  67. package/types/animation/AnimationEvent.d.ts +2 -2
  68. package/types/animation/Animator.d.ts +49 -10
  69. package/types/animation/AnimatorController.d.ts +20 -2
  70. package/types/animation/AnimatorControllerLayer.d.ts +17 -2
  71. package/types/animation/AnimatorControllerParameter.d.ts +4 -0
  72. package/types/animation/AnimatorState.d.ts +46 -2
  73. package/types/animation/AnimatorStateInstance.d.ts +46 -0
  74. package/types/animation/AnimatorStateMachine.d.ts +17 -2
  75. package/types/animation/AnimatorStateTransition.d.ts +9 -0
  76. package/types/animation/AnimatorStateTransitionCollection.d.ts +23 -1
  77. package/types/animation/Keyframe.d.ts +1 -1
  78. package/types/animation/StateMachineScript.d.ts +2 -0
  79. package/types/animation/animationCurve/AnimationArrayCurve.d.ts +39 -0
  80. package/types/animation/animationCurve/AnimationBoolCurve.d.ts +39 -0
  81. package/types/animation/animationCurve/AnimationColorCurve.d.ts +39 -0
  82. package/types/animation/animationCurve/AnimationCurve.d.ts +9 -1
  83. package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +38 -0
  84. package/types/animation/animationCurve/AnimationFloatCurve.d.ts +39 -0
  85. package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +41 -0
  86. package/types/animation/animationCurve/AnimationRectCurve.d.ts +18 -0
  87. package/types/animation/animationCurve/AnimationRefCurve.d.ts +20 -2
  88. package/types/animation/animationCurve/AnimationStringCurve.d.ts +39 -0
  89. package/types/animation/animationCurve/AnimationVector2Curve.d.ts +39 -0
  90. package/types/animation/animationCurve/AnimationVector3Curve.d.ts +43 -0
  91. package/types/animation/animationCurve/AnimationVector4Curve.d.ts +39 -0
  92. package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +18 -1
  93. package/types/animation/enums/AnimatorStatePlayState.d.ts +8 -1
  94. package/types/animation/index.d.ts +1 -0
  95. package/types/animation/internal/AnimationCurveLayerOwner.d.ts +15 -1
  96. package/types/animation/internal/AnimationEventHandler.d.ts +8 -1
  97. package/types/animation/internal/AnimatorLayerData.d.ts +28 -1
  98. package/types/animation/internal/AnimatorStateData.d.ts +14 -1
  99. package/types/animation/internal/AnimatorStatePlayData.d.ts +27 -1
  100. package/types/animation/internal/AnimatorTempValue.d.ts +12 -1
  101. package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +39 -0
  102. package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +12 -1
  103. package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +10 -1
  104. package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +13 -1
  105. package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +13 -1
  106. package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +13 -1
  107. package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +23 -1
  108. package/types/asset/AssetPromise.d.ts +4 -4
  109. package/types/asset/AssetType.d.ts +7 -9
  110. package/types/asset/GraphicsResource.d.ts +10 -0
  111. package/types/asset/IReferable.d.ts +8 -0
  112. package/types/asset/JSONAsset.d.ts +1 -1
  113. package/types/asset/LoadItem.d.ts +1 -1
  114. package/types/asset/Loader.d.ts +2 -2
  115. package/types/asset/ReferResource.d.ts +28 -0
  116. package/types/asset/RenderingStatistics.d.ts +8 -0
  117. package/types/asset/ResourceManager.d.ts +117 -9
  118. package/types/audio/AudioClip.d.ts +8 -0
  119. package/types/audio/AudioManager.d.ts +18 -0
  120. package/types/audio/AudioSource.d.ts +20 -2
  121. package/types/base/Constant.d.ts +3 -19
  122. package/types/base/DataObject.d.ts +6 -0
  123. package/types/base/EngineObject.d.ts +4 -0
  124. package/types/base/Time.d.ts +13 -0
  125. package/types/base/index.d.ts +1 -0
  126. package/types/clone/CloneDecorators.d.ts +37 -0
  127. package/types/clone/CloneUtil.d.ts +30 -0
  128. package/types/clone/ComponentCloner.d.ts +4 -10
  129. package/types/clone/ICloneHook.d.ts +12 -0
  130. package/types/enums/CameraType.d.ts +9 -1
  131. package/types/env-probe/CubeProbe.d.ts +2 -0
  132. package/types/env-probe/Probe.d.ts +1 -1
  133. package/types/graphic/Buffer.d.ts +23 -3
  134. package/types/graphic/BufferUtil.d.ts +8 -0
  135. package/types/graphic/ElementRangeMapping.d.ts +9 -0
  136. package/types/graphic/IndexBufferBinding.d.ts +4 -0
  137. package/types/graphic/Mesh.d.ts +58 -1
  138. package/types/graphic/Primitive.d.ts +50 -1
  139. package/types/graphic/TransformFeedback.d.ts +46 -0
  140. package/types/graphic/TransformFeedbackPrimitive.d.ts +57 -0
  141. package/types/graphic/TransformFeedbackSimulator.d.ts +55 -0
  142. package/types/graphic/VertexBufferBinding.d.ts +4 -0
  143. package/types/graphic/VertexElement.d.ts +1 -0
  144. package/types/graphic/enums/BufferBindFlag.d.ts +5 -3
  145. package/types/index.d.ts +7 -4
  146. package/types/input/InputManager.d.ts +25 -6
  147. package/types/input/enums/PointerButton.d.ts +8 -0
  148. package/types/input/keyboard/KeyboardManager.d.ts +41 -1
  149. package/types/input/pointer/Pointer.d.ts +37 -1
  150. package/types/input/pointer/PointerEventData.d.ts +4 -0
  151. package/types/input/pointer/PointerManager.d.ts +58 -0
  152. package/types/input/pointer/emitter/IHitResult.d.ts +11 -1
  153. package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +20 -1
  154. package/types/input/wheel/WheelManager.d.ts +34 -1
  155. package/types/lighting/AmbientLight.d.ts +9 -8
  156. package/types/lighting/DirectLight.d.ts +17 -0
  157. package/types/lighting/KHR_lights.d.ts +13 -1
  158. package/types/lighting/Light.d.ts +2 -0
  159. package/types/lighting/LightManager.d.ts +57 -0
  160. package/types/lighting/PointLight.d.ts +17 -0
  161. package/types/lighting/SpotLight.d.ts +17 -0
  162. package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +4 -0
  163. package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +37 -1
  164. package/types/material/BaseMaterial.d.ts +15 -11
  165. package/types/material/Material.d.ts +6 -9
  166. package/types/mesh/BlendShape.d.ts +14 -1
  167. package/types/mesh/BlendShapeFrame.d.ts +11 -4
  168. package/types/mesh/BlendShapeManager.d.ts +100 -1
  169. package/types/mesh/BufferMesh.d.ts +2 -2
  170. package/types/mesh/MeshRenderer.d.ts +42 -0
  171. package/types/mesh/MeshTangentUtils.d.ts +9 -0
  172. package/types/mesh/ModelMesh.d.ts +28 -12
  173. package/types/mesh/PrimitiveMesh.d.ts +266 -104
  174. package/types/mesh/PrimitiveMeshOptions.d.ts +415 -0
  175. package/types/mesh/Skin.d.ts +12 -3
  176. package/types/mesh/SkinnedMeshRenderer.d.ts +27 -1
  177. package/types/mesh/enums/PrimitiveMeshCapMode.d.ts +21 -0
  178. package/types/mesh/index.d.ts +2 -0
  179. package/types/mesh/primitive/MeshPathUtils.d.ts +13 -0
  180. package/types/mesh/primitive/PolygonUtils.d.ts +44 -0
  181. package/types/mesh/primitive/PrimitiveMeshBuilder.d.ts +25 -0
  182. package/types/mesh/primitive/PrimitiveMeshRestorer.d.ts +15 -0
  183. package/types/mesh/primitive/SubdivisionUtils.d.ts +9 -0
  184. package/types/particle/ParticleBounds.d.ts +87 -0
  185. package/types/particle/ParticleBufferUtils.d.ts +33 -1
  186. package/types/particle/ParticleGenerator.d.ts +142 -24
  187. package/types/particle/ParticleMaterial.d.ts +3 -1
  188. package/types/particle/ParticleRenderer.d.ts +62 -6
  189. package/types/particle/ParticleSubEmitterSpawnState.d.ts +36 -0
  190. package/types/particle/ParticleSystemManager.d.ts +17 -0
  191. package/types/particle/ParticleTransformFeedbackSimulator.d.ts +48 -0
  192. package/types/particle/enums/ParticleInheritVelocityMode.d.ts +14 -0
  193. package/types/particle/enums/ParticleRandomSubSeeds.d.ts +26 -1
  194. package/types/particle/enums/ParticleScaleMode.d.ts +5 -5
  195. package/types/particle/enums/ParticleSubEmitterInheritProperty.d.ts +17 -0
  196. package/types/particle/enums/ParticleSubEmitterType.d.ts +12 -0
  197. package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +6 -1
  198. package/types/particle/enums/attributes/ParticleFeedbackVertexAttribute.d.ts +10 -0
  199. package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +19 -1
  200. package/types/particle/index.d.ts +9 -0
  201. package/types/particle/modules/BirthSubEmitterCommand.d.ts +29 -0
  202. package/types/particle/modules/BirthSubEmitterState.d.ts +9 -0
  203. package/types/particle/modules/Burst.d.ts +23 -2
  204. package/types/particle/modules/ColorOverLifetimeModule.d.ts +19 -0
  205. package/types/particle/modules/CustomDataModule.d.ts +90 -0
  206. package/types/particle/modules/DeathSubEmitterCommand.d.ts +19 -0
  207. package/types/particle/modules/EmissionModule.d.ts +51 -4
  208. package/types/particle/modules/EmissionState.d.ts +13 -0
  209. package/types/particle/modules/ForceOverLifetimeModule.d.ts +16 -1
  210. package/types/particle/modules/InheritVelocityModule.d.ts +86 -0
  211. package/types/particle/modules/LimitVelocityOverLifetimeModule.d.ts +163 -0
  212. package/types/particle/modules/MainModule.d.ts +56 -11
  213. package/types/particle/modules/NoiseModule.d.ts +114 -0
  214. package/types/particle/modules/ParticleCompositeCurve.d.ts +46 -4
  215. package/types/particle/modules/ParticleCompositeGradient.d.ts +8 -2
  216. package/types/particle/modules/ParticleCurve.d.ts +31 -2
  217. package/types/particle/modules/ParticleGeneratorModule.d.ts +9 -3
  218. package/types/particle/modules/ParticleGradient.d.ts +22 -5
  219. package/types/particle/modules/RotationOverLifetimeModule.d.ts +27 -3
  220. package/types/particle/modules/SizeOverLifetimeModule.d.ts +25 -0
  221. package/types/particle/modules/SubEmitter.d.ts +32 -0
  222. package/types/particle/modules/SubEmittersModule.d.ts +111 -0
  223. package/types/particle/modules/TextureSheetAnimationModule.d.ts +14 -1
  224. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +124 -3
  225. package/types/particle/modules/shape/BaseShape.d.ts +65 -2
  226. package/types/particle/modules/shape/BoxShape.d.ts +13 -2
  227. package/types/particle/modules/shape/CircleShape.d.ts +13 -1
  228. package/types/particle/modules/shape/ConeShape.d.ts +13 -4
  229. package/types/particle/modules/shape/HemisphereShape.d.ts +13 -0
  230. package/types/particle/modules/shape/MeshShape.d.ts +26 -3
  231. package/types/particle/modules/shape/ShapeUtils.d.ts +13 -1
  232. package/types/particle/modules/shape/SphereShape.d.ts +13 -0
  233. package/types/physics/CharacterController.d.ts +24 -3
  234. package/types/physics/Collider.d.ts +47 -3
  235. package/types/physics/Collision.d.ts +3 -0
  236. package/types/physics/DynamicCollider.d.ts +33 -7
  237. package/types/physics/HitResult.d.ts +2 -2
  238. package/types/physics/PhysicsMaterial.d.ts +11 -2
  239. package/types/physics/PhysicsScene.d.ts +99 -7
  240. package/types/physics/StaticCollider.d.ts +5 -0
  241. package/types/physics/enums/HingeJointFlag.d.ts +14 -1
  242. package/types/physics/joint/HingeJoint.d.ts +4 -0
  243. package/types/physics/joint/Joint.d.ts +22 -2
  244. package/types/physics/joint/JointLimits.d.ts +2 -1
  245. package/types/physics/joint/JointMotor.d.ts +2 -1
  246. package/types/physics/shape/ColliderShape.d.ts +44 -7
  247. package/types/physics/shape/MeshColliderShape.d.ts +13 -12
  248. package/types/postProcess/FinalPass.d.ts +20 -1
  249. package/types/postProcess/PostProcess.d.ts +11 -6
  250. package/types/postProcess/PostProcessEffect.d.ts +6 -1
  251. package/types/postProcess/PostProcessEffectParameter.d.ts +23 -3
  252. package/types/postProcess/PostProcessManager.d.ts +43 -0
  253. package/types/postProcess/PostProcessPass.d.ts +3 -2
  254. package/types/postProcess/PostProcessUberPass.d.ts +2 -1
  255. package/types/postProcess/effects/BloomEffect.d.ts +26 -1
  256. package/types/postProcess/effects/TonemappingEffect.d.ts +3 -0
  257. package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +74 -0
  258. package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +1 -0
  259. package/types/renderingHardwareInterface/IPlatformPrimitive.d.ts +6 -0
  260. package/types/renderingHardwareInterface/IPlatformShaderProgram.d.ts +4 -0
  261. package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -1
  262. package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -1
  263. package/types/renderingHardwareInterface/IPlatformTransformFeedback.d.ts +36 -0
  264. package/types/renderingHardwareInterface/IPlatformTransformFeedbackPrimitive.d.ts +39 -0
  265. package/types/renderingHardwareInterface/index.d.ts +5 -0
  266. package/types/shader/BuiltinShaders.d.ts +27 -0
  267. package/types/shader/Shader.d.ts +52 -25
  268. package/types/shader/ShaderBlockProperty.d.ts +19 -0
  269. package/types/shader/ShaderData.d.ts +43 -4
  270. package/types/shader/ShaderFactory.d.ts +77 -0
  271. package/types/shader/ShaderMacro.d.ts +17 -2
  272. package/types/shader/ShaderMacroCollection.d.ts +57 -1
  273. package/types/shader/ShaderMacroProcessor.d.ts +54 -0
  274. package/types/shader/ShaderPass.d.ts +42 -13
  275. package/types/shader/ShaderProgram.d.ts +92 -1
  276. package/types/shader/ShaderProgramMap.d.ts +20 -0
  277. package/types/shader/ShaderProperty.d.ts +17 -0
  278. package/types/shader/ShaderTagKey.d.ts +2 -0
  279. package/types/shader/ShaderUniform.d.ts +49 -1
  280. package/types/shader/ShaderUniformBlock.d.ts +9 -1
  281. package/types/shader/enums/ConstantBufferBindingPoint.d.ts +7 -0
  282. package/types/shader/enums/ShaderLanguage.d.ts +1 -3
  283. package/types/shader/enums/ShaderPreprocessorDirective.d.ts +22 -0
  284. package/types/shader/index.d.ts +3 -1
  285. package/types/shader/state/BlendState.d.ts +16 -1
  286. package/types/shader/state/DepthState.d.ts +16 -1
  287. package/types/shader/state/RasterState.d.ts +19 -1
  288. package/types/shader/state/RenderState.d.ts +13 -2
  289. package/types/shader/state/RenderTargetBlendState.d.ts +2 -1
  290. package/types/shader/state/StencilState.d.ts +15 -1
  291. package/types/shadow/CascadedShadowCasterPass.d.ts +5 -3
  292. package/types/shadow/ShadowSliceData.d.ts +13 -1
  293. package/types/shadow/ShadowUtils.d.ts +41 -1
  294. package/types/sky/Sky.d.ts +13 -4
  295. package/types/sky/SkyBoxMaterial.d.ts +0 -7
  296. package/types/texture/RenderTarget.d.ts +28 -3
  297. package/types/texture/Texture.d.ts +48 -12
  298. package/types/texture/Texture2D.d.ts +5 -2
  299. package/types/texture/Texture2DArray.d.ts +5 -2
  300. package/types/texture/TextureCube.d.ts +5 -2
  301. package/types/texture/TextureUtils.d.ts +15 -1
  302. package/types/texture/enums/TextureFormat.d.ts +58 -56
  303. package/types/trail/TrailRenderer.d.ts +13 -8
  304. package/types/ui/IUICanvas.d.ts +16 -1
  305. package/types/utils/DisorderedArray.d.ts +3 -1
  306. package/types/xr/XRManager.d.ts +28 -0
  307. package/types/RenderPipeline/BatchUtils.d.ts +0 -1
  308. package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
  309. package/types/clone/CloneManager.d.ts +0 -31
  310. package/types/clone/enums/CloneMode.d.ts +0 -13
  311. package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
  312. package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
  313. package/types/shader/ShaderPool.d.ts +0 -1
  314. package/types/shader/ShaderProgramPool.d.ts +0 -1
  315. package/types/shader/state/index.d.ts +0 -6
  316. package/types/shaderlib/ShaderFactory.d.ts +0 -20
  317. package/types/shaderlib/ShaderLib.d.ts +0 -73
  318. package/types/shaderlib/index.d.ts +0 -1
  319. package/types/shaderlib/particle/index.d.ts +0 -15
  320. package/types/shaderlib/pbr/index.d.ts +0 -11
  321. package/types/shaderlib/shadow/index.d.ts +0 -8
@@ -0,0 +1,87 @@
1
+ import { BoundingBox, Vector3 } from "@galacean/engine-math";
2
+ import type { ParticleGenerator } from "./ParticleGenerator";
3
+ import type { ParticleSubEmitterCommand } from "./modules/SubEmittersModule";
4
+ /**
5
+ * Owns the conservative bounds state for one particle generator.
6
+ * @internal
7
+ */
8
+ export declare class ParticleBounds {
9
+ private readonly _generator;
10
+ private static readonly _tempVector20;
11
+ private static readonly _tempVector21;
12
+ private static readonly _tempVector22;
13
+ private static readonly _tempVector30;
14
+ private static readonly _tempVector31;
15
+ private static readonly _tempVector32;
16
+ private static readonly _tempVector33;
17
+ private static readonly _tempVector34;
18
+ private static readonly _tempInitialDisplacement;
19
+ private static readonly _tempMatrix;
20
+ private static readonly _tempEmissionBounds;
21
+ private static readonly _tempScaledBounds;
22
+ private static readonly _recordStride;
23
+ private static readonly _recordTimeOffset;
24
+ private static readonly _recordMaxLifetimeOffset;
25
+ private static readonly _recordCurrentAxisReachOffset;
26
+ private static readonly _recordInitialDisplacementOffset;
27
+ private static readonly _recordInitialFactorOffset;
28
+ private static readonly _recordIncreaseCount;
29
+ private static readonly _bakedInitialVelocityFactor;
30
+ private static readonly _tempEmissionRecord;
31
+ private readonly _generatorBounds;
32
+ private readonly _transformedBounds;
33
+ private _sourceBounds;
34
+ private _sourceBoundsFrame;
35
+ private _previousTrajectoryBounds;
36
+ private _trajectoryFrameDisplacement;
37
+ private _emissionRecords;
38
+ private _emissionRecordCount;
39
+ private _nextEmissionExpiry;
40
+ private _lastEmissionFrame;
41
+ private _currentInheritedAxisReach;
42
+ private _lastInitialCurveFactor;
43
+ constructor(_generator: ParticleGenerator);
44
+ update(out: BoundingBox): void;
45
+ generateTransformed(): void;
46
+ recordSubEmitterEmission(playTime: number, command: ParticleSubEmitterCommand, eventSizeBounds: number): void;
47
+ recordWorldEmission(playTime: number, worldPosition: Vector3 | undefined, inheritedBounds: Vector3, usesInitialInheritCurve: boolean): void;
48
+ captureSource(): void;
49
+ captureTrajectory(resetBaseline: boolean): void;
50
+ resetTrajectoryBaseline(): void;
51
+ accumulateInheritedVelocity(deltaTime: number): void;
52
+ retireEmissionRecords(): void;
53
+ resetEmissionRecords(): void;
54
+ discardParticleState(): void;
55
+ releaseEmissionRecords(): void;
56
+ getConfiguredParticleSizeExtent(): number;
57
+ getParticleSizeExtent(sizeX: number, sizeY: number, sizeZ: number): number;
58
+ private _updateWorld;
59
+ private _updateLocal;
60
+ private _getSourceBounds;
61
+ private _recordEmission;
62
+ private _storeEmissionRecord;
63
+ private _preserveInitialCurveFactor;
64
+ private _mergeLocalEmissionBounds;
65
+ private _getSubEmitterGeneratorBounds;
66
+ private _calculateGeneratorBounds;
67
+ private _mergeWorldEmissionBounds;
68
+ private _getInheritedBoundsExtent;
69
+ private _calculateTransformedBounds;
70
+ private _useOrbitalBounds;
71
+ private _getNoiseBoundsExtents;
72
+ private _getGravityBoundsReach;
73
+ private _addGravityToBounds;
74
+ private static _scaleRange;
75
+ private _getRangeReach;
76
+ private _getVectorReach;
77
+ private _getExtremeValueFromZero;
78
+ }
79
+ /**
80
+ * @internal
81
+ */
82
+ export declare enum ParticleBoundsUpdateFlags {
83
+ /** World transform changes invalidate transformed bounds. */
84
+ TransformVolume = 2,
85
+ /** Generator parameter changes invalidate local generator bounds. */
86
+ GeneratorVolume = 4
87
+ }
@@ -1 +1,33 @@
1
- export {};
1
+ import type { Engine } from "../Engine";
2
+ import { IndexBufferBinding } from "../graphic/IndexBufferBinding";
3
+ import { VertexBufferBinding } from "../graphic/VertexBufferBinding";
4
+ import { VertexElement } from "../graphic/VertexElement";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare class ParticleBufferUtils {
9
+ static readonly feedbackInstanceInputVertexElements: VertexElement[];
10
+ static readonly feedbackStateInputVertexElements: VertexElement[];
11
+ static readonly feedbackStateWithTrajectoryInputVertexElements: VertexElement[];
12
+ static readonly subEmitterTrajectoryGatherInputVertexElements: VertexElement[];
13
+ static readonly feedbackInstanceWithSpawnStateInputVertexElements: VertexElement[];
14
+ static readonly forwardFeedbackStateInstanceInputVertexElements: VertexElement[];
15
+ static readonly forwardSubEmitterSpawnStateInstanceInputVertexElements: VertexElement[];
16
+ static readonly forwardBillboardInputVertexElement: VertexElement;
17
+ static readonly forwardParticleInstanceInputVertexElements: VertexElement[];
18
+ static readonly feedbackStateVertexStride = 24;
19
+ static readonly feedbackStateWithTrajectoryVertexStride = 48;
20
+ static readonly subEmitterSpawnStateVertexStride = 24;
21
+ static readonly instanceVertexStride = 180;
22
+ static readonly instanceVertexFloatStride: number;
23
+ static readonly startLifeTimeOffset = 3;
24
+ static readonly timeOffset = 7;
25
+ static readonly simulationUVOffset = 36;
26
+ static readonly inheritVelocityOffset = 40;
27
+ static readonly inheritVelocityRandomOffset = 43;
28
+ static readonly limitVelocityRandomOffset = 44;
29
+ static readonly billboardIndexCount = 6;
30
+ readonly billboardVertexBufferBinding: VertexBufferBinding;
31
+ readonly billboardIndexBufferBinding: IndexBufferBinding;
32
+ constructor(engine: Engine);
33
+ }
@@ -1,26 +1,48 @@
1
+ import { DataObject } from "../base/DataObject";
2
+ import { Vector3 } from "@galacean/engine-math";
3
+ import type { ICloneHook } from "../clone/ICloneHook";
4
+ import { Primitive } from "../graphic/Primitive";
5
+ import { SubMesh } from "../graphic/SubMesh";
6
+ import type { ShaderData } from "../shader";
7
+ import { ParticleBounds } from "./ParticleBounds";
8
+ import { ParticleRenderer } from "./ParticleRenderer";
9
+ import { ParticleTransformFeedbackSimulator } from "./ParticleTransformFeedbackSimulator";
1
10
  import { ParticleStopMode } from "./enums/ParticleStopMode";
2
11
  import { ColorOverLifetimeModule } from "./modules/ColorOverLifetimeModule";
12
+ import { CustomDataModule } from "./modules/CustomDataModule";
3
13
  import { EmissionModule } from "./modules/EmissionModule";
14
+ import { InheritVelocityModule } from "./modules/InheritVelocityModule";
4
15
  import { ForceOverLifetimeModule } from "./modules/ForceOverLifetimeModule";
16
+ import { LimitVelocityOverLifetimeModule } from "./modules/LimitVelocityOverLifetimeModule";
5
17
  import { MainModule } from "./modules/MainModule";
6
18
  import { RotationOverLifetimeModule } from "./modules/RotationOverLifetimeModule";
7
19
  import { SizeOverLifetimeModule } from "./modules/SizeOverLifetimeModule";
8
20
  import { TextureSheetAnimationModule } from "./modules/TextureSheetAnimationModule";
21
+ import { NoiseModule } from "./modules/NoiseModule";
9
22
  import { VelocityOverLifetimeModule } from "./modules/VelocityOverLifetimeModule";
23
+ import { SubEmittersModule, type ParticleSubEmitterCommand } from "./modules/SubEmittersModule";
10
24
  /**
11
25
  * Particle Generator.
12
26
  */
13
- export declare class ParticleGenerator {
14
- private static _tempVector20;
15
- private static _tempVector21;
16
- private static _tempVector22;
17
- private static _tempVector30;
18
- private static _tempVector31;
19
- private static _tempMat;
20
- private static _tempColor0;
21
- private static _tempParticleRenderers;
27
+ export declare class ParticleGenerator extends DataObject implements ICloneHook<ParticleGenerator> {
28
+ private static readonly _tempVector30;
29
+ private static readonly _tempVector31;
30
+ private static readonly _tempVector32;
31
+ private static readonly _tempVector33;
32
+ private static readonly _tempVector34;
33
+ private static readonly _tempColor;
34
+ private static readonly _tempQuat0;
35
+ private static readonly _tempParticleRenderers;
36
+ private static readonly _vertexBufferBindingScratch;
37
+ private static readonly _eventColor;
38
+ private static readonly _eventSize;
39
+ private static readonly _eventRotation;
22
40
  private static readonly _particleIncreaseCount;
23
- private static readonly _transformedBoundsIncreaseCount;
41
+ private static readonly _transformFeedbackMacro;
42
+ private static readonly _trajectoryFeedbackMacro;
43
+ private static readonly _hasSubEmitterSpawnedParticlesMacro;
44
+ private static readonly _currentTimeProperty;
45
+ private static readonly _particleValueInheritanceMask;
24
46
  /** Use auto random seed. */
25
47
  useAutoRandomSeed: boolean;
26
48
  /** Main module. */
@@ -31,6 +53,8 @@ export declare class ParticleGenerator {
31
53
  readonly velocityOverLifetime: VelocityOverLifetimeModule;
32
54
  /** Force over lifetime module. */
33
55
  readonly forceOverLifetime: ForceOverLifetimeModule;
56
+ /** Limit velocity over lifetime module. */
57
+ readonly limitVelocityOverLifetime: LimitVelocityOverLifetimeModule;
34
58
  /** Size over lifetime module. */
35
59
  readonly sizeOverLifetime: SizeOverLifetimeModule;
36
60
  /** Rotation over lifetime module. */
@@ -39,16 +63,48 @@ export declare class ParticleGenerator {
39
63
  readonly colorOverLifetime: ColorOverLifetimeModule;
40
64
  /** Texture sheet animation module. */
41
65
  readonly textureSheetAnimation: TextureSheetAnimationModule;
42
- private _isPlaying;
66
+ /** Noise module. */
67
+ readonly noise: NoiseModule;
68
+ /** Inherit velocity module. */
69
+ readonly inheritVelocity: InheritVelocityModule;
70
+ /** Sub emitters module. */
71
+ readonly subEmitters: SubEmittersModule;
72
+ /** Custom data module. */
73
+ readonly customData: CustomDataModule;
74
+ /** @internal */
75
+ _currentParticleCount: number;
76
+ /** @internal */
77
+ _playTime: number;
78
+ /** @internal */
79
+ _firstNewElement: number;
80
+ /** @internal */
81
+ _firstActiveElement: number;
82
+ /** @internal */
83
+ _firstFreeElement: number;
84
+ /** @internal */
85
+ _firstRetiredElement: number;
86
+ /** @internal */
87
+ readonly _primitive: Primitive;
88
+ /** @internal */
89
+ readonly _subPrimitive: SubMesh;
90
+ /** @internal */
91
+ readonly _renderer: ParticleRenderer;
92
+ /** @internal */
93
+ readonly _bounds: ParticleBounds;
94
+ /** @internal */
95
+ readonly _incomingSubEmitterCommands: ParticleSubEmitterCommand[];
96
+ /** @internal */
97
+ _feedbackSimulator: ParticleTransformFeedbackSimulator | null;
98
+ private _subEmitterSpawnState;
99
+ private _activeSubEmitterParticleCount;
100
+ private _resetTrajectoryOnNextFeedback;
101
+ /** @internal */
102
+ _isPlaying: boolean;
43
103
  private _instanceBufferResized;
44
- private _waitProcessRetiredElementCount;
104
+ private _particleCapacityDirty;
45
105
  private _instanceVertexBufferBinding;
46
106
  private _instanceVertices;
47
107
  private _randomSeed;
48
- private _transformedBoundsArray;
49
- private _transformedBoundsCount;
50
- private _firstActiveTransformedBoundingBox;
51
- private _firstFreeTransformedBoundingBox;
52
108
  private _playStartDelay;
53
109
  /**
54
110
  * Whether the particle generator is contain alive or is still creating particles.
@@ -63,6 +119,10 @@ export declare class ParticleGenerator {
63
119
  */
64
120
  get randomSeed(): number;
65
121
  set randomSeed(value: number);
122
+ /**
123
+ * @internal
124
+ */
125
+ constructor(renderer: ParticleRenderer);
66
126
  /**
67
127
  * Start emitting particles.
68
128
  * @param withChildren - Whether to start the particle generator of the child entity
@@ -79,16 +139,74 @@ export declare class ParticleGenerator {
79
139
  * @param count - Number of particles to emit
80
140
  */
81
141
  emit(count: number): void;
142
+ /**
143
+ * @internal
144
+ */
145
+ _emit(playTime: number, count: number, emitWorldPositionOverride?: Vector3): number;
146
+ /**
147
+ * @internal
148
+ */
149
+ _update(elapsedTime: number): void;
150
+ /**
151
+ * @internal
152
+ */
153
+ _reorganizeGeometryBuffers(): void;
154
+ /**
155
+ * @internal
156
+ */
157
+ _updateShaderData(shaderData: ShaderData): void;
158
+ /**
159
+ * @internal
160
+ */
161
+ _resetGlobalRandSeed(seed: number): void;
162
+ /**
163
+ * @internal
164
+ */
165
+ _markParticleCapacityDirty(): void;
166
+ /**
167
+ * @internal
168
+ */
169
+ _setTransformFeedback(): void;
170
+ /**
171
+ * @internal
172
+ */
173
+ _resyncAfterCulling(): void;
174
+ /**
175
+ * @internal
176
+ */
177
+ _getAliveParticleCount(): number;
178
+ /**
179
+ * @internal
180
+ * @inheritdoc
181
+ */
182
+ _onClone(target: ParticleGenerator): void;
183
+ /**
184
+ * @internal
185
+ */
186
+ _destroy(): void;
187
+ private _updateFeedback;
188
+ private _resizeInstanceBuffer;
189
+ private static _copyParticleRange;
190
+ private static _addVertexInputLayout;
82
191
  private _addNewParticle;
83
- private _retireActiveParticles;
192
+ private _consumeBirthSubEmitterCommand;
193
+ private _emitParticles;
194
+ private _ensureParticleCapacity;
195
+ private _prepareBirthRange;
196
+ private _clearActiveParticles;
197
+ private _discardLostGPUParticleState;
198
+ private _discardActiveParticles;
199
+ private _resetTrajectoryFeedbackBaseline;
200
+ private _retireExpiredParticles;
201
+ private _finalizeRetiredParticles;
202
+ private _releaseSubEmitterSpawnStateIfUnused;
203
+ private _ensureSubEmitterSpawnState;
204
+ private _getRingDistance;
205
+ private _getNotRetiredParticleCount;
206
+ private _getFramePlayTime;
207
+ private _nextRingIndex;
208
+ private _evaluateOverLifetime;
84
209
  private _freeRetiredParticles;
85
210
  private _addActiveParticlesToVertexBuffer;
86
211
  private _addVertexBufferBindingsFilterDuplicate;
87
- private _resizeTransformedBoundsArray;
88
- private _retireTransformedBounds;
89
- private _calculateGeneratorBounds;
90
- private _mergeTransformedBounds;
91
- private _calculateTransformedBounds;
92
- private _addGravityToBounds;
93
- private _getExtremeValueFromZero;
94
212
  }
@@ -1,5 +1,6 @@
1
1
  import { Engine } from "../Engine";
2
2
  import { EffectMaterial } from "../material/EffectMaterial";
3
+ import { Shader } from "../shader/Shader";
3
4
  /**
4
5
  * Particle Material.
5
6
  */
@@ -7,8 +8,9 @@ export declare class ParticleMaterial extends EffectMaterial {
7
8
  /**
8
9
  * Create a particle material instance.
9
10
  * @param engine - Engine to which the material belongs
11
+ * @param shader - Shader used by the material
10
12
  */
11
- constructor(engine: Engine);
13
+ constructor(engine: Engine, shader?: Shader);
12
14
  /**
13
15
  * @inheritdoc
14
16
  */
@@ -1,9 +1,11 @@
1
1
  import { BoundingBox, Vector3 } from "@galacean/engine-math";
2
- import { RenderContext } from "../RenderPipeline/RenderContext";
2
+ import type { Entity } from "../Entity";
3
+ import type { RenderContext } from "../RenderPipeline/RenderContext";
3
4
  import { Renderer } from "../Renderer";
4
- import { ModelMesh } from "../mesh/ModelMesh";
5
+ import type { ModelMesh } from "../mesh/ModelMesh";
5
6
  import { ParticleGenerator } from "./ParticleGenerator";
6
7
  import { ParticleRenderMode } from "./enums/ParticleRenderMode";
8
+ import type { ParticleSystemManager } from "./ParticleSystemManager";
7
9
  /**
8
10
  * Particle Renderer Component.
9
11
  */
@@ -11,12 +13,10 @@ export declare class ParticleRenderer extends Renderer {
11
13
  private static readonly _billboardModeMacro;
12
14
  private static readonly _stretchedBillboardModeMacro;
13
15
  private static readonly _horizontalBillboardModeMacro;
14
- private static readonly _verticalBillboardModeMacro;
15
16
  private static readonly _meshModeMacro;
16
17
  private static readonly _pivotOffsetProperty;
17
18
  private static readonly _lengthScale;
18
19
  private static readonly _speedScale;
19
- private static readonly _currentTime;
20
20
  /** Particle generator. */
21
21
  readonly generator: ParticleGenerator;
22
22
  /** Specifies how much particles stretch depending on their velocity. */
@@ -25,10 +25,17 @@ export declare class ParticleRenderer extends Renderer {
25
25
  lengthScale: number;
26
26
  /** The pivot of particle. */
27
27
  pivot: Vector3;
28
+ /** @internal */
29
+ _particleSystemManager: ParticleSystemManager | null;
30
+ /** @internal */
31
+ _particleSystemIndex: number;
32
+ /** @internal */
33
+ _particleUpdateIndegree: number;
34
+ /** @internal */
35
+ _subEmitterDependencyFrame: number;
36
+ private _mesh;
28
37
  private _renderMode;
29
38
  private _currentRenderModeMacro;
30
- private _mesh;
31
- private _supportInstancedArrays;
32
39
  /**
33
40
  * Specifies how particles are rendered.
34
41
  */
@@ -40,8 +47,57 @@ export declare class ParticleRenderer extends Renderer {
40
47
  */
41
48
  get mesh(): ModelMesh;
42
49
  set mesh(value: ModelMesh);
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(entity: Entity);
54
+ /**
55
+ * @internal
56
+ */
57
+ _onEnable(): void;
58
+ /**
59
+ * @internal
60
+ */
61
+ _onDisable(): void;
62
+ /**
63
+ * @internal
64
+ */
65
+ _onEnableInScene(): void;
66
+ /**
67
+ * @internal
68
+ */
69
+ _onDisableInScene(): void;
70
+ /**
71
+ * @internal
72
+ */
73
+ _updateTransformShaderData(context: RenderContext, onlyMVP: boolean): void;
43
74
  protected _updateBounds(worldBounds: BoundingBox): void;
44
75
  protected _update(context: RenderContext): void;
45
76
  protected _render(context: RenderContext): void;
46
77
  protected _onDestroy(): void;
78
+ /**
79
+ * @internal
80
+ * @inheritdoc
81
+ */
82
+ _onClone(target: ParticleRenderer): void;
83
+ /**
84
+ * @internal
85
+ */
86
+ _hasDirtyFlag(type: number): boolean;
87
+ /**
88
+ * @internal
89
+ */
90
+ _clearDirtyFlag(type: number): void;
91
+ /**
92
+ * @internal
93
+ */
94
+ _onWorldVolumeChanged(): void;
95
+ /**
96
+ * @internal
97
+ */
98
+ _onGeneratorParamsChanged(): void;
99
+ /**
100
+ * @internal
101
+ */
102
+ _onTransformChanged(): void;
47
103
  }
@@ -0,0 +1,36 @@
1
+ import type { Engine } from "../Engine";
2
+ import { VertexBufferBinding } from "../graphic/VertexBufferBinding";
3
+ import type { ElementRangeMapping } from "../graphic/ElementRangeMapping";
4
+ import type { Shader } from "../shader/Shader";
5
+ /**
6
+ * Maintains parent trajectory state aligned with sub-emitted particle slots.
7
+ * @internal
8
+ */
9
+ export declare class ParticleSubEmitterSpawnState {
10
+ private static readonly _gatherVaryings;
11
+ private static readonly _gatherMacros;
12
+ private readonly _gatherPass;
13
+ private readonly _primitive;
14
+ private readonly _subPrimitive;
15
+ private readonly _transformFeedback;
16
+ private _simulationBinding;
17
+ private _renderBinding;
18
+ private _pendingParentTrajectoryBinding;
19
+ private _pendingParentStart;
20
+ private _pendingChildStart;
21
+ private _pendingChildrenPerParent;
22
+ private _pendingParentCount;
23
+ private _activeGatherProgram;
24
+ get simulationBinding(): VertexBufferBinding;
25
+ get renderBinding(): VertexBufferBinding;
26
+ constructor(engine: Engine, shader: Shader, particleCapacity: number, needsRenderBinding: boolean);
27
+ resize(particleCapacity: number, mappings: ReadonlyArray<ElementRangeMapping>): void;
28
+ copyActiveRangeForRendering(firstActiveIndex: number, firstFreeIndex: number): void;
29
+ enqueueParentTrajectory(parentTrajectoryBinding: VertexBufferBinding, parentIndex: number, firstChildIndex: number, childCount: number): void;
30
+ flush(): void;
31
+ destroy(): void;
32
+ private _createSpawnStateBinding;
33
+ private _drawPendingBatch;
34
+ private _drawBatch;
35
+ private _beginGatherScope;
36
+ }
@@ -0,0 +1,17 @@
1
+ import type { ParticleRenderer } from "./ParticleRenderer";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class ParticleSystemManager {
6
+ private readonly _renderers;
7
+ private readonly _orderedRenderers;
8
+ private _topologyDirty;
9
+ add(renderer: ParticleRenderer): void;
10
+ remove(renderer: ParticleRenderer): void;
11
+ update(deltaTime: number): void;
12
+ /**
13
+ * @internal
14
+ */
15
+ _markTopologyDirty(): void;
16
+ private _rebuildTopology;
17
+ }
@@ -0,0 +1,48 @@
1
+ import type { Engine } from "../Engine";
2
+ import type { ElementRangeMapping } from "../graphic/ElementRangeMapping";
3
+ import type { VertexBufferBinding } from "../graphic/VertexBufferBinding";
4
+ import type { Shader } from "../shader/Shader";
5
+ import type { ShaderData } from "../shader/ShaderData";
6
+ /**
7
+ * @internal
8
+ * Particle-specific Transform Feedback simulation.
9
+ */
10
+ export declare class ParticleTransformFeedbackSimulator {
11
+ private static readonly _deltaTimeProperty;
12
+ private static readonly _resetTrajectoryProperty;
13
+ private static readonly _firstNewParticleProperty;
14
+ private static readonly _firstFreeParticleProperty;
15
+ private static readonly _stateVaryings;
16
+ private static readonly _trajectoryStateVaryings;
17
+ private static readonly _inputBindings;
18
+ /** Whether parent trajectory data is captured for sub-emitters. */
19
+ readonly trajectoryEnabled: boolean;
20
+ private readonly _simulator;
21
+ private readonly _stateInputVertexElements;
22
+ /**
23
+ * The current read buffer binding for the render pass.
24
+ */
25
+ get readBinding(): VertexBufferBinding;
26
+ constructor(engine: Engine, shader: Shader, trajectoryEnabled: boolean, particleCount: number);
27
+ /**
28
+ * Resize feedback buffers.
29
+ * @param particleCount - Number of particles to allocate
30
+ * @param mappings - Ranges to preserve from the previous buffers
31
+ */
32
+ resize(particleCount: number, mappings: ReadonlyArray<ElementRangeMapping>): void;
33
+ /**
34
+ * Run one simulation step.
35
+ * @param shaderData - Shader data with current macros and uniforms
36
+ * @param particleCount - Total particle slot count
37
+ * @param firstElement - First particle index to update in the ring buffer
38
+ * @param firstFree - First free particle index in ring buffer
39
+ * @param firstNew - First particle initialized during this update
40
+ * @param deltaTime - Frame delta time
41
+ * @param resetTrajectory - Whether to discard the trajectory baseline from before a culling pause, or undefined when
42
+ * trajectory feedback is disabled
43
+ * @param particleInputBinding - Particle input vertex buffer binding
44
+ * @param subEmitterSpawnStateBinding - Resolved sub-emitter spawn state, when present
45
+ */
46
+ update(shaderData: ShaderData, particleCount: number, firstElement: number, firstFree: number, firstNew: number, deltaTime: number, resetTrajectory: boolean | undefined, particleInputBinding: VertexBufferBinding, subEmitterSpawnStateBinding?: VertexBufferBinding): void;
47
+ destroy(): void;
48
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Defines how emitter velocity is applied to particles.
3
+ */
4
+ export declare enum ParticleInheritVelocityMode {
5
+ /**
6
+ * Samples emitter velocity when each particle is emitted, then scales it over that particle's lifetime.
7
+ */
8
+ Initial = 0,
9
+ /**
10
+ * Samples the emitter's current velocity every frame and scales it over each particle's lifetime.
11
+ * Only effective in World simulation and requires WebGL2.
12
+ */
13
+ Current = 1
14
+ }
@@ -1 +1,26 @@
1
- export {};
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare enum ParticleRandomSubSeeds {
5
+ Burst = 592910910,
6
+ StartDelay = 322376503,
7
+ StartColor = 306581307,
8
+ StartSize = 1793934638,
9
+ StartRotation = 3737431713,
10
+ randomizeRotationDirection = 2527743459,
11
+ StartLifetime = 2368504881,
12
+ StartSpeed = 4085612399,
13
+ VelocityOverLifetime = 3774601268,
14
+ ColorOverLifetime = 326370691,
15
+ SizeOverLifetime = 1494990940,
16
+ RotationOverLifetime = 1089181156,
17
+ TextureSheetAnimation = 197469413,
18
+ Shape = 2941263940,
19
+ GravityModifier = 2759560269,
20
+ ForceOverLifetime = 3875246972,
21
+ LimitVelocityOverLifetime = 3047300990,
22
+ Noise = 4105357473,
23
+ SubEmitter = 2622110509,
24
+ EmissionRate = 2625893077,
25
+ InheritVelocity = 3401255
26
+ }
@@ -2,10 +2,10 @@
2
2
  * Control how Particle Generator apply transform scale.
3
3
  */
4
4
  export declare enum ParticleScaleMode {
5
- /** Scale the Particle Generator using the entire transform hierarchy. */
6
- Hierarchy = 0,
7
- /** Scale the Particle Generator using only its own transform scale. (Ignores parent scale). */
5
+ /** Scale the Particle Generator using the world scale, including all parent transforms. */
6
+ World = 0,
7
+ /** Scale the Particle Generator using only its own transform scale, ignoring parent scale. */
8
8
  Local = 1,
9
- /** Only apply transform scale to the shape component, which controls where particles are spawned, but does not affect their size or movement. */
10
- World = 2
9
+ /** Scale only the emitter shape positions; particle size and movement are unaffected. */
10
+ Shape = 2
11
11
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Optional parent properties a sub-emitter inherits
3
+ * Sub particles are always emitted at the parent particle's position; these flags only select
4
+ * which additional properties are inherited on top of that.
5
+ */
6
+ export declare enum ParticleSubEmitterInheritProperty {
7
+ /** Inherit no additional properties; sub particles are still emitted at the parent's position. */
8
+ None = 0,
9
+ /** Multiply parent's current color into the sub particle's start color. */
10
+ Color = 1,
11
+ /** Multiply parent's current size into the sub particle's start size. */
12
+ Size = 2,
13
+ /** Add parent's current rotation onto the sub particle's start rotation. */
14
+ Rotation = 4,
15
+ /** Emit the sub particle along the parent's velocity direction. */
16
+ Velocity = 8
17
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Particle sub emitter trigger type.
3
+ */
4
+ export declare enum ParticleSubEmitterType {
5
+ /**
6
+ * Evaluates the target system's emission timeline independently for each living parent particle.
7
+ * @remarks Supports Rate over Time and Burst, but not Rate over Distance.
8
+ */
9
+ Birth = 0,
10
+ /** Triggered when a parent particle dies (lifetime expired). */
11
+ Death = 1
12
+ }
@@ -1 +1,6 @@
1
- export {};
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare enum ParticleBillboardVertexAttribute {
5
+ cornerTextureCoordinate = "a_CornerTextureCoordinate"
6
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ * Vertex attributes for the Transform Feedback buffer.
4
+ */
5
+ export declare enum ParticleFeedbackVertexAttribute {
6
+ Position = "a_FeedbackPosition",
7
+ Velocity = "a_FeedbackVelocity",
8
+ WorldPosition = "a_FeedbackWorldPosition",
9
+ TrajectoryVelocity = "a_FeedbackTrajectoryVelocity"
10
+ }