@woosh/meep-engine 3.33.0 → 3.34.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 (419) hide show
  1. package/editor/Editor.d.ts.map +1 -1
  2. package/editor/Editor.js +0 -3
  3. package/editor/ecs/component/prototypeObjectEditor.js +1 -165
  4. package/editor/ecs/component/registerBasicTypeEditors.d.ts.map +1 -1
  5. package/editor/ecs/component/registerBasicTypeEditors.js +0 -5
  6. package/editor/ecs/component/registerEngineComponentEditors.d.ts.map +1 -1
  7. package/editor/ecs/component/registerEngineComponentEditors.js +0 -20
  8. package/editor/process/SymbolicDisplayProcess.d.ts.map +1 -1
  9. package/editor/process/SymbolicDisplayProcess.js +100 -106
  10. package/editor/prototypeEditorShell.d.ts.map +1 -1
  11. package/editor/prototypeEditorShell.js +190 -186
  12. package/editor/templates/entity_templates.d.ts.map +1 -1
  13. package/editor/templates/entity_templates.js +10 -27
  14. package/editor/view/makeEntityDecorators.js +2 -2
  15. package/package.json +1 -1
  16. package/src/{engine/graphics/particles/particular/engine → core/geom/3d/aabb}/MovingBoundingBox.d.ts +3 -3
  17. package/src/core/geom/3d/aabb/MovingBoundingBox.d.ts.map +1 -0
  18. package/src/{engine/graphics/particles/particular/engine → core/geom/3d/aabb}/MovingBoundingBox.js +5 -5
  19. package/src/core/math/lookup/RGBA_LUT_HEATMAP_IR.d.ts +3 -0
  20. package/src/core/math/lookup/RGBA_LUT_HEATMAP_IR.d.ts.map +1 -0
  21. package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGBA_LUT_HEATMAP_IR.js +1 -1
  22. package/src/core/math/lookup/RGB_LUT_INFERNO.d.ts +6 -0
  23. package/src/core/math/lookup/RGB_LUT_INFERNO.d.ts.map +1 -0
  24. package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_INFERNO.js +1 -1
  25. package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_TURBO.d.ts +1 -1
  26. package/src/core/math/lookup/RGB_LUT_TURBO.d.ts.map +1 -0
  27. package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_TURBO.js +1 -1
  28. package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_VIRIDIS.d.ts +1 -1
  29. package/src/core/math/lookup/RGB_LUT_VIRIDIS.d.ts.map +1 -0
  30. package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_VIRIDIS.js +1 -1
  31. package/src/engine/animation/AnimatedActions.d.ts.map +1 -1
  32. package/src/engine/animation/AnimatedActions.js +2 -4
  33. package/src/engine/animation/AnimationUtils.d.ts +1 -17
  34. package/src/engine/animation/AnimationUtils.d.ts.map +1 -1
  35. package/src/engine/animation/AnimationUtils.js +138 -246
  36. package/src/engine/ecs/EntityManager.d.ts +1 -1
  37. package/src/engine/ecs/EntityManager.d.ts.map +1 -1
  38. package/src/engine/ecs/EntityManager.js +2 -2
  39. package/src/engine/ecs/storage/binary/SERIALIZATION_COVERAGE.md +268 -275
  40. package/src/engine/ecs/storage/populateEngineSerializationRegistry.d.ts.map +1 -1
  41. package/src/engine/ecs/storage/populateEngineSerializationRegistry.js +0 -10
  42. package/src/engine/graphics/geometry/distribute_points_on_indexed_triangles.d.ts.map +1 -0
  43. package/src/engine/graphics/{particles/particular/engine/utils → geometry}/distribute_points_on_indexed_triangles.js +3 -3
  44. package/src/engine/graphics/{particles/particular/engine/utils/volume → texture/sampler}/lut_to_sampler.d.ts +1 -1
  45. package/src/engine/graphics/texture/sampler/lut_to_sampler.d.ts.map +1 -0
  46. package/src/engine/graphics/{particles/particular/engine/utils/volume → texture/sampler}/lut_to_sampler.js +1 -1
  47. package/src/engine/graphics3/GPUParticleEmitterSystem.d.ts +0 -3
  48. package/src/engine/graphics3/GPUParticleEmitterSystem.d.ts.map +1 -1
  49. package/src/engine/graphics3/GPUParticleEmitterSystem.js +0 -3
  50. package/src/engine/network/NetworkSession.d.ts +1 -1
  51. package/src/engine/network/NetworkSession.js +1 -1
  52. package/src/engine/physics/cloth/MEASUREMENTS.md +115 -0
  53. package/src/engine/physics/cloth/solver/cloth_contact_find.d.ts.map +1 -1
  54. package/src/engine/physics/cloth/solver/cloth_contact_find.js +2 -0
  55. package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts +9 -0
  56. package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts.map +1 -1
  57. package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.js +30 -7
  58. package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
  59. package/src/engine/sound/ecs/audio/AudioEmitterSystem.d.ts.map +1 -1
  60. package/src/engine/sound/ecs/audio/AudioEmitterSystem.js +12 -2
  61. package/src/engine/sound/ecs/audio/LiveEmitterSet.d.ts +11 -2
  62. package/src/engine/sound/ecs/audio/LiveEmitterSet.d.ts.map +1 -1
  63. package/src/engine/sound/ecs/audio/LiveEmitterSet.js +14 -7
  64. package/src/engine/sound/ecs/audio/SpatialAudioIndex.d.ts +6 -15
  65. package/src/engine/sound/ecs/audio/SpatialAudioIndex.d.ts.map +1 -1
  66. package/src/engine/sound/ecs/audio/SpatialAudioIndex.js +161 -174
  67. package/src/shade/device/mock/SoftwareGPUBuffer.d.ts +5 -3
  68. package/src/shade/device/mock/SoftwareGPUBuffer.d.ts.map +1 -1
  69. package/src/shade/device/mock/SoftwareGPUBuffer.js +32 -3
  70. package/src/shade/playground/caldera/main.js +73 -60
  71. package/src/shade/playground/vgeo_runtime/main.js +25 -77
  72. package/src/shade/playground/vgeo_scene/main.js +2231 -2217
  73. package/src/shade/renderer/GraphicsContext.d.ts +7 -0
  74. package/src/shade/renderer/GraphicsContext.d.ts.map +1 -1
  75. package/src/shade/renderer/GraphicsContext.js +11 -2
  76. package/src/shade/renderer/Renderer.d.ts.map +1 -1
  77. package/src/shade/renderer/Renderer.js +38 -0
  78. package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts +8 -0
  79. package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts.map +1 -1
  80. package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.js +21 -0
  81. package/src/shade/renderer/extension/RENDER_EXTENSION_DESIGN.md +1 -1
  82. package/src/shade/renderer/geometry/GPUGeometryManager.d.ts.map +1 -1
  83. package/src/shade/renderer/geometry/GPUGeometryManager.js +9 -10
  84. package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.d.ts +5 -0
  85. package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.d.ts.map +1 -1
  86. package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.js +11 -0
  87. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryPool.d.ts +12 -0
  88. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryPool.d.ts.map +1 -1
  89. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryPool.js +25 -0
  90. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts +115 -101
  91. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts.map +1 -1
  92. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.js +282 -140
  93. package/src/shade/renderer/geometry/virtual/runtime/REVIEW_LEDGER.md +30 -0
  94. package/src/shade/renderer/geometry/virtual/runtime/RUNTIME_PLAN_2026_09_14.md +4 -1
  95. package/src/shade/renderer/geometry/virtual/runtime/SHADOW_PLAN_2026_09_28.md +536 -0
  96. package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.d.ts +6 -2
  97. package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.d.ts.map +1 -1
  98. package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.js +68 -19
  99. package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.d.ts +2 -1
  100. package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.d.ts.map +1 -1
  101. package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.js +17 -1
  102. package/src/shade/renderer/geometry/virtual/runtime/VGeoResidency.d.ts +4 -0
  103. package/src/shade/renderer/geometry/virtual/runtime/VGeoResidency.d.ts.map +1 -1
  104. package/src/shade/renderer/geometry/virtual/runtime/VGeoResidency.js +42 -12
  105. package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts +93 -12
  106. package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts.map +1 -1
  107. package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.js +166 -20
  108. package/src/shade/renderer/geometry/virtual/runtime/cut/VGEO_CUT_PARAMS_STRUCT.d.ts.map +1 -1
  109. package/src/shade/renderer/geometry/virtual/runtime/cut/VGEO_CUT_PARAMS_STRUCT.js +30 -7
  110. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.d.ts.map +1 -1
  111. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.js +12 -5
  112. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_claim.d.ts.map +1 -1
  113. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_claim.js +2 -2
  114. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.d.ts.map +1 -1
  115. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.js +23 -13
  116. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_queue_remainder.d.ts.map +1 -1
  117. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_queue_remainder.js +1 -2
  118. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_seed.d.ts.map +1 -1
  119. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_seed.js +1 -2
  120. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_traverse.d.ts.map +1 -1
  121. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_traverse.js +10 -6
  122. package/src/shade/renderer/geometry/virtual/runtime/cut/vgeo_cut_feedback_layout.d.ts +45 -17
  123. package/src/shade/renderer/geometry/virtual/runtime/cut/vgeo_cut_feedback_layout.d.ts.map +1 -1
  124. package/src/shade/renderer/geometry/virtual/runtime/cut/vgeo_cut_feedback_layout.js +61 -19
  125. package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_if_enabled.d.ts +8 -11
  126. package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_if_enabled.d.ts.map +1 -1
  127. package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_if_enabled.js +9 -16
  128. package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_instances_to_meshlets.d.ts.map +1 -1
  129. package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_instances_to_meshlets.js +25 -10
  130. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_FEEDBACK_OFFSET.js +10 -8
  131. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.d.ts +1 -0
  132. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.js +19 -7
  133. package/src/shade/renderer/geometry/virtual/runtime/make_vgeo_page_worker.d.ts +4 -2
  134. package/src/shade/renderer/geometry/virtual/runtime/make_vgeo_page_worker.d.ts.map +1 -1
  135. package/src/shade/renderer/geometry/virtual/runtime/make_vgeo_page_worker.js +4 -2
  136. package/src/shade/renderer/global_illumination/brick4/Brick4LightMap.d.ts +4 -0
  137. package/src/shade/renderer/global_illumination/brick4/Brick4LightMap.d.ts.map +1 -1
  138. package/src/shade/renderer/global_illumination/brick4/Brick4LightMap.js +7 -0
  139. package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.d.ts.map +1 -1
  140. package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.js +1 -0
  141. package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
  142. package/src/shade/renderer/material/GPUMaterialManager.d.ts.map +1 -1
  143. package/src/shade/renderer/material/GPUMaterialManager.js +2 -0
  144. package/src/shade/renderer/particles/DESIGN.md +4 -10
  145. package/src/shade/renderer/particles/ParticleConstants.d.ts +1 -3
  146. package/src/shade/renderer/particles/ParticleConstants.d.ts.map +1 -1
  147. package/src/shade/renderer/particles/ParticleConstants.js +1 -3
  148. package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.d.ts +3 -4
  149. package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.d.ts.map +1 -1
  150. package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.js +3 -4
  151. package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.d.ts +45 -0
  152. package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.d.ts.map +1 -0
  153. package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.js +99 -0
  154. package/src/shade/renderer/rasterize/bucket/rasterization_opaque_buckets.d.ts +4 -4
  155. package/src/shade/renderer/rasterize/bucket/rasterization_opaque_buckets.js +36 -36
  156. package/src/shade/renderer/rasterize/bucket/shader_gather_bucket.d.ts +15 -0
  157. package/src/shade/renderer/rasterize/bucket/shader_gather_bucket.d.ts.map +1 -0
  158. package/src/shade/renderer/rasterize/bucket/shader_gather_bucket.js +103 -0
  159. package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.d.ts +3 -0
  160. package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.d.ts.map +1 -1
  161. package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.js +6 -1
  162. package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.d.ts +26 -0
  163. package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.d.ts.map +1 -0
  164. package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.js +91 -0
  165. package/src/shade/renderer/rasterize/fast/graph_gather_meshes_from_buckets.d.ts +22 -0
  166. package/src/shade/renderer/rasterize/fast/graph_gather_meshes_from_buckets.d.ts.map +1 -0
  167. package/src/shade/renderer/rasterize/fast/graph_gather_meshes_from_buckets.js +102 -0
  168. package/src/shade/renderer/rasterize/fast/graph_rasterize_scene_fast.d.ts +2 -1
  169. package/src/shade/renderer/rasterize/fast/graph_rasterize_scene_fast.d.ts.map +1 -1
  170. package/src/shade/renderer/rasterize/fast/graph_rasterize_scene_fast.js +28 -24
  171. package/src/shade/renderer/rasterize/standard/graph_rasterize_partial_opaque.d.ts.map +1 -1
  172. package/src/shade/renderer/rasterize/standard/graph_rasterize_partial_opaque.js +32 -28
  173. package/src/shade/renderer/rasterize/standard/graph_rasterize_remaining_opaque.d.ts.map +1 -1
  174. package/src/shade/renderer/rasterize/standard/graph_rasterize_remaining_opaque.js +9 -105
  175. package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.d.ts +5 -0
  176. package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.d.ts.map +1 -1
  177. package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.js +11 -0
  178. package/src/shade/renderer/scene/GPUSceneContext.d.ts +11 -3
  179. package/src/shade/renderer/scene/GPUSceneContext.d.ts.map +1 -1
  180. package/src/shade/renderer/scene/GPUSceneContext.js +93 -21
  181. package/src/shade/renderer/scene/rows/GPUSceneRows.d.ts +4 -1
  182. package/src/shade/renderer/scene/rows/GPUSceneRows.d.ts.map +1 -1
  183. package/src/shade/renderer/scene/rows/GPUSceneRows.js +5 -23
  184. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
  185. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +63 -0
  186. package/src/shade/renderer/shadow/map/SHADOWMAP_VGEO_TAU_SCALE.d.ts +12 -0
  187. package/src/shade/renderer/shadow/map/SHADOWMAP_VGEO_TAU_SCALE.d.ts.map +1 -0
  188. package/src/shade/renderer/shadow/map/SHADOWMAP_VGEO_TAU_SCALE.js +11 -0
  189. package/src/shade/renderer/shadow/map/Shadowmap.d.ts +15 -0
  190. package/src/shade/renderer/shadow/map/Shadowmap.d.ts.map +1 -1
  191. package/src/shade/renderer/shadow/map/Shadowmap.js +17 -0
  192. package/src/shade/renderer/shadow/map/shadowmap_caster_detail_pending.d.ts +25 -0
  193. package/src/shade/renderer/shadow/map/shadowmap_caster_detail_pending.d.ts.map +1 -0
  194. package/src/shade/renderer/shadow/map/shadowmap_caster_detail_pending.js +22 -0
  195. package/src/shade/renderer/shadow/map/shadowmap_update_score.d.ts.map +1 -1
  196. package/src/shade/renderer/shadow/map/shadowmap_update_score.js +5 -2
  197. package/src/shade/renderer/texture/TextureManager.d.ts +2 -1
  198. package/src/shade/renderer/texture/TextureManager.d.ts.map +1 -1
  199. package/src/shade/renderer/texture/TextureManager.js +4 -1
  200. package/src/shade/renderer/texture/mipmaps/WebGPUMipmapGenerator.js +1 -1
  201. package/src/shade/renderer/util/Uint32BufferSamplingStats.d.ts +9 -1
  202. package/src/shade/renderer/util/Uint32BufferSamplingStats.d.ts.map +1 -1
  203. package/src/shade/renderer/util/Uint32BufferSamplingStats.js +55 -5
  204. package/src/shade/renderer/view/ViewManager.d.ts +7 -1
  205. package/src/shade/renderer/view/ViewManager.d.ts.map +1 -1
  206. package/src/shade/renderer/view/ViewManager.js +17 -1
  207. package/src/shade/renderer/volumetrics/GPUSceneVolumetrics.d.ts.map +1 -1
  208. package/src/shade/renderer/volumetrics/GPUSceneVolumetrics.js +1 -0
  209. package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts +0 -20
  210. package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts.map +0 -1
  211. package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.js +0 -35
  212. package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts +0 -12
  213. package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts.map +0 -1
  214. package/editor/ecs/component/editors/ecs/ParameterTrackEditor.js +0 -17
  215. package/editor/ecs/component/editors/ecs/ParameterTrackSetEditor.d.ts +0 -14
  216. package/editor/ecs/component/editors/ecs/ParameterTrackSetEditor.d.ts.map +0 -1
  217. package/editor/ecs/component/editors/ecs/ParameterTrackSetEditor.js +0 -18
  218. package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.d.ts +0 -52
  219. package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.d.ts.map +0 -1
  220. package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.js +0 -58
  221. package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts +0 -47
  222. package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts.map +0 -1
  223. package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.js +0 -58
  224. package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.d.ts +0 -16
  225. package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.d.ts.map +0 -1
  226. package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.js +0 -21
  227. package/editor/particles/rebuildParticleEmitter.d.ts +0 -11
  228. package/editor/particles/rebuildParticleEmitter.d.ts.map +0 -1
  229. package/editor/particles/rebuildParticleEmitter.js +0 -31
  230. package/editor/process/ParticleEmitterRebuildProcess.d.ts +0 -66
  231. package/editor/process/ParticleEmitterRebuildProcess.d.ts.map +0 -1
  232. package/editor/process/ParticleEmitterRebuildProcess.js +0 -217
  233. package/editor/process/symbolic/ParticleEmitterSymbolicDisplay.d.ts +0 -18
  234. package/editor/process/symbolic/ParticleEmitterSymbolicDisplay.d.ts.map +0 -1
  235. package/editor/process/symbolic/ParticleEmitterSymbolicDisplay.js +0 -140
  236. package/src/engine/animation/removeEntityGenericEffect.d.ts +0 -18
  237. package/src/engine/animation/removeEntityGenericEffect.d.ts.map +0 -1
  238. package/src/engine/animation/removeEntityGenericEffect.js +0 -160
  239. package/src/engine/animation/removeEntityWithMeshParticlesEffect.d.ts +0 -16
  240. package/src/engine/animation/removeEntityWithMeshParticlesEffect.d.ts.map +0 -1
  241. package/src/engine/animation/removeEntityWithMeshParticlesEffect.js +0 -194
  242. package/src/engine/graphics/ecs/sprite/Sprite.d.ts +0 -15
  243. package/src/engine/graphics/ecs/sprite/Sprite.d.ts.map +0 -1
  244. package/src/engine/graphics/ecs/sprite/Sprite.js +0 -14
  245. package/src/engine/graphics/ecs/sprite/SpriteSystemPE.d.ts +0 -11
  246. package/src/engine/graphics/ecs/sprite/SpriteSystemPE.d.ts.map +0 -1
  247. package/src/engine/graphics/ecs/sprite/SpriteSystemPE.js +0 -144
  248. package/src/engine/graphics/particles/particular/engine/MovingBoundingBox.d.ts.map +0 -1
  249. package/src/engine/graphics/particles/particular/engine/ParticularEngine.d.ts +0 -61
  250. package/src/engine/graphics/particles/particular/engine/ParticularEngine.d.ts.map +0 -1
  251. package/src/engine/graphics/particles/particular/engine/ParticularEngine.js +0 -229
  252. package/src/engine/graphics/particles/particular/engine/emitter/EmissionFromType.d.ts +0 -6
  253. package/src/engine/graphics/particles/particular/engine/emitter/EmissionFromType.d.ts.map +0 -1
  254. package/src/engine/graphics/particles/particular/engine/emitter/EmissionFromType.js +0 -8
  255. package/src/engine/graphics/particles/particular/engine/emitter/EmissionShapeType.d.ts +0 -7
  256. package/src/engine/graphics/particles/particular/engine/emitter/EmissionShapeType.d.ts.map +0 -1
  257. package/src/engine/graphics/particles/particular/engine/emitter/EmissionShapeType.js +0 -9
  258. package/src/engine/graphics/particles/particular/engine/emitter/PARTICLE_ATTRIBUTES.d.ts +0 -13
  259. package/src/engine/graphics/particles/particular/engine/emitter/PARTICLE_ATTRIBUTES.d.ts.map +0 -1
  260. package/src/engine/graphics/particles/particular/engine/emitter/PARTICLE_ATTRIBUTES.js +0 -12
  261. package/src/engine/graphics/particles/particular/engine/emitter/PARTICULAR_PARTICLE_SPECIFICATION.d.ts +0 -3
  262. package/src/engine/graphics/particles/particular/engine/emitter/PARTICULAR_PARTICLE_SPECIFICATION.d.ts.map +0 -1
  263. package/src/engine/graphics/particles/particular/engine/emitter/PARTICULAR_PARTICLE_SPECIFICATION.js +0 -84
  264. package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts +0 -285
  265. package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts.map +0 -1
  266. package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js +0 -1201
  267. package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.d.ts +0 -19
  268. package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.d.ts.map +0 -1
  269. package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.js +0 -67
  270. package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.d.ts +0 -197
  271. package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.d.ts.map +0 -1
  272. package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js +0 -398
  273. package/src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.d.ts +0 -5
  274. package/src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.d.ts.map +0 -1
  275. package/src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.js +0 -4
  276. package/src/engine/graphics/particles/particular/engine/emitter/ParticlePool.d.ts +0 -162
  277. package/src/engine/graphics/particles/particular/engine/emitter/ParticlePool.d.ts.map +0 -1
  278. package/src/engine/graphics/particles/particular/engine/emitter/ParticlePool.js +0 -472
  279. package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts +0 -10
  280. package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts.map +0 -1
  281. package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.js +0 -37
  282. package/src/engine/graphics/particles/particular/engine/emitter/distance_to_camera.d.ts +0 -9
  283. package/src/engine/graphics/particles/particular/engine/emitter/distance_to_camera.d.ts.map +0 -1
  284. package/src/engine/graphics/particles/particular/engine/emitter/distance_to_camera.js +0 -25
  285. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.d.ts +0 -19
  286. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.d.ts.map +0 -1
  287. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.js +0 -28
  288. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.d.ts +0 -19
  289. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.d.ts.map +0 -1
  290. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.js +0 -162
  291. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.d.ts +0 -5
  292. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.d.ts.map +0 -1
  293. package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.js +0 -103
  294. package/src/engine/graphics/particles/particular/engine/emitter/write_particle_patch_uv.d.ts +0 -8
  295. package/src/engine/graphics/particles/particular/engine/emitter/write_particle_patch_uv.d.ts.map +0 -1
  296. package/src/engine/graphics/particles/particular/engine/emitter/write_particle_patch_uv.js +0 -28
  297. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts +0 -2
  298. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts.map +0 -1
  299. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.js +0 -2
  300. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTableFlags.d.ts +0 -2
  301. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTableFlags.d.ts.map +0 -1
  302. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTableFlags.js +0 -2
  303. package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.d.ts +0 -60
  304. package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.d.ts.map +0 -1
  305. package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.js +0 -128
  306. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts +0 -47
  307. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts.map +0 -1
  308. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js +0 -77
  309. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts +0 -45
  310. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts.map +0 -1
  311. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.js +0 -93
  312. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts +0 -95
  313. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts.map +0 -1
  314. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.js +0 -239
  315. package/src/engine/graphics/particles/particular/engine/parameter/sample/RGBA_LUT_HEATMAP_IR.d.ts +0 -3
  316. package/src/engine/graphics/particles/particular/engine/parameter/sample/RGBA_LUT_HEATMAP_IR.d.ts.map +0 -1
  317. package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_INFERNO.d.ts +0 -6
  318. package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_INFERNO.d.ts.map +0 -1
  319. package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_TURBO.d.ts.map +0 -1
  320. package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_VIRIDIS.d.ts.map +0 -1
  321. package/src/engine/graphics/particles/particular/engine/renderers/ParticleRenderer.d.ts +0 -13
  322. package/src/engine/graphics/particles/particular/engine/renderers/ParticleRenderer.d.ts.map +0 -1
  323. package/src/engine/graphics/particles/particular/engine/renderers/ParticleRenderer.js +0 -28
  324. package/src/engine/graphics/particles/particular/engine/renderers/billboard/BILLBOARD_PARTICLE_SPECIFICATION.d.ts +0 -9
  325. package/src/engine/graphics/particles/particular/engine/renderers/billboard/BILLBOARD_PARTICLE_SPECIFICATION.d.ts.map +0 -1
  326. package/src/engine/graphics/particles/particular/engine/renderers/billboard/BILLBOARD_PARTICLE_SPECIFICATION.js +0 -24
  327. package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticlePool.d.ts +0 -13
  328. package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticlePool.d.ts.map +0 -1
  329. package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticlePool.js +0 -27
  330. package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticleRenderer.d.ts +0 -33
  331. package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticleRenderer.d.ts.map +0 -1
  332. package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticleRenderer.js +0 -80
  333. package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.d.ts +0 -49
  334. package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.d.ts.map +0 -1
  335. package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.js +0 -135
  336. package/src/engine/graphics/particles/particular/engine/shader/debugAtlas.d.ts +0 -7
  337. package/src/engine/graphics/particles/particular/engine/shader/debugAtlas.d.ts.map +0 -1
  338. package/src/engine/graphics/particles/particular/engine/shader/debugAtlas.js +0 -14
  339. package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.d.ts +0 -41
  340. package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.d.ts.map +0 -1
  341. package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.js +0 -59
  342. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepApplyForce.d.ts +0 -4
  343. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepApplyForce.d.ts.map +0 -1
  344. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepApplyForce.js +0 -56
  345. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseAcceleration.d.ts +0 -4
  346. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseAcceleration.d.ts.map +0 -1
  347. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseAcceleration.js +0 -84
  348. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.d.ts +0 -4
  349. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.d.ts.map +0 -1
  350. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.js +0 -80
  351. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.d.ts +0 -29
  352. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.d.ts.map +0 -1
  353. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.js +0 -43
  354. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepFixedPhysics.d.ts +0 -5
  355. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepFixedPhysics.d.ts.map +0 -1
  356. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepFixedPhysics.js +0 -104
  357. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepType.d.ts +0 -9
  358. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepType.d.ts.map +0 -1
  359. package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepType.js +0 -11
  360. package/src/engine/graphics/particles/particular/engine/simulator/update_parameters.d.ts +0 -9
  361. package/src/engine/graphics/particles/particular/engine/simulator/update_parameters.d.ts.map +0 -1
  362. package/src/engine/graphics/particles/particular/engine/simulator/update_parameters.js +0 -64
  363. package/src/engine/graphics/particles/particular/engine/utils/distributeParticlesOnObject3D.d.ts +0 -9
  364. package/src/engine/graphics/particles/particular/engine/utils/distributeParticlesOnObject3D.d.ts.map +0 -1
  365. package/src/engine/graphics/particles/particular/engine/utils/distributeParticlesOnObject3D.js +0 -172
  366. package/src/engine/graphics/particles/particular/engine/utils/distribute_points_on_indexed_triangles.d.ts.map +0 -1
  367. package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts +0 -20
  368. package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts.map +0 -1
  369. package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.js +0 -84
  370. package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.d.ts +0 -81
  371. package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.d.ts.map +0 -1
  372. package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.js +0 -200
  373. package/src/engine/graphics/particles/particular/engine/utils/volume/SamplingFunctionKind.d.ts +0 -6
  374. package/src/engine/graphics/particles/particular/engine/utils/volume/SamplingFunctionKind.d.ts.map +0 -1
  375. package/src/engine/graphics/particles/particular/engine/utils/volume/SamplingFunctionKind.js +0 -8
  376. package/src/engine/graphics/particles/particular/engine/utils/volume/lut_to_sampler.d.ts.map +0 -1
  377. package/src/engine/graphics/particles/particular/group/Operation.d.ts +0 -20
  378. package/src/engine/graphics/particles/particular/group/Operation.d.ts.map +0 -1
  379. package/src/engine/graphics/particles/particular/group/Operation.js +0 -20
  380. package/src/engine/graphics/particles/particular/group/OperationType.d.ts +0 -7
  381. package/src/engine/graphics/particles/particular/group/OperationType.d.ts.map +0 -1
  382. package/src/engine/graphics/particles/particular/group/OperationType.js +0 -9
  383. package/src/engine/graphics/particles/particular/group/ParticleAttribute.d.ts +0 -27
  384. package/src/engine/graphics/particles/particular/group/ParticleAttribute.d.ts.map +0 -1
  385. package/src/engine/graphics/particles/particular/group/ParticleAttribute.js +0 -27
  386. package/src/engine/graphics/particles/particular/group/ParticleAttributeType.d.ts +0 -8
  387. package/src/engine/graphics/particles/particular/group/ParticleAttributeType.d.ts.map +0 -1
  388. package/src/engine/graphics/particles/particular/group/ParticleAttributeType.js +0 -11
  389. package/src/engine/graphics/particles/particular/group/ParticleDataType.d.ts +0 -7
  390. package/src/engine/graphics/particles/particular/group/ParticleDataType.d.ts.map +0 -1
  391. package/src/engine/graphics/particles/particular/group/ParticleDataType.js +0 -10
  392. package/src/engine/graphics/particles/particular/group/ParticleSpecification.d.ts +0 -24
  393. package/src/engine/graphics/particles/particular/group/ParticleSpecification.d.ts.map +0 -1
  394. package/src/engine/graphics/particles/particular/group/ParticleSpecification.js +0 -48
  395. package/src/engine/graphics/particles/particular/group/itemSizeFromAttributeType.d.ts +0 -7
  396. package/src/engine/graphics/particles/particular/group/itemSizeFromAttributeType.d.ts.map +0 -1
  397. package/src/engine/graphics/particles/particular/group/itemSizeFromAttributeType.js +0 -20
  398. package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.d.ts +0 -6
  399. package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.d.ts.map +0 -1
  400. package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.js +0 -162
  401. package/src/engine/graphics/particles/particular/group/typedArrayConstructorFromDataType.d.ts +0 -8
  402. package/src/engine/graphics/particles/particular/group/typedArrayConstructorFromDataType.d.ts.map +0 -1
  403. package/src/engine/graphics/particles/particular/group/typedArrayConstructorFromDataType.js +0 -19
  404. package/src/engine/graphics3/ParticleEmitterSystem.d.ts +0 -77
  405. package/src/engine/graphics3/ParticleEmitterSystem.d.ts.map +0 -1
  406. package/src/engine/graphics3/ParticleEmitterSystem.js +0 -307
  407. package/src/engine/graphics3/ParticleEmitterSystem3.d.ts +0 -10
  408. package/src/engine/graphics3/ParticleEmitterSystem3.d.ts.map +0 -1
  409. package/src/engine/graphics3/ParticleEmitterSystem3.js +0 -10
  410. package/src/engine/graphics3/particles/GPUParticularRenderer.d.ts +0 -61
  411. package/src/engine/graphics3/particles/GPUParticularRenderer.d.ts.map +0 -1
  412. package/src/engine/graphics3/particles/GPUParticularRenderer.js +0 -627
  413. package/src/engine/graphics3/particles/particle_gpu_records.d.ts +0 -85
  414. package/src/engine/graphics3/particles/particle_gpu_records.d.ts.map +0 -1
  415. package/src/engine/graphics3/particles/particle_gpu_records.js +0 -227
  416. package/src/shade/renderer/particles/shaders/shader_particle_render.d.ts +0 -35
  417. package/src/shade/renderer/particles/shaders/shader_particle_render.d.ts.map +0 -1
  418. package/src/shade/renderer/particles/shaders/shader_particle_render.js +0 -135
  419. /package/src/engine/graphics/{particles/particular/engine/utils → geometry}/distribute_points_on_indexed_triangles.d.ts +0 -0
@@ -1,19 +0,0 @@
1
- export type ParticleEmitterFlag = number;
2
- export namespace ParticleEmitterFlag {
3
- let Sleeping: number;
4
- let Emitting: number;
5
- let SpritesNeedUpdate: number;
6
- let PreWarm: number;
7
- let Initialized: number;
8
- let Built: number;
9
- let PositionChanged: number;
10
- let DepthSorting: number;
11
- let BaseBoundsNeedUpdate: number;
12
- let HashNeedUpdate: number;
13
- let DepthReadDisabled: number;
14
- let DepthSoftDisabled: number;
15
- let ParticleBoundsNeedUpdate: number;
16
- let AlignOnVelocity: number;
17
- let Lit: number;
18
- }
19
- //# sourceMappingURL=ParticleEmitterFlag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParticleEmitterFlag.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.js"],"names":[],"mappings":"kCAEU,MAAM"}
@@ -1,67 +0,0 @@
1
- /**
2
- *
3
- * @enum {number}
4
- */
5
- export const ParticleEmitterFlag = {
6
- /**
7
- * Emitters that are asleep are not being simulated
8
- */
9
- Sleeping: 1,
10
- /**
11
- * Emitting emitters are allowed to produce new particles
12
- */
13
- Emitting: 2,
14
- /**
15
- * Internal flag, triggers sprite update in the emitter shader
16
- */
17
- SpritesNeedUpdate: 4,
18
- /**
19
- * When enabled emitter will start with pre-emitted particles
20
- */
21
- PreWarm: 8,
22
-
23
- /**
24
- * Emitter needs to be initialized before simulation can start proper
25
- */
26
- Initialized: 16,
27
-
28
- /**
29
- * Before emitter can be used it must be built first
30
- */
31
- Built: 32,
32
-
33
- /**
34
- * Position has changed since last update
35
- */
36
- PositionChanged: 64,
37
-
38
- /**
39
- * Whether particles should be sorted by depth or not
40
- */
41
- DepthSorting: 128,
42
- /**
43
- * Base bounds of particle layers require re-computation
44
- */
45
- BaseBoundsNeedUpdate: 256,
46
-
47
- /**
48
- * Hash value of the emitter is dirty and needs to be re-calculated
49
- */
50
- HashNeedUpdate: 512,
51
-
52
- DepthReadDisabled: 1024,
53
-
54
- DepthSoftDisabled: 2048,
55
-
56
- ParticleBoundsNeedUpdate: 4096,
57
-
58
- /**
59
- * Rotation of each particle will adjusted to world velocity vector
60
- */
61
- AlignOnVelocity: 8192,
62
-
63
- /**
64
- * Whether or not the particle should respond to lights
65
- */
66
- Lit: 16384
67
- };
@@ -1,197 +0,0 @@
1
- export class ParticleLayer {
2
- /**
3
- *
4
- * @type {String|null}
5
- */
6
- imageURL: string | null;
7
- /**
8
- * Patch of the image
9
- * @private
10
- * @type {AtlasPatch}
11
- */
12
- private __atlasPatch;
13
- /**
14
- * Determines a range of particle life expectancy
15
- * @readonly
16
- * @type {NumericInterval}
17
- */
18
- readonly particleLife: NumericInterval;
19
- /**
20
- * @readonly
21
- * @type {NumericInterval}
22
- */
23
- readonly particleSize: NumericInterval;
24
- /**
25
- * @readonly
26
- * @type {NumericInterval}
27
- */
28
- readonly particleRotation: NumericInterval;
29
- /**
30
- * Rotation speed of individual particles in Rad/s
31
- * @readonly
32
- * @type {NumericInterval}
33
- */
34
- readonly particleRotationSpeed: NumericInterval;
35
- /**
36
- *
37
- * @type {EmissionShapeType|number}
38
- */
39
- emissionShape: EmissionShapeType | number;
40
- /**
41
- *
42
- * @type {EmissionFromType|number}
43
- */
44
- emissionFrom: EmissionFromType | number;
45
- /**
46
- *
47
- * @type {number}
48
- */
49
- emissionRate: number;
50
- /**
51
- * When layer is added - it will immediately emit this number of particles
52
- * @type {number}
53
- */
54
- emissionImmediate: number;
55
- /**
56
- * @readonly
57
- * @type {ParameterTrackSet}
58
- */
59
- readonly parameterTracks: ParameterTrackSet;
60
- /**
61
- * @readonly
62
- * @type {Vector3}
63
- */
64
- readonly position: Vector3;
65
- /**
66
- * @readonly
67
- * @type {Vector3}
68
- */
69
- readonly scale: Vector3;
70
- /**
71
- * @readonly
72
- * @type {ConicRay}
73
- */
74
- readonly particleVelocityDirection: ConicRay;
75
- /**
76
- * @readonly
77
- * @type {NumericInterval}
78
- */
79
- readonly particleSpeed: NumericInterval;
80
- /**
81
- * Used to track how much time has past since a particle was last emitted
82
- * @type {number}
83
- */
84
- timeSinceLastEmission: number;
85
- /**
86
- * Determines if the layer is spawning new particles or not
87
- * @type {boolean}
88
- */
89
- isEmitting: boolean;
90
- /**
91
- * Simulation steps that are to be applied
92
- * @readonly
93
- * @type {List<SimulationStepDefinition>}
94
- */
95
- readonly steps: List<SimulationStepDefinition>;
96
- /**
97
- * transient property
98
- * @type {number}
99
- */
100
- scaledSpriteHalfSize: number;
101
- /**
102
- * @readonly
103
- * @type {AABB3}
104
- */
105
- readonly baseBoundingBox: AABB3;
106
- computeBoundsAttributes(): void;
107
- /**
108
- *
109
- * @returns {number}
110
- */
111
- computeScaledSpriteHalfSize(): number;
112
- /**
113
- * Bounding box without taking sprite size into account
114
- * @param {AABB3} result
115
- */
116
- computePointBoundingBox(result: AABB3): void;
117
- /**
118
- *
119
- * @param {AtlasPatch} patch
120
- */
121
- setAtlasPatch(patch: AtlasPatch): void;
122
- hash(): number;
123
- /**
124
- *
125
- * @param {ParticleLayer} other
126
- * @returns {boolean}
127
- */
128
- equals(other: ParticleLayer): boolean;
129
- toJSON(): {
130
- imageURL: string;
131
- particleLife: {
132
- min: number;
133
- max: number;
134
- };
135
- particleSize: {
136
- min: number;
137
- max: number;
138
- };
139
- particleRotation: {
140
- min: number;
141
- max: number;
142
- };
143
- particleRotationSpeed: {
144
- min: number;
145
- max: number;
146
- };
147
- emissionShape: number;
148
- emissionFrom: number;
149
- emissionRate: number;
150
- emissionImmediate: number;
151
- parameterTracks: any;
152
- position: {
153
- x: number;
154
- y: number;
155
- z: number;
156
- };
157
- scale: {
158
- x: number;
159
- y: number;
160
- z: number;
161
- };
162
- particleVelocityDirection: {
163
- direction: {
164
- x: number;
165
- y: number;
166
- z: number;
167
- };
168
- angle: number;
169
- };
170
- particleSpeed: {
171
- min: number;
172
- max: number;
173
- };
174
- steps: any;
175
- };
176
- fromJSON(json: any): void;
177
- /**
178
- * @deprecated
179
- * @param {BinaryBuffer} buffer
180
- */
181
- toBinaryBuffer(buffer: BinaryBuffer): void;
182
- /**
183
- * @deprecated
184
- * @param {BinaryBuffer} buffer
185
- */
186
- fromBinaryBuffer(buffer: BinaryBuffer): void;
187
- }
188
- import { NumericInterval } from "../../../../../../core/math/interval/NumericInterval.js";
189
- import { EmissionShapeType } from "./EmissionShapeType.js";
190
- import { EmissionFromType } from "./EmissionFromType.js";
191
- import { ParameterTrackSet } from "../parameter/ParameterTrackSet.js";
192
- import Vector3 from "../../../../../../core/geom/Vector3.js";
193
- import { ConicRay } from "../../../../../../core/geom/ConicRay.js";
194
- import List from "../../../../../../core/collection/list/List.js";
195
- import { SimulationStepDefinition } from "../simulator/SimulationStepDefinition.js";
196
- import { AABB3 } from "../../../../../../core/geom/3d/aabb/AABB3.js";
197
- //# sourceMappingURL=ParticleLayer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParticleLayer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js"],"names":[],"mappings":"AAkBA;IACI;;;OAGG;IACH,UAFU,SAAO,IAAI,CAEL;IAEhB;;;;OAIG;IACH,qBAAoB;IAEpB;;;;OAIG;IACH,uBAFU,eAAe,CAEgB;IAEzC;;;OAGG;IACH,uBAFU,eAAe,CAEoB;IAE7C;;;OAGG;IACH,2BAFU,eAAe,CAEoB;IAE7C;;;;OAIG;IACH,gCAFU,eAAe,CAEyB;IAElD;;;OAGG;IACH,eAFU,iBAAiB,GAAC,MAAM,CAEM;IAExC;;;OAGG;IACH,cAFU,gBAAgB,GAAC,MAAM,CAEM;IAEvC;;;OAGG;IACH,cAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,mBAFU,MAAM,CAEM;IAEtB;;;OAGG;IACH,0BAFU,iBAAiB,CAEe;IAE1C;;;OAGG;IACH,mBAFU,OAAO,CAEe;IAEhC;;;OAGG;IACH,gBAFU,OAAO,CAEY;IAE7B;;;OAGG;IACH,oCAFU,QAAQ,CAEyB;IAE3C;;;OAGG;IACH,wBAFU,eAAe,CAEiB;IAE1C;;;OAGG;IACH,uBAFU,MAAM,CAEU;IAE1B;;;OAGG;IACH,YAFU,OAAO,CAEC;IAElB;;;;OAIG;IACH,gBAFU,KAAK,wBAAwB,CAAC,CAErB;IAEnB;;;OAGG;IACH,sBAFU,MAAM,CAEU;IAE1B;;;OAGG;IACH,0BAFU,KAAK,CAE+B;IAG9C,gCAGC;IAED;;;OAGG;IACH,+BAFa,MAAM,CAiBlB;IAED;;;OAGG;IACH,gCAFW,KAAK,QA6Cf;IAED;;;OAGG;IACH,uCAEC;IAED,eAiBC;IAED;;;;OAIG;IACH,cAHW,aAAa,GACX,OAAO,CAiBnB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkBC;IAED,0BA+DC;IAED;;;OAGG;IACH,2CAeC;IAED;;;OAGG;IACH,6CAkBC;CACJ;gCAvY+B,yDAAyD;kCAOvD,wBAAwB;iCADzB,uBAAuB;kCAHtB,mCAAmC;oBAJjD,wCAAwC;yBADnC,yCAAyC;iBAHjD,gDAAgD;yCASxB,0CAA0C;sBAR7D,8CAA8C"}
@@ -1,398 +0,0 @@
1
- import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
2
- import List from "../../../../../../core/collection/list/List.js";
3
- import { AABB3 } from "../../../../../../core/geom/3d/aabb/AABB3.js";
4
- import { cone_compute_bounding_box } from "../../../../../../core/geom/3d/cone/cone_compute_bounding_box.js";
5
- import { ConicRay } from "../../../../../../core/geom/ConicRay.js";
6
- import Vector3 from "../../../../../../core/geom/Vector3.js";
7
- import { NumericInterval } from "../../../../../../core/math/interval/NumericInterval.js";
8
- import { computeHashFloat } from "../../../../../../core/primitives/numbers/computeHashFloat.js";
9
- import { computeStringHash } from "../../../../../../core/primitives/strings/computeStringHash.js";
10
- import { ParameterTrackSet } from "../parameter/ParameterTrackSet.js";
11
- import { SimulationStepDefinition } from "../simulator/SimulationStepDefinition.js";
12
- import { SimulationStepType } from "../simulator/SimulationStepType.js";
13
- import { EmissionFromType } from "./EmissionFromType.js";
14
- import { EmissionShapeType } from "./EmissionShapeType.js";
15
- import { ParticleParameters } from "./ParticleParameters.js";
16
-
17
- const aabb3 = new AABB3(0, 0, 0, 0, 0, 0);
18
-
19
- export class ParticleLayer {
20
- /**
21
- *
22
- * @type {String|null}
23
- */
24
- imageURL = null;
25
-
26
- /**
27
- * Patch of the image
28
- * @private
29
- * @type {AtlasPatch}
30
- */
31
- __atlasPatch = null;
32
-
33
- /**
34
- * Determines a range of particle life expectancy
35
- * @readonly
36
- * @type {NumericInterval}
37
- */
38
- particleLife = new NumericInterval(1, 1);
39
-
40
- /**
41
- * @readonly
42
- * @type {NumericInterval}
43
- */
44
- particleSize = new NumericInterval(0.1, 0.2);
45
-
46
- /**
47
- * @readonly
48
- * @type {NumericInterval}
49
- */
50
- particleRotation = new NumericInterval(0, 0);
51
-
52
- /**
53
- * Rotation speed of individual particles in Rad/s
54
- * @readonly
55
- * @type {NumericInterval}
56
- */
57
- particleRotationSpeed = new NumericInterval(0, 0);
58
-
59
- /**
60
- *
61
- * @type {EmissionShapeType|number}
62
- */
63
- emissionShape = EmissionShapeType.Point;
64
-
65
- /**
66
- *
67
- * @type {EmissionFromType|number}
68
- */
69
- emissionFrom = EmissionFromType.Volume;
70
-
71
- /**
72
- *
73
- * @type {number}
74
- */
75
- emissionRate = 1;
76
-
77
- /**
78
- * When layer is added - it will immediately emit this number of particles
79
- * @type {number}
80
- */
81
- emissionImmediate = 0;
82
-
83
- /**
84
- * @readonly
85
- * @type {ParameterTrackSet}
86
- */
87
- parameterTracks = new ParameterTrackSet();
88
-
89
- /**
90
- * @readonly
91
- * @type {Vector3}
92
- */
93
- position = new Vector3(0, 0, 0);
94
-
95
- /**
96
- * @readonly
97
- * @type {Vector3}
98
- */
99
- scale = new Vector3(1, 1, 1);
100
-
101
- /**
102
- * @readonly
103
- * @type {ConicRay}
104
- */
105
- particleVelocityDirection = new ConicRay();
106
-
107
- /**
108
- * @readonly
109
- * @type {NumericInterval}
110
- */
111
- particleSpeed = new NumericInterval(0, 0);
112
-
113
- /**
114
- * Used to track how much time has past since a particle was last emitted
115
- * @type {number}
116
- */
117
- timeSinceLastEmission = 0;
118
-
119
- /**
120
- * Determines if the layer is spawning new particles or not
121
- * @type {boolean}
122
- */
123
- isEmitting = true;
124
-
125
- /**
126
- * Simulation steps that are to be applied
127
- * @readonly
128
- * @type {List<SimulationStepDefinition>}
129
- */
130
- steps = new List();
131
-
132
- /**
133
- * transient property
134
- * @type {number}
135
- */
136
- scaledSpriteHalfSize = -1;
137
-
138
- /**
139
- * @readonly
140
- * @type {AABB3}
141
- */
142
- baseBoundingBox = new AABB3(0, 0, 0, 0, 0, 0);
143
-
144
-
145
- computeBoundsAttributes() {
146
- this.scaledSpriteHalfSize = this.computeScaledSpriteHalfSize();
147
- this.computePointBoundingBox(this.baseBoundingBox);
148
- }
149
-
150
- /**
151
- *
152
- * @returns {number}
153
- */
154
- computeScaledSpriteHalfSize() {
155
-
156
- //compute maximum particle size
157
- let maxParticleSize = this.particleSize.max;
158
-
159
- const scaleTrack = this.parameterTracks.getTrackByName(ParticleParameters.Scale);
160
-
161
- if (scaleTrack !== undefined) {
162
- //scale track is present, take it into account
163
- const lookupTable = scaleTrack.track;
164
-
165
- maxParticleSize = maxParticleSize * lookupTable.valueMax;
166
- }
167
-
168
- return maxParticleSize / 2;
169
- }
170
-
171
- /**
172
- * Bounding box without taking sprite size into account
173
- * @param {AABB3} result
174
- */
175
- computePointBoundingBox(result) {
176
- let x0, y0, z0, x1, y1, z1;
177
-
178
-
179
- //take velocity into account
180
- const maxDisplacement = this.particleSpeed.max * this.particleLife.max;
181
-
182
-
183
- const particleVelocityDirection = this.particleVelocityDirection;
184
- const direction = particleVelocityDirection.direction;
185
-
186
- //displace by current position
187
- const position = this.position;
188
-
189
- cone_compute_bounding_box(
190
- aabb3,
191
- position.x, position.y, position.z,
192
- direction.x, direction.y, direction.z,
193
- particleVelocityDirection.angle, maxDisplacement
194
- );
195
-
196
- x0 = aabb3.x0;
197
- y0 = aabb3.y0;
198
- z0 = aabb3.z0;
199
- x1 = aabb3.x1;
200
- y1 = aabb3.y1;
201
- z1 = aabb3.z1;
202
-
203
- //scale the emitter layer
204
- const scale = this.scale;
205
-
206
- if (this.emissionShape !== EmissionShapeType.Point) {
207
- x0 -= 0.5 * scale.x;
208
- y0 -= 0.5 * scale.y;
209
- z0 -= 0.5 * scale.z;
210
-
211
- x1 += 0.5 * scale.x;
212
- y1 += 0.5 * scale.y;
213
- z1 += 0.5 * scale.z;
214
- }
215
-
216
-
217
- result.setBounds(x0, y0, z0, x1, y1, z1);
218
- }
219
-
220
- /**
221
- *
222
- * @param {AtlasPatch} patch
223
- */
224
- setAtlasPatch(patch) {
225
- this.__atlasPatch = patch;
226
- }
227
-
228
- hash() {
229
- return combine_hash(
230
- computeStringHash(this.imageURL),
231
- this.particleLife.hash(),
232
- this.particleSize.hash(),
233
- this.particleRotation.hash(),
234
- this.particleRotationSpeed.hash(),
235
- this.emissionShape,
236
- this.emissionFrom,
237
- computeHashFloat(this.emissionRate),
238
- this.emissionImmediate,
239
- this.parameterTracks.hash(),
240
- this.position.hash(),
241
- this.scale.hash(),
242
- this.particleVelocityDirection.hash(),
243
- this.particleSpeed.hash()
244
- );
245
- }
246
-
247
- /**
248
- *
249
- * @param {ParticleLayer} other
250
- * @returns {boolean}
251
- */
252
- equals(other) {
253
- return this.imageURL === other.imageURL
254
- && this.particleLife.equals(other.particleLife)
255
- && this.particleSize.equals(other.particleSize)
256
- && this.particleRotation.equals(other.particleRotation)
257
- && this.particleRotationSpeed.equals(other.particleRotationSpeed)
258
- && this.emissionShape === other.emissionShape
259
- && this.emissionFrom === other.emissionFrom
260
- && this.emissionRate === other.emissionRate
261
- && this.emissionImmediate === other.emissionImmediate
262
- && this.parameterTracks.equals(other.parameterTracks)
263
- && this.position.equals(other.position)
264
- && this.scale.equals(other.scale)
265
- && this.particleVelocityDirection.equals(other.particleVelocityDirection)
266
- && this.particleSpeed.equals(other.particleSpeed);
267
- }
268
-
269
- toJSON() {
270
- return {
271
- imageURL: this.imageURL,
272
- particleLife: this.particleLife.toJSON(),
273
- particleSize: this.particleSize.toJSON(),
274
- particleRotation: this.particleRotation.toJSON(),
275
- particleRotationSpeed: this.particleRotationSpeed.toJSON(),
276
- emissionShape: this.emissionShape,
277
- emissionFrom: this.emissionFrom,
278
- emissionRate: this.emissionRate,
279
- emissionImmediate: this.emissionImmediate,
280
- parameterTracks: this.parameterTracks.toJSON(),
281
- position: this.position.toJSON(),
282
- scale: this.scale.toJSON(),
283
- particleVelocityDirection: this.particleVelocityDirection.toJSON(),
284
- particleSpeed: this.particleSpeed.toJSON(),
285
- steps: this.steps.toJSON()
286
- };
287
- }
288
-
289
- fromJSON(json) {
290
- this.imageURL = json.imageURL;
291
- this.particleLife.fromJSON(json.particleLife);
292
- this.particleSize.fromJSON(json.particleSize);
293
- this.particleRotation.fromJSON(json.particleRotation);
294
- this.particleRotationSpeed.fromJSON(json.particleRotationSpeed);
295
- this.emissionShape = json.emissionShape;
296
- this.emissionFrom = json.emissionFrom;
297
-
298
- if (typeof json.emissionRate === "number") {
299
- this.emissionRate = json.emissionRate;
300
- } else {
301
- this.emissionRate = 1;
302
- }
303
-
304
- if (typeof json.emissionImmediate === "number") {
305
- this.emissionImmediate = json.emissionImmediate;
306
- } else {
307
- this.emissionImmediate = 0;
308
- }
309
-
310
- if (json.parameterTracks !== undefined) {
311
- this.parameterTracks.fromJSON(json.parameterTracks);
312
- } else {
313
- this.parameterTracks.clear();
314
- }
315
-
316
- if (json.position !== undefined) {
317
- this.position.fromJSON(json.position);
318
- } else {
319
- this.position.set(0, 0, 0);
320
- }
321
-
322
- if (json.scale !== undefined) {
323
- this.scale.fromJSON(json.scale);
324
- } else {
325
- this.scale.set(1, 1, 1);
326
- }
327
-
328
- if (json.particleVelocityDirection !== undefined) {
329
- this.particleVelocityDirection.fromJSON(json.particleVelocityDirection);
330
- } else {
331
- this.particleVelocityDirection.angle = Math.PI;
332
- this.particleVelocityDirection.direction.set(0, 1, 0);
333
- }
334
-
335
- if (json.particleSpeed !== undefined) {
336
- this.particleSpeed.fromJSON(json.particleSpeed);
337
- } else {
338
- this.particleSpeed.set(0, 0);
339
- }
340
-
341
- if (json.steps !== undefined) {
342
- this.steps.fromJSON(json.steps, SimulationStepDefinition);
343
- } else {
344
- // steps are not defined, use "fixed physics" for backwards compatibility
345
-
346
- this.steps.reset();
347
- this.steps.add(SimulationStepDefinition.from(SimulationStepType.FixedPhysics, []));
348
- }
349
-
350
- //reset bounds attributes
351
- this.scaledSpriteHalfSize = -1;
352
- }
353
-
354
- /**
355
- * @deprecated
356
- * @param {BinaryBuffer} buffer
357
- */
358
- toBinaryBuffer(buffer) {
359
- buffer.writeUTF8String(this.imageURL);
360
- this.particleLife.toBinaryBuffer(buffer);
361
- this.particleSize.toBinaryBuffer(buffer);
362
- this.particleRotation.toBinaryBuffer(buffer);
363
- this.particleRotationSpeed.toBinaryBuffer(buffer);
364
- buffer.writeUint8(this.emissionShape);
365
- buffer.writeUint8(this.emissionFrom);
366
- buffer.writeFloat64(this.emissionRate);
367
- buffer.writeUint32(this.emissionImmediate);
368
- this.parameterTracks.toBinaryBuffer(buffer);
369
- this.position.toBinaryBufferFloat32(buffer);
370
- this.scale.toBinaryBufferFloat32(buffer);
371
- this.particleVelocityDirection.toBinaryBuffer(buffer);
372
- this.particleSpeed.toBinaryBuffer(buffer);
373
- }
374
-
375
- /**
376
- * @deprecated
377
- * @param {BinaryBuffer} buffer
378
- */
379
- fromBinaryBuffer(buffer) {
380
- this.imageURL = buffer.readUTF8String();
381
- this.particleLife.fromBinaryBuffer(buffer);
382
- this.particleSize.fromBinaryBuffer(buffer);
383
- this.particleRotation.fromBinaryBuffer(buffer);
384
- this.particleRotationSpeed.fromBinaryBuffer(buffer);
385
- this.emissionShape = buffer.readUint8();
386
- this.emissionFrom = buffer.readUint8();
387
- this.emissionRate = buffer.readFloat64();
388
- this.emissionImmediate = buffer.readUint32();
389
- this.parameterTracks.fromBinaryBuffer(buffer);
390
- this.position.fromBinaryBufferFloat32(buffer);
391
- this.scale.fromBinaryBufferFloat32(buffer);
392
- this.particleVelocityDirection.fromBinaryBuffer(buffer);
393
- this.particleSpeed.fromBinaryBuffer(buffer);
394
-
395
- //reset bounds attributes
396
- this.scaledSpriteHalfSize = -1;
397
- }
398
- }
@@ -1,5 +0,0 @@
1
- export namespace ParticleParameters {
2
- let Scale: string;
3
- let Color: string;
4
- }
5
- //# sourceMappingURL=ParticleParameters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParticleParameters.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.js"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export const ParticleParameters = {
2
- Scale: 'scale',
3
- Color: 'color'
4
- };