@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.
- package/editor/Editor.d.ts.map +1 -1
- package/editor/Editor.js +0 -3
- package/editor/ecs/component/prototypeObjectEditor.js +1 -165
- package/editor/ecs/component/registerBasicTypeEditors.d.ts.map +1 -1
- package/editor/ecs/component/registerBasicTypeEditors.js +0 -5
- package/editor/ecs/component/registerEngineComponentEditors.d.ts.map +1 -1
- package/editor/ecs/component/registerEngineComponentEditors.js +0 -20
- package/editor/process/SymbolicDisplayProcess.d.ts.map +1 -1
- package/editor/process/SymbolicDisplayProcess.js +100 -106
- package/editor/prototypeEditorShell.d.ts.map +1 -1
- package/editor/prototypeEditorShell.js +190 -186
- package/editor/templates/entity_templates.d.ts.map +1 -1
- package/editor/templates/entity_templates.js +10 -27
- package/editor/view/makeEntityDecorators.js +2 -2
- package/package.json +1 -1
- package/src/{engine/graphics/particles/particular/engine → core/geom/3d/aabb}/MovingBoundingBox.d.ts +3 -3
- package/src/core/geom/3d/aabb/MovingBoundingBox.d.ts.map +1 -0
- package/src/{engine/graphics/particles/particular/engine → core/geom/3d/aabb}/MovingBoundingBox.js +5 -5
- package/src/core/math/lookup/RGBA_LUT_HEATMAP_IR.d.ts +3 -0
- package/src/core/math/lookup/RGBA_LUT_HEATMAP_IR.d.ts.map +1 -0
- package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGBA_LUT_HEATMAP_IR.js +1 -1
- package/src/core/math/lookup/RGB_LUT_INFERNO.d.ts +6 -0
- package/src/core/math/lookup/RGB_LUT_INFERNO.d.ts.map +1 -0
- package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_INFERNO.js +1 -1
- package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_TURBO.d.ts +1 -1
- package/src/core/math/lookup/RGB_LUT_TURBO.d.ts.map +1 -0
- package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_TURBO.js +1 -1
- package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_VIRIDIS.d.ts +1 -1
- package/src/core/math/lookup/RGB_LUT_VIRIDIS.d.ts.map +1 -0
- package/src/{engine/graphics/particles/particular/engine/parameter/sample → core/math/lookup}/RGB_LUT_VIRIDIS.js +1 -1
- package/src/engine/animation/AnimatedActions.d.ts.map +1 -1
- package/src/engine/animation/AnimatedActions.js +2 -4
- package/src/engine/animation/AnimationUtils.d.ts +1 -17
- package/src/engine/animation/AnimationUtils.d.ts.map +1 -1
- package/src/engine/animation/AnimationUtils.js +138 -246
- package/src/engine/ecs/EntityManager.d.ts +1 -1
- package/src/engine/ecs/EntityManager.d.ts.map +1 -1
- package/src/engine/ecs/EntityManager.js +2 -2
- package/src/engine/ecs/storage/binary/SERIALIZATION_COVERAGE.md +268 -275
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.d.ts.map +1 -1
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.js +0 -10
- package/src/engine/graphics/geometry/distribute_points_on_indexed_triangles.d.ts.map +1 -0
- package/src/engine/graphics/{particles/particular/engine/utils → geometry}/distribute_points_on_indexed_triangles.js +3 -3
- package/src/engine/graphics/{particles/particular/engine/utils/volume → texture/sampler}/lut_to_sampler.d.ts +1 -1
- package/src/engine/graphics/texture/sampler/lut_to_sampler.d.ts.map +1 -0
- package/src/engine/graphics/{particles/particular/engine/utils/volume → texture/sampler}/lut_to_sampler.js +1 -1
- package/src/engine/graphics3/GPUParticleEmitterSystem.d.ts +0 -3
- package/src/engine/graphics3/GPUParticleEmitterSystem.d.ts.map +1 -1
- package/src/engine/graphics3/GPUParticleEmitterSystem.js +0 -3
- package/src/engine/network/NetworkSession.d.ts +1 -1
- package/src/engine/network/NetworkSession.js +1 -1
- package/src/engine/physics/cloth/MEASUREMENTS.md +115 -0
- package/src/engine/physics/cloth/solver/cloth_contact_find.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/cloth_contact_find.js +2 -0
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts +9 -0
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.js +30 -7
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.js +12 -2
- package/src/engine/sound/ecs/audio/LiveEmitterSet.d.ts +11 -2
- package/src/engine/sound/ecs/audio/LiveEmitterSet.d.ts.map +1 -1
- package/src/engine/sound/ecs/audio/LiveEmitterSet.js +14 -7
- package/src/engine/sound/ecs/audio/SpatialAudioIndex.d.ts +6 -15
- package/src/engine/sound/ecs/audio/SpatialAudioIndex.d.ts.map +1 -1
- package/src/engine/sound/ecs/audio/SpatialAudioIndex.js +161 -174
- package/src/shade/device/mock/SoftwareGPUBuffer.d.ts +5 -3
- package/src/shade/device/mock/SoftwareGPUBuffer.d.ts.map +1 -1
- package/src/shade/device/mock/SoftwareGPUBuffer.js +32 -3
- package/src/shade/playground/caldera/main.js +73 -60
- package/src/shade/playground/vgeo_runtime/main.js +25 -77
- package/src/shade/playground/vgeo_scene/main.js +2231 -2217
- package/src/shade/renderer/GraphicsContext.d.ts +7 -0
- package/src/shade/renderer/GraphicsContext.d.ts.map +1 -1
- package/src/shade/renderer/GraphicsContext.js +11 -2
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +38 -0
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts +8 -0
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts.map +1 -1
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.js +21 -0
- package/src/shade/renderer/extension/RENDER_EXTENSION_DESIGN.md +1 -1
- package/src/shade/renderer/geometry/GPUGeometryManager.d.ts.map +1 -1
- package/src/shade/renderer/geometry/GPUGeometryManager.js +9 -10
- package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.d.ts +5 -0
- package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.d.ts.map +1 -1
- package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.js +11 -0
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryPool.d.ts +12 -0
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryPool.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryPool.js +25 -0
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts +115 -101
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.js +282 -140
- package/src/shade/renderer/geometry/virtual/runtime/REVIEW_LEDGER.md +30 -0
- package/src/shade/renderer/geometry/virtual/runtime/RUNTIME_PLAN_2026_09_14.md +4 -1
- package/src/shade/renderer/geometry/virtual/runtime/SHADOW_PLAN_2026_09_28.md +536 -0
- package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.d.ts +6 -2
- package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.js +68 -19
- package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.d.ts +2 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.js +17 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoResidency.d.ts +4 -0
- package/src/shade/renderer/geometry/virtual/runtime/VGeoResidency.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoResidency.js +42 -12
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts +93 -12
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.js +166 -20
- package/src/shade/renderer/geometry/virtual/runtime/cut/VGEO_CUT_PARAMS_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/VGEO_CUT_PARAMS_STRUCT.js +30 -7
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.js +12 -5
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_claim.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_claim.js +2 -2
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.js +23 -13
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_queue_remainder.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_queue_remainder.js +1 -2
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_seed.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_seed.js +1 -2
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_traverse.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_traverse.js +10 -6
- package/src/shade/renderer/geometry/virtual/runtime/cut/vgeo_cut_feedback_layout.d.ts +45 -17
- package/src/shade/renderer/geometry/virtual/runtime/cut/vgeo_cut_feedback_layout.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/vgeo_cut_feedback_layout.js +61 -19
- package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_if_enabled.d.ts +8 -11
- package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_if_enabled.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_if_enabled.js +9 -16
- package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_instances_to_meshlets.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_instances_to_meshlets.js +25 -10
- package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_FEEDBACK_OFFSET.js +10 -8
- package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.d.ts +1 -0
- package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.js +19 -7
- package/src/shade/renderer/geometry/virtual/runtime/make_vgeo_page_worker.d.ts +4 -2
- package/src/shade/renderer/geometry/virtual/runtime/make_vgeo_page_worker.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/make_vgeo_page_worker.js +4 -2
- package/src/shade/renderer/global_illumination/brick4/Brick4LightMap.d.ts +4 -0
- package/src/shade/renderer/global_illumination/brick4/Brick4LightMap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/Brick4LightMap.js +7 -0
- package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.js +1 -0
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/material/GPUMaterialManager.d.ts.map +1 -1
- package/src/shade/renderer/material/GPUMaterialManager.js +2 -0
- package/src/shade/renderer/particles/DESIGN.md +4 -10
- package/src/shade/renderer/particles/ParticleConstants.d.ts +1 -3
- package/src/shade/renderer/particles/ParticleConstants.d.ts.map +1 -1
- package/src/shade/renderer/particles/ParticleConstants.js +1 -3
- package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.d.ts +3 -4
- package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.js +3 -4
- package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.d.ts +45 -0
- package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.js +99 -0
- package/src/shade/renderer/rasterize/bucket/rasterization_opaque_buckets.d.ts +4 -4
- package/src/shade/renderer/rasterize/bucket/rasterization_opaque_buckets.js +36 -36
- package/src/shade/renderer/rasterize/bucket/shader_gather_bucket.d.ts +15 -0
- package/src/shade/renderer/rasterize/bucket/shader_gather_bucket.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/bucket/shader_gather_bucket.js +103 -0
- package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.d.ts +3 -0
- package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.js +6 -1
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.d.ts +26 -0
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.js +91 -0
- package/src/shade/renderer/rasterize/fast/graph_gather_meshes_from_buckets.d.ts +22 -0
- package/src/shade/renderer/rasterize/fast/graph_gather_meshes_from_buckets.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/fast/graph_gather_meshes_from_buckets.js +102 -0
- package/src/shade/renderer/rasterize/fast/graph_rasterize_scene_fast.d.ts +2 -1
- package/src/shade/renderer/rasterize/fast/graph_rasterize_scene_fast.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/fast/graph_rasterize_scene_fast.js +28 -24
- package/src/shade/renderer/rasterize/standard/graph_rasterize_partial_opaque.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/standard/graph_rasterize_partial_opaque.js +32 -28
- package/src/shade/renderer/rasterize/standard/graph_rasterize_remaining_opaque.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/standard/graph_rasterize_remaining_opaque.js +9 -105
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.d.ts +5 -0
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.js +11 -0
- package/src/shade/renderer/scene/GPUSceneContext.d.ts +11 -3
- package/src/shade/renderer/scene/GPUSceneContext.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUSceneContext.js +93 -21
- package/src/shade/renderer/scene/rows/GPUSceneRows.d.ts +4 -1
- package/src/shade/renderer/scene/rows/GPUSceneRows.d.ts.map +1 -1
- package/src/shade/renderer/scene/rows/GPUSceneRows.js +5 -23
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +63 -0
- package/src/shade/renderer/shadow/map/SHADOWMAP_VGEO_TAU_SCALE.d.ts +12 -0
- package/src/shade/renderer/shadow/map/SHADOWMAP_VGEO_TAU_SCALE.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/SHADOWMAP_VGEO_TAU_SCALE.js +11 -0
- package/src/shade/renderer/shadow/map/Shadowmap.d.ts +15 -0
- package/src/shade/renderer/shadow/map/Shadowmap.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/Shadowmap.js +17 -0
- package/src/shade/renderer/shadow/map/shadowmap_caster_detail_pending.d.ts +25 -0
- package/src/shade/renderer/shadow/map/shadowmap_caster_detail_pending.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shadowmap_caster_detail_pending.js +22 -0
- package/src/shade/renderer/shadow/map/shadowmap_update_score.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/shadowmap_update_score.js +5 -2
- package/src/shade/renderer/texture/TextureManager.d.ts +2 -1
- package/src/shade/renderer/texture/TextureManager.d.ts.map +1 -1
- package/src/shade/renderer/texture/TextureManager.js +4 -1
- package/src/shade/renderer/texture/mipmaps/WebGPUMipmapGenerator.js +1 -1
- package/src/shade/renderer/util/Uint32BufferSamplingStats.d.ts +9 -1
- package/src/shade/renderer/util/Uint32BufferSamplingStats.d.ts.map +1 -1
- package/src/shade/renderer/util/Uint32BufferSamplingStats.js +55 -5
- package/src/shade/renderer/view/ViewManager.d.ts +7 -1
- package/src/shade/renderer/view/ViewManager.d.ts.map +1 -1
- package/src/shade/renderer/view/ViewManager.js +17 -1
- package/src/shade/renderer/volumetrics/GPUSceneVolumetrics.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/GPUSceneVolumetrics.js +1 -0
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts +0 -20
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts.map +0 -1
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.js +0 -35
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts +0 -12
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts.map +0 -1
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.js +0 -17
- package/editor/ecs/component/editors/ecs/ParameterTrackSetEditor.d.ts +0 -14
- package/editor/ecs/component/editors/ecs/ParameterTrackSetEditor.d.ts.map +0 -1
- package/editor/ecs/component/editors/ecs/ParameterTrackSetEditor.js +0 -18
- package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.d.ts +0 -52
- package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.d.ts.map +0 -1
- package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.js +0 -58
- package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts +0 -47
- package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts.map +0 -1
- package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.js +0 -58
- package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.d.ts +0 -16
- package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.d.ts.map +0 -1
- package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.js +0 -21
- package/editor/particles/rebuildParticleEmitter.d.ts +0 -11
- package/editor/particles/rebuildParticleEmitter.d.ts.map +0 -1
- package/editor/particles/rebuildParticleEmitter.js +0 -31
- package/editor/process/ParticleEmitterRebuildProcess.d.ts +0 -66
- package/editor/process/ParticleEmitterRebuildProcess.d.ts.map +0 -1
- package/editor/process/ParticleEmitterRebuildProcess.js +0 -217
- package/editor/process/symbolic/ParticleEmitterSymbolicDisplay.d.ts +0 -18
- package/editor/process/symbolic/ParticleEmitterSymbolicDisplay.d.ts.map +0 -1
- package/editor/process/symbolic/ParticleEmitterSymbolicDisplay.js +0 -140
- package/src/engine/animation/removeEntityGenericEffect.d.ts +0 -18
- package/src/engine/animation/removeEntityGenericEffect.d.ts.map +0 -1
- package/src/engine/animation/removeEntityGenericEffect.js +0 -160
- package/src/engine/animation/removeEntityWithMeshParticlesEffect.d.ts +0 -16
- package/src/engine/animation/removeEntityWithMeshParticlesEffect.d.ts.map +0 -1
- package/src/engine/animation/removeEntityWithMeshParticlesEffect.js +0 -194
- package/src/engine/graphics/ecs/sprite/Sprite.d.ts +0 -15
- package/src/engine/graphics/ecs/sprite/Sprite.d.ts.map +0 -1
- package/src/engine/graphics/ecs/sprite/Sprite.js +0 -14
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.d.ts +0 -11
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.d.ts.map +0 -1
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.js +0 -144
- package/src/engine/graphics/particles/particular/engine/MovingBoundingBox.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/ParticularEngine.d.ts +0 -61
- package/src/engine/graphics/particles/particular/engine/ParticularEngine.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/ParticularEngine.js +0 -229
- package/src/engine/graphics/particles/particular/engine/emitter/EmissionFromType.d.ts +0 -6
- package/src/engine/graphics/particles/particular/engine/emitter/EmissionFromType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/EmissionFromType.js +0 -8
- package/src/engine/graphics/particles/particular/engine/emitter/EmissionShapeType.d.ts +0 -7
- package/src/engine/graphics/particles/particular/engine/emitter/EmissionShapeType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/EmissionShapeType.js +0 -9
- package/src/engine/graphics/particles/particular/engine/emitter/PARTICLE_ATTRIBUTES.d.ts +0 -13
- package/src/engine/graphics/particles/particular/engine/emitter/PARTICLE_ATTRIBUTES.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/PARTICLE_ATTRIBUTES.js +0 -12
- package/src/engine/graphics/particles/particular/engine/emitter/PARTICULAR_PARTICLE_SPECIFICATION.d.ts +0 -3
- package/src/engine/graphics/particles/particular/engine/emitter/PARTICULAR_PARTICLE_SPECIFICATION.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/PARTICULAR_PARTICLE_SPECIFICATION.js +0 -84
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts +0 -285
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js +0 -1201
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.d.ts +0 -19
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.js +0 -67
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.d.ts +0 -197
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js +0 -398
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.d.ts +0 -5
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.js +0 -4
- package/src/engine/graphics/particles/particular/engine/emitter/ParticlePool.d.ts +0 -162
- package/src/engine/graphics/particles/particular/engine/emitter/ParticlePool.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticlePool.js +0 -472
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts +0 -10
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.js +0 -37
- package/src/engine/graphics/particles/particular/engine/emitter/distance_to_camera.d.ts +0 -9
- package/src/engine/graphics/particles/particular/engine/emitter/distance_to_camera.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/distance_to_camera.js +0 -25
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.d.ts +0 -19
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.js +0 -28
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.d.ts +0 -19
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.js +0 -162
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.d.ts +0 -5
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.js +0 -103
- package/src/engine/graphics/particles/particular/engine/emitter/write_particle_patch_uv.d.ts +0 -8
- package/src/engine/graphics/particles/particular/engine/emitter/write_particle_patch_uv.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/write_particle_patch_uv.js +0 -28
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts +0 -2
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.js +0 -2
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTableFlags.d.ts +0 -2
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTableFlags.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTableFlags.js +0 -2
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.d.ts +0 -60
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.js +0 -128
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts +0 -47
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js +0 -77
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts +0 -45
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.js +0 -93
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts +0 -95
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.js +0 -239
- package/src/engine/graphics/particles/particular/engine/parameter/sample/RGBA_LUT_HEATMAP_IR.d.ts +0 -3
- package/src/engine/graphics/particles/particular/engine/parameter/sample/RGBA_LUT_HEATMAP_IR.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_INFERNO.d.ts +0 -6
- package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_INFERNO.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_TURBO.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/sample/RGB_LUT_VIRIDIS.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/renderers/ParticleRenderer.d.ts +0 -13
- package/src/engine/graphics/particles/particular/engine/renderers/ParticleRenderer.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/renderers/ParticleRenderer.js +0 -28
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/BILLBOARD_PARTICLE_SPECIFICATION.d.ts +0 -9
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/BILLBOARD_PARTICLE_SPECIFICATION.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/BILLBOARD_PARTICLE_SPECIFICATION.js +0 -24
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticlePool.d.ts +0 -13
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticlePool.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticlePool.js +0 -27
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticleRenderer.d.ts +0 -33
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticleRenderer.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/renderers/billboard/SoftBillboardParticleRenderer.js +0 -80
- package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.d.ts +0 -49
- package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.js +0 -135
- package/src/engine/graphics/particles/particular/engine/shader/debugAtlas.d.ts +0 -7
- package/src/engine/graphics/particles/particular/engine/shader/debugAtlas.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/shader/debugAtlas.js +0 -14
- package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.d.ts +0 -41
- package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.js +0 -59
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepApplyForce.d.ts +0 -4
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepApplyForce.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepApplyForce.js +0 -56
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseAcceleration.d.ts +0 -4
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseAcceleration.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseAcceleration.js +0 -84
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.d.ts +0 -4
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.js +0 -80
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.d.ts +0 -29
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.js +0 -43
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepFixedPhysics.d.ts +0 -5
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepFixedPhysics.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepFixedPhysics.js +0 -104
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepType.d.ts +0 -9
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepType.js +0 -11
- package/src/engine/graphics/particles/particular/engine/simulator/update_parameters.d.ts +0 -9
- package/src/engine/graphics/particles/particular/engine/simulator/update_parameters.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/simulator/update_parameters.js +0 -64
- package/src/engine/graphics/particles/particular/engine/utils/distributeParticlesOnObject3D.d.ts +0 -9
- package/src/engine/graphics/particles/particular/engine/utils/distributeParticlesOnObject3D.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/utils/distributeParticlesOnObject3D.js +0 -172
- package/src/engine/graphics/particles/particular/engine/utils/distribute_points_on_indexed_triangles.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts +0 -20
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.js +0 -84
- package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.d.ts +0 -81
- package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.js +0 -200
- package/src/engine/graphics/particles/particular/engine/utils/volume/SamplingFunctionKind.d.ts +0 -6
- package/src/engine/graphics/particles/particular/engine/utils/volume/SamplingFunctionKind.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/utils/volume/SamplingFunctionKind.js +0 -8
- package/src/engine/graphics/particles/particular/engine/utils/volume/lut_to_sampler.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/Operation.d.ts +0 -20
- package/src/engine/graphics/particles/particular/group/Operation.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/Operation.js +0 -20
- package/src/engine/graphics/particles/particular/group/OperationType.d.ts +0 -7
- package/src/engine/graphics/particles/particular/group/OperationType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/OperationType.js +0 -9
- package/src/engine/graphics/particles/particular/group/ParticleAttribute.d.ts +0 -27
- package/src/engine/graphics/particles/particular/group/ParticleAttribute.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/ParticleAttribute.js +0 -27
- package/src/engine/graphics/particles/particular/group/ParticleAttributeType.d.ts +0 -8
- package/src/engine/graphics/particles/particular/group/ParticleAttributeType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/ParticleAttributeType.js +0 -11
- package/src/engine/graphics/particles/particular/group/ParticleDataType.d.ts +0 -7
- package/src/engine/graphics/particles/particular/group/ParticleDataType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/ParticleDataType.js +0 -10
- package/src/engine/graphics/particles/particular/group/ParticleSpecification.d.ts +0 -24
- package/src/engine/graphics/particles/particular/group/ParticleSpecification.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/ParticleSpecification.js +0 -48
- package/src/engine/graphics/particles/particular/group/itemSizeFromAttributeType.d.ts +0 -7
- package/src/engine/graphics/particles/particular/group/itemSizeFromAttributeType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/itemSizeFromAttributeType.js +0 -20
- package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.d.ts +0 -6
- package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.js +0 -162
- package/src/engine/graphics/particles/particular/group/typedArrayConstructorFromDataType.d.ts +0 -8
- package/src/engine/graphics/particles/particular/group/typedArrayConstructorFromDataType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/group/typedArrayConstructorFromDataType.js +0 -19
- package/src/engine/graphics3/ParticleEmitterSystem.d.ts +0 -77
- package/src/engine/graphics3/ParticleEmitterSystem.d.ts.map +0 -1
- package/src/engine/graphics3/ParticleEmitterSystem.js +0 -307
- package/src/engine/graphics3/ParticleEmitterSystem3.d.ts +0 -10
- package/src/engine/graphics3/ParticleEmitterSystem3.d.ts.map +0 -1
- package/src/engine/graphics3/ParticleEmitterSystem3.js +0 -10
- package/src/engine/graphics3/particles/GPUParticularRenderer.d.ts +0 -61
- package/src/engine/graphics3/particles/GPUParticularRenderer.d.ts.map +0 -1
- package/src/engine/graphics3/particles/GPUParticularRenderer.js +0 -627
- package/src/engine/graphics3/particles/particle_gpu_records.d.ts +0 -85
- package/src/engine/graphics3/particles/particle_gpu_records.d.ts.map +0 -1
- package/src/engine/graphics3/particles/particle_gpu_records.js +0 -227
- package/src/shade/renderer/particles/shaders/shader_particle_render.d.ts +0 -35
- package/src/shade/renderer/particles/shaders/shader_particle_render.d.ts.map +0 -1
- package/src/shade/renderer/particles/shaders/shader_particle_render.js +0 -135
- /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
|
package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.d.ts.map
DELETED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleParameters.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.js"],"names":[],"mappings":""}
|