@woosh/meep-engine 3.32.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/build/bundle-worker-terrain.js +1 -1
- 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/core/collection/table/RowFirstTable.d.ts +8 -0
- package/src/core/collection/table/RowFirstTable.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTable.js +40 -11
- 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/device/mock/SoftwareGPURenderPassEncoder.d.ts +20 -3
- package/src/shade/device/mock/SoftwareGPURenderPassEncoder.d.ts.map +1 -1
- package/src/shade/device/mock/SoftwareGPURenderPassEncoder.js +21 -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 +18 -0
- package/src/shade/renderer/GraphicsContext.d.ts.map +1 -1
- package/src/shade/renderer/GraphicsContext.js +63 -40
- 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/buffer/GPUBufferReadbackAllocator.d.ts +6 -5
- package/src/shade/renderer/buffer/GPUBufferReadbackAllocator.d.ts.map +1 -1
- package/src/shade/renderer/buffer/GPUBufferReadbackAllocator.js +241 -240
- package/src/shade/renderer/buffer/GPUBufferStagingAllocator.d.ts +51 -0
- package/src/shade/renderer/buffer/GPUBufferStagingAllocator.d.ts.map +1 -1
- package/src/shade/renderer/buffer/GPUBufferStagingAllocator.js +214 -28
- package/src/shade/renderer/dynamic/DynamicMeshAVBOITChannel.d.ts +2 -1
- package/src/shade/renderer/dynamic/DynamicMeshAVBOITChannel.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/DynamicMeshAVBOITChannel.js +19 -17
- package/src/shade/renderer/dynamic/GPUDynamicMeshDrawList.d.ts +70 -0
- package/src/shade/renderer/dynamic/GPUDynamicMeshDrawList.d.ts.map +1 -0
- package/src/shade/renderer/dynamic/GPUDynamicMeshDrawList.js +257 -0
- package/src/shade/renderer/dynamic/GPUDynamicMeshRenderer.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/GPUDynamicMeshRenderer.js +19 -34
- package/src/shade/renderer/dynamic/GPUDynamicMeshResidency.d.ts +6 -20
- package/src/shade/renderer/dynamic/GPUDynamicMeshResidency.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/GPUDynamicMeshResidency.js +42 -36
- package/src/shade/renderer/dynamic/chunk_dynamic_mesh_avboit_vertex.d.ts +2 -1
- package/src/shade/renderer/dynamic/chunk_dynamic_mesh_avboit_vertex.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/chunk_dynamic_mesh_avboit_vertex.js +4 -3
- package/src/shade/renderer/dynamic/chunk_dynamic_mesh_vertex.d.ts +4 -3
- package/src/shade/renderer/dynamic/chunk_dynamic_mesh_vertex.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/chunk_dynamic_mesh_vertex.js +7 -4
- package/src/shade/renderer/dynamic/graph_dynamic_mesh_avboit.d.ts +14 -15
- package/src/shade/renderer/dynamic/graph_dynamic_mesh_avboit.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/graph_dynamic_mesh_avboit.js +49 -83
- package/src/shade/renderer/dynamic/shader_dynamic_mesh.d.ts +19 -3
- package/src/shade/renderer/dynamic/shader_dynamic_mesh.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/shader_dynamic_mesh.js +26 -6
- package/src/shade/renderer/dynamic/shader_dynamic_mesh_avboit_draw.d.ts +2 -1
- package/src/shade/renderer/dynamic/shader_dynamic_mesh_avboit_draw.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/shader_dynamic_mesh_avboit_draw.js +12 -6
- package/src/shade/renderer/dynamic/shader_dynamic_mesh_avboit_splat.d.ts +3 -2
- package/src/shade/renderer/dynamic/shader_dynamic_mesh_avboit_splat.d.ts.map +1 -1
- package/src/shade/renderer/dynamic/shader_dynamic_mesh_avboit_splat.js +21 -13
- 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/postprocess/nss/NSS.d.ts +1 -1
- 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/native/avboit/AVBOIT_LEDGER.md +20 -0
- 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/shader/type/serde/write_gpu_typed_buffer.d.ts.map +1 -1
- package/src/shade/renderer/shader/type/serde/write_gpu_typed_buffer.js +8 -1
- 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 -12
- package/src/engine/graphics/ecs/sprite/Sprite.d.ts.map +0 -1
- package/src/engine/graphics/ecs/sprite/Sprite.js +0 -11
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.d.ts +0 -8
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.d.ts.map +0 -1
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.js +0 -141
- 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,5 +1,6 @@
|
|
|
1
1
|
import { assert } from "../../../core/assert.js";
|
|
2
2
|
import { BufferResourceDescriptor } from "../../device/graph/BufferResourceDescriptor.js";
|
|
3
|
+
import { warn_limited } from "../../util/warn_limited.js";
|
|
3
4
|
import { inspect_via_copy } from "../buffer/inspect_gpu_buffer.js";
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -50,6 +51,12 @@ export class Uint32BufferSamplingStats {
|
|
|
50
51
|
*/
|
|
51
52
|
#device;
|
|
52
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Set by {@link destroy}. A reading still in flight then applies nothing.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
*/
|
|
58
|
+
#destroyed = false;
|
|
59
|
+
|
|
53
60
|
/**
|
|
54
61
|
*
|
|
55
62
|
* @returns {GPUBuffer}
|
|
@@ -130,9 +137,17 @@ export class Uint32BufferSamplingStats {
|
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
/**
|
|
140
|
+
* Read the records back through a copy into a buffer taken from `buffers`, once `encoder` is
|
|
141
|
+
* submitted.
|
|
142
|
+
*
|
|
143
|
+
* A reading can be lost, and then nothing of it is applied: when this is destroyed while it is in
|
|
144
|
+
* flight, or when its buffer is destroyed under the mapping — which is what tearing `buffers` down
|
|
145
|
+
* does. A renderer torn down with a frame's reading still on the GPU does both, so a lost reading
|
|
146
|
+
* is an answer here, not an error.
|
|
133
147
|
*
|
|
134
148
|
* @param {ShadeGPUCommandContext} encoder
|
|
135
149
|
* @param {GPUBufferAllocator} buffers
|
|
150
|
+
* @returns {Promise<boolean>} whether the reading was applied
|
|
136
151
|
*/
|
|
137
152
|
async readback_explicit(encoder, buffers) {
|
|
138
153
|
const tmp_desc = new BufferResourceDescriptor();
|
|
@@ -146,18 +161,51 @@ export class Uint32BufferSamplingStats {
|
|
|
146
161
|
|
|
147
162
|
encoder.copyBufferToBuffer(stat_buffer, 0, tmp_buffer, 0);
|
|
148
163
|
|
|
164
|
+
const applied = await this.#read(encoder, tmp_buffer, size);
|
|
165
|
+
|
|
166
|
+
// back unmapped, whatever became of the reading. A pool torn down while it was in flight has
|
|
167
|
+
// already destroyed the buffer and no longer holds it, so it declines it
|
|
168
|
+
buffers.release(tmp_buffer);
|
|
169
|
+
|
|
170
|
+
return applied;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @param {ShadeGPUCommandContext} encoder
|
|
175
|
+
* @param {GPUBuffer} tmp_buffer
|
|
176
|
+
* @param {number} size
|
|
177
|
+
* @returns {Promise<boolean>} whether the reading was applied; `tmp_buffer` is unmapped either way
|
|
178
|
+
*/
|
|
179
|
+
async #read(encoder, tmp_buffer, size) {
|
|
149
180
|
await encoder.done;
|
|
150
181
|
|
|
151
|
-
|
|
182
|
+
if (this.#destroyed) {
|
|
183
|
+
// and the buffer may be too — mapping it would be a validation error, not an abort
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
try {
|
|
188
|
+
await tmp_buffer.mapAsync(GPUMapMode.READ, 0, size);
|
|
189
|
+
} catch (e) {
|
|
190
|
+
// An AbortError when the buffer was destroyed under the mapping. Torn down alongside this,
|
|
191
|
+
// that is the expected end of a reading in flight; on its own it is not
|
|
192
|
+
if (!this.#destroyed) {
|
|
193
|
+
warn_limited(`Uint32BufferSamplingStats: a reading was lost, its mapping failed (${e.name})`);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
152
198
|
|
|
153
|
-
|
|
199
|
+
// destroyed while the mapping was in flight: the records it would land in are gone
|
|
200
|
+
const applied = !this.#destroyed;
|
|
154
201
|
|
|
155
|
-
|
|
156
|
-
|
|
202
|
+
if (applied) {
|
|
203
|
+
this.#write_data(new Uint32Array(tmp_buffer.getMappedRange(0, size)));
|
|
204
|
+
}
|
|
157
205
|
|
|
158
206
|
tmp_buffer.unmap();
|
|
159
207
|
|
|
160
|
-
|
|
208
|
+
return applied;
|
|
161
209
|
}
|
|
162
210
|
|
|
163
211
|
async readback() {
|
|
@@ -250,6 +298,8 @@ export class Uint32BufferSamplingStats {
|
|
|
250
298
|
}
|
|
251
299
|
|
|
252
300
|
destroy() {
|
|
301
|
+
this.#destroyed = true;
|
|
302
|
+
|
|
253
303
|
this.#stat_buffer.destroy();
|
|
254
304
|
}
|
|
255
305
|
}
|
|
@@ -10,8 +10,14 @@ export class ViewManager {
|
|
|
10
10
|
* @param {GraphicsContext} graphics
|
|
11
11
|
* @param {CameraManager} cameras
|
|
12
12
|
* @param {SceneManager} scenes
|
|
13
|
+
* @param {Object} [options]
|
|
14
|
+
* @param {number} [options.virtual_geometry_tau_scale] how much coarser than the runtime's
|
|
15
|
+
* threshold the views this hands out cut virtual geometry — the owner of the views decides,
|
|
16
|
+
* since nothing in the runtime knows what kind of view it is cutting for
|
|
13
17
|
*/
|
|
14
|
-
constructor(graphics: GraphicsContext, cameras: CameraManager, scenes: SceneManager
|
|
18
|
+
constructor(graphics: GraphicsContext, cameras: CameraManager, scenes: SceneManager, { virtual_geometry_tau_scale }?: {
|
|
19
|
+
virtual_geometry_tau_scale?: number;
|
|
20
|
+
});
|
|
15
21
|
/**
|
|
16
22
|
*
|
|
17
23
|
* @return {SceneManager}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewManager.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/view/ViewManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewManager.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/view/ViewManager.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH;IAyCI;;;;;;;;;OASG;IACH,sBARW,eAAe,WACf,aAAa,UACb,YAAY;QAEK,0BAA0B,GAA3C,MAAM;OAchB;IA5CD;;;OAGG;IACH,8DAEC;IA0DD;;;;OAIG;IACH,aAHW,IAAI,GACF,OAAO,CAInB;IAED;;;;OAIG;IACH,aAHW,IAAI,GACF,cAAc,CAI1B;IAED;;;;;;;;;;;;;OAaG;IACH,cAFW,IAAI,QASd;IAED;;;;;;OAMG;IACH,WAFa,IAAI,CAQhB;;CACJ;8BA9IY,OAAO,uBAAuB,EAAE,eAAe;4BAC/C,OAAO,4BAA4B,EAAE,aAAa;2BAClD,OAAO,0BAA0B,EAAE,YAAY;mBAC/C,OAAO,WAAW,EAAE,IAAI;+BANN,qBAAqB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { assert } from "../../../core/assert.js";
|
|
1
2
|
import { HashMap } from "../../../core/collection/map/HashMap.js";
|
|
2
3
|
import { GPUViewContext } from "./GPUViewContext.js";
|
|
3
4
|
|
|
@@ -43,14 +44,28 @@ export class ViewManager {
|
|
|
43
44
|
*/
|
|
44
45
|
#graphics;
|
|
45
46
|
|
|
47
|
+
/**
|
|
48
|
+
* What every view this hands out starts its `VGeoViewCut.tau_scale` at.
|
|
49
|
+
* @type {number}
|
|
50
|
+
*/
|
|
51
|
+
#virtual_geometry_tau_scale;
|
|
52
|
+
|
|
46
53
|
/**
|
|
47
54
|
*
|
|
48
55
|
* @param {GraphicsContext} graphics
|
|
49
56
|
* @param {CameraManager} cameras
|
|
50
57
|
* @param {SceneManager} scenes
|
|
58
|
+
* @param {Object} [options]
|
|
59
|
+
* @param {number} [options.virtual_geometry_tau_scale] how much coarser than the runtime's
|
|
60
|
+
* threshold the views this hands out cut virtual geometry — the owner of the views decides,
|
|
61
|
+
* since nothing in the runtime knows what kind of view it is cutting for
|
|
51
62
|
*/
|
|
52
|
-
constructor(graphics, cameras, scenes) {
|
|
63
|
+
constructor(graphics, cameras, scenes, { virtual_geometry_tau_scale = 1 } = {}) {
|
|
64
|
+
assert.isNumber(virtual_geometry_tau_scale, 'virtual_geometry_tau_scale');
|
|
65
|
+
assert.greaterThan(virtual_geometry_tau_scale, 0, 'virtual_geometry_tau_scale');
|
|
66
|
+
|
|
53
67
|
this.#graphics = graphics;
|
|
68
|
+
this.#virtual_geometry_tau_scale = virtual_geometry_tau_scale;
|
|
54
69
|
|
|
55
70
|
this.#device = graphics.device;
|
|
56
71
|
this.#cameras = cameras;
|
|
@@ -70,6 +85,7 @@ export class ViewManager {
|
|
|
70
85
|
const gpu_ctx = new GPUViewContext(this.#graphics, scene, camera);
|
|
71
86
|
|
|
72
87
|
gpu_ctx.label = view.label;
|
|
88
|
+
gpu_ctx.virtual_geometry_cut.tau_scale = this.#virtual_geometry_tau_scale;
|
|
73
89
|
|
|
74
90
|
return gpu_ctx;
|
|
75
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUSceneVolumetrics.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/volumetrics/GPUSceneVolumetrics.js"],"names":[],"mappings":"AAOA;;;GAGG;AAEH;;;GAGG;AACH;IAkCI;;;;OAIG;IACH,4CAFW,gBAAgB,EAkB1B;IArDD;;OAEG;IACH,QAFU,gBAAgB,CAEpB;IAWN,gCAEC;IAOD,sCAEC;IA8BD,
|
|
1
|
+
{"version":3,"file":"GPUSceneVolumetrics.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/volumetrics/GPUSceneVolumetrics.js"],"names":[],"mappings":"AAOA;;;GAGG;AAEH;;;GAGG;AACH;IAkCI;;;;OAIG;IACH,4CAFW,gBAAgB,EAkB1B;IArDD;;OAEG;IACH,QAFU,gBAAgB,CAEpB;IAWN,gCAEC;IAOD,sCAEC;IA8BD,gBAGC;IAED;;;;OAIG;IACH,YAHW,eAAe,gBACf,MAAM,QA+ChB;;CAEJ;8BA1HY,OAAO,uBAAuB,EAAE,eAAe;+BAC/C,OAAO,uBAAuB,EAAE,gBAAgB;mCAN1B,8CAA8C;+BADlD,6BAA6B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interactive editors for particle parameter tracks: a draggable curve for the scalar
|
|
3
|
-
* `scale` track, a gradient with draggable stops for the `color` track. Tracks with any
|
|
4
|
-
* other name render nothing — the engine defines exactly these two.
|
|
5
|
-
*/
|
|
6
|
-
export class ParameterLookupTableEditor extends TypeEditor<any> {
|
|
7
|
-
constructor();
|
|
8
|
-
get schema(): {
|
|
9
|
-
properties: {
|
|
10
|
-
on: {
|
|
11
|
-
transient: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
build(parent: any, field: any, registry: any): ColorLutGradientView | ScalarLutCurveView;
|
|
16
|
-
}
|
|
17
|
-
import { TypeEditor } from "../../TypeEditor.js";
|
|
18
|
-
import { ColorLutGradientView } from "../../../../view/particles/ColorLutGradientView.js";
|
|
19
|
-
import { ScalarLutCurveView } from "../../../../view/particles/ScalarLutCurveView.js";
|
|
20
|
-
//# sourceMappingURL=ParameterLookupTableEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterLookupTableEditor.d.ts","sourceRoot":"","sources":["../../../../../../editor/ecs/component/editors/ecs/ParameterLookupTableEditor.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH;;IACI;;;;;;MAQC;IAED,yFAaC;CACJ;2BAhC0B,qBAAqB;qCAFX,oDAAoD;mCACtD,kDAAkD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ColorLutGradientView } from "../../../../view/particles/ColorLutGradientView.js";
|
|
2
|
-
import { ScalarLutCurveView } from "../../../../view/particles/ScalarLutCurveView.js";
|
|
3
|
-
import { TypeEditor } from "../../TypeEditor.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interactive editors for particle parameter tracks: a draggable curve for the scalar
|
|
7
|
-
* `scale` track, a gradient with draggable stops for the `color` track. Tracks with any
|
|
8
|
-
* other name render nothing — the engine defines exactly these two.
|
|
9
|
-
*/
|
|
10
|
-
export class ParameterLookupTableEditor extends TypeEditor {
|
|
11
|
-
get schema() {
|
|
12
|
-
return {
|
|
13
|
-
properties: {
|
|
14
|
-
on: {
|
|
15
|
-
transient: true
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
build(parent, field, registry) {
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @type {ParameterLookupTable}
|
|
25
|
-
*/
|
|
26
|
-
const lut = field.adapter.read(parent, field.name);
|
|
27
|
-
const trackName = field.adapter.read(parent, "name");
|
|
28
|
-
|
|
29
|
-
if (trackName === "scale") {
|
|
30
|
-
return new ScalarLutCurveView({ lut });
|
|
31
|
-
} else if (trackName === "color") {
|
|
32
|
-
return new ColorLutGradientView({ lut });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class ParameterTrackEditor extends ObjectEditor {
|
|
2
|
-
get schema(): {
|
|
3
|
-
properties: {
|
|
4
|
-
name: {
|
|
5
|
-
editor: EnumEditor;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
11
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
12
|
-
//# sourceMappingURL=ParameterTrackEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterTrackEditor.d.ts","sourceRoot":"","sources":["../../../../../../editor/ecs/component/editors/ecs/ParameterTrackEditor.js"],"names":[],"mappings":"AAMA;IACI;;;;;;MAQC;CACJ;6BAZ4B,8BAA8B;2BADhC,yBAAyB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ParticleParameters
|
|
3
|
-
} from "../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleParameters.js";
|
|
4
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
5
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
6
|
-
|
|
7
|
-
export class ParameterTrackEditor extends ObjectEditor {
|
|
8
|
-
get schema() {
|
|
9
|
-
return {
|
|
10
|
-
properties: {
|
|
11
|
-
name: {
|
|
12
|
-
editor: new EnumEditor(ParticleParameters)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class ParameterTrackSetEditor extends ObjectEditor {
|
|
2
|
-
get schema(): {
|
|
3
|
-
properties: {
|
|
4
|
-
tracks: {
|
|
5
|
-
type: typeof List;
|
|
6
|
-
type_parameters: (typeof ParameterTrack)[];
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
12
|
-
import List from "../../../../../src/core/collection/list/List.js";
|
|
13
|
-
import { ParameterTrack } from "../../../../../src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js";
|
|
14
|
-
//# sourceMappingURL=ParameterTrackSetEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterTrackSetEditor.d.ts","sourceRoot":"","sources":["../../../../../../editor/ecs/component/editors/ecs/ParameterTrackSetEditor.js"],"names":[],"mappings":"AAMA;IACI;;;;;;;MASC;CACJ;6BAhB4B,8BAA8B;iBAD1C,iDAAiD;+BAI3D,4FAA4F"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import List from "../../../../../src/core/collection/list/List.js";
|
|
2
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
3
|
-
import {
|
|
4
|
-
ParameterTrack
|
|
5
|
-
} from "../../../../../src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js";
|
|
6
|
-
|
|
7
|
-
export class ParameterTrackSetEditor extends ObjectEditor {
|
|
8
|
-
get schema() {
|
|
9
|
-
return {
|
|
10
|
-
properties: {
|
|
11
|
-
tracks: {
|
|
12
|
-
type: List,
|
|
13
|
-
type_parameters: [ParameterTrack],
|
|
14
|
-
},
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export class ParticleEmitterEditor extends ObjectEditor {
|
|
2
|
-
get schema(): {
|
|
3
|
-
properties: {
|
|
4
|
-
parameters: {
|
|
5
|
-
transient: boolean;
|
|
6
|
-
};
|
|
7
|
-
layers: {
|
|
8
|
-
type: typeof List;
|
|
9
|
-
type_parameters: (typeof ParticleLayer)[];
|
|
10
|
-
};
|
|
11
|
-
particles: {
|
|
12
|
-
transient: boolean;
|
|
13
|
-
};
|
|
14
|
-
mesh: {
|
|
15
|
-
transient: boolean;
|
|
16
|
-
};
|
|
17
|
-
bvhLeaf: {
|
|
18
|
-
transient: boolean;
|
|
19
|
-
};
|
|
20
|
-
particleBounds: {
|
|
21
|
-
transient: boolean;
|
|
22
|
-
};
|
|
23
|
-
emissionBounds: {
|
|
24
|
-
transient: boolean;
|
|
25
|
-
};
|
|
26
|
-
flags: {
|
|
27
|
-
editor: BitFlagsEditor;
|
|
28
|
-
};
|
|
29
|
-
blendingMode: {
|
|
30
|
-
editor: EnumEditor;
|
|
31
|
-
};
|
|
32
|
-
sleepTime: {
|
|
33
|
-
transient: boolean;
|
|
34
|
-
};
|
|
35
|
-
position: {
|
|
36
|
-
transient: boolean;
|
|
37
|
-
};
|
|
38
|
-
rotation: {
|
|
39
|
-
transient: boolean;
|
|
40
|
-
};
|
|
41
|
-
scale: {
|
|
42
|
-
transient: boolean;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
48
|
-
import List from "../../../../../src/core/collection/list/List.js";
|
|
49
|
-
import { ParticleLayer } from "../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js";
|
|
50
|
-
import { BitFlagsEditor } from "../common/BitFlagsEditor.js";
|
|
51
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
52
|
-
//# sourceMappingURL=ParticleEmitterEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleEmitterEditor.d.ts","sourceRoot":"","sources":["../../../../../../editor/ecs/component/editors/ecs/ParticleEmitterEditor.js"],"names":[],"mappings":"AAUA;IACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6CC;CACJ;6BAnD4B,8BAA8B;iBAN1C,iDAAiD;8BACpC,yFAAyF;+BACxF,6BAA6B;2BAKjC,yBAAyB"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import List from "../../../../../src/core/collection/list/List.js";
|
|
2
|
-
import { ParticleLayer } from "../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js";
|
|
3
|
-
import { BitFlagsEditor } from "../common/BitFlagsEditor.js";
|
|
4
|
-
import {
|
|
5
|
-
ParticleEmitterFlag
|
|
6
|
-
} from "../../../../../src/engine/graphics/particles/particular/engine/emitter/ParticleEmitterFlag.js";
|
|
7
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
8
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
9
|
-
import { BlendingType } from "../../../../../src/engine/graphics/texture/sampler/BlendingType.js";
|
|
10
|
-
|
|
11
|
-
export class ParticleEmitterEditor extends ObjectEditor {
|
|
12
|
-
get schema() {
|
|
13
|
-
return {
|
|
14
|
-
properties: {
|
|
15
|
-
parameters: {
|
|
16
|
-
transient: true
|
|
17
|
-
},
|
|
18
|
-
layers: {
|
|
19
|
-
type: List,
|
|
20
|
-
type_parameters: [ParticleLayer]
|
|
21
|
-
},
|
|
22
|
-
particles: {
|
|
23
|
-
transient: true
|
|
24
|
-
},
|
|
25
|
-
mesh: {
|
|
26
|
-
transient: true
|
|
27
|
-
},
|
|
28
|
-
bvhLeaf: {
|
|
29
|
-
transient: true
|
|
30
|
-
},
|
|
31
|
-
particleBounds: {
|
|
32
|
-
transient: true
|
|
33
|
-
},
|
|
34
|
-
emissionBounds: {
|
|
35
|
-
transient: true
|
|
36
|
-
},
|
|
37
|
-
flags: {
|
|
38
|
-
editor: new BitFlagsEditor(ParticleEmitterFlag)
|
|
39
|
-
},
|
|
40
|
-
blendingMode: {
|
|
41
|
-
editor: new EnumEditor(BlendingType)
|
|
42
|
-
},
|
|
43
|
-
sleepTime: {
|
|
44
|
-
transient: true,
|
|
45
|
-
},
|
|
46
|
-
position: {
|
|
47
|
-
transient: true
|
|
48
|
-
},
|
|
49
|
-
rotation: {
|
|
50
|
-
transient: true
|
|
51
|
-
},
|
|
52
|
-
scale: {
|
|
53
|
-
transient: true
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export class ParticleEmitterLayerEditor extends ObjectEditor {
|
|
2
|
-
get schema(): {
|
|
3
|
-
properties: {
|
|
4
|
-
imageURL: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
editor: ImagePathEditor;
|
|
7
|
-
};
|
|
8
|
-
emissionShape: {
|
|
9
|
-
editor: EnumEditor;
|
|
10
|
-
};
|
|
11
|
-
emissionFrom: {
|
|
12
|
-
editor: EnumEditor;
|
|
13
|
-
};
|
|
14
|
-
emissionRate: {
|
|
15
|
-
type: NumberConstructor;
|
|
16
|
-
numeric_type: string;
|
|
17
|
-
};
|
|
18
|
-
emissionImmediate: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
numeric_type: string;
|
|
21
|
-
};
|
|
22
|
-
parameterTracks: {
|
|
23
|
-
editor: ParameterTrackSetEditor;
|
|
24
|
-
};
|
|
25
|
-
scaledSpriteHalfSize: {
|
|
26
|
-
transient: boolean;
|
|
27
|
-
};
|
|
28
|
-
baseBoundingBox: {
|
|
29
|
-
transient: boolean;
|
|
30
|
-
};
|
|
31
|
-
steps: {
|
|
32
|
-
type: typeof List;
|
|
33
|
-
type_parameters: (typeof SimulationStepDefinition)[];
|
|
34
|
-
};
|
|
35
|
-
timeSinceLastEmission: {
|
|
36
|
-
transient: boolean;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
42
|
-
import { ImagePathEditor } from "../ImagePathEditor.js";
|
|
43
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
44
|
-
import { ParameterTrackSetEditor } from "./ParameterTrackSetEditor.js";
|
|
45
|
-
import List from "../../../../../src/core/collection/list/List.js";
|
|
46
|
-
import { SimulationStepDefinition } from "../../../../../src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.js";
|
|
47
|
-
//# sourceMappingURL=ParticleEmitterLayerEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleEmitterLayerEditor.d.ts","sourceRoot":"","sources":["../../../../../../editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.js"],"names":[],"mappings":"AAgBA;IACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuCC;CACJ;6BArD4B,8BAA8B;gCAC3B,uBAAuB;2BAC5B,yBAAyB;wCAQZ,8BAA8B;iBAdrD,iDAAiD;yCAG3D,sGAAsG"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import List from "../../../../../src/core/collection/list/List.js";
|
|
2
|
-
import {
|
|
3
|
-
SimulationStepDefinition
|
|
4
|
-
} from "../../../../../src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.js";
|
|
5
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
6
|
-
import { ImagePathEditor } from "../ImagePathEditor.js";
|
|
7
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
8
|
-
import {
|
|
9
|
-
EmissionShapeType
|
|
10
|
-
} from "../../../../../src/engine/graphics/particles/particular/engine/emitter/EmissionShapeType.js";
|
|
11
|
-
import {
|
|
12
|
-
EmissionFromType
|
|
13
|
-
} from "../../../../../src/engine/graphics/particles/particular/engine/emitter/EmissionFromType.js";
|
|
14
|
-
import { BinaryDataType } from "../../../../../src/core/binary/type/BinaryDataType.js";
|
|
15
|
-
import { ParameterTrackSetEditor } from "./ParameterTrackSetEditor.js";
|
|
16
|
-
|
|
17
|
-
export class ParticleEmitterLayerEditor extends ObjectEditor {
|
|
18
|
-
get schema() {
|
|
19
|
-
return {
|
|
20
|
-
properties: {
|
|
21
|
-
imageURL: {
|
|
22
|
-
type: String,
|
|
23
|
-
editor: new ImagePathEditor()
|
|
24
|
-
},
|
|
25
|
-
emissionShape: {
|
|
26
|
-
editor: new EnumEditor(EmissionShapeType)
|
|
27
|
-
},
|
|
28
|
-
emissionFrom: {
|
|
29
|
-
editor: new EnumEditor(EmissionFromType)
|
|
30
|
-
},
|
|
31
|
-
emissionRate: {
|
|
32
|
-
type: Number,
|
|
33
|
-
numeric_type: BinaryDataType.Uint32
|
|
34
|
-
},
|
|
35
|
-
emissionImmediate: {
|
|
36
|
-
type: Number,
|
|
37
|
-
numeric_type: BinaryDataType.Uint32
|
|
38
|
-
},
|
|
39
|
-
parameterTracks: {
|
|
40
|
-
editor: new ParameterTrackSetEditor()
|
|
41
|
-
},
|
|
42
|
-
scaledSpriteHalfSize: {
|
|
43
|
-
transient: true
|
|
44
|
-
},
|
|
45
|
-
baseBoundingBox: {
|
|
46
|
-
transient: true
|
|
47
|
-
},
|
|
48
|
-
steps: {
|
|
49
|
-
type: List,
|
|
50
|
-
type_parameters: [SimulationStepDefinition]
|
|
51
|
-
},
|
|
52
|
-
timeSinceLastEmission: {
|
|
53
|
-
transient: true
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export class SimulationStepDefinitionEditor extends ObjectEditor {
|
|
2
|
-
get schema(): {
|
|
3
|
-
properties: {
|
|
4
|
-
type: {
|
|
5
|
-
editor: EnumEditor;
|
|
6
|
-
};
|
|
7
|
-
parameters: {
|
|
8
|
-
type: ArrayConstructor;
|
|
9
|
-
type_parameters: NumberConstructor[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
15
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
16
|
-
//# sourceMappingURL=SimulationStepDefinitionEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SimulationStepDefinitionEditor.d.ts","sourceRoot":"","sources":["../../../../../../editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.js"],"names":[],"mappings":"AAMA;IACI;;;;;;;;;;MAYC;CACJ;6BApB4B,8BAA8B;2BAChC,yBAAyB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ObjectEditor } from "../primitive/ObjectEditor.js";
|
|
2
|
-
import { EnumEditor } from "../common/EnumEditor.js";
|
|
3
|
-
import {
|
|
4
|
-
SimulationStepType
|
|
5
|
-
} from "../../../../../src/engine/graphics/particles/particular/engine/simulator/SimulationStepType.js";
|
|
6
|
-
|
|
7
|
-
export class SimulationStepDefinitionEditor extends ObjectEditor {
|
|
8
|
-
get schema() {
|
|
9
|
-
return {
|
|
10
|
-
properties: {
|
|
11
|
-
type: {
|
|
12
|
-
editor: new EnumEditor(SimulationStepType)
|
|
13
|
-
},
|
|
14
|
-
parameters: {
|
|
15
|
-
type: Array,
|
|
16
|
-
type_parameters: [Number]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rebuild a live particle emitter after structural edits (layers, sprites, parameter
|
|
3
|
-
* tracks): the system pulls it out of the particle engine, runs the full build sequence and puts
|
|
4
|
-
* it back. Sleep state is preserved.
|
|
5
|
-
*
|
|
6
|
-
* @param {EntityManager} entityManager
|
|
7
|
-
* @param {number} entity
|
|
8
|
-
* @returns {boolean} false when the entity has no emitter or no emitter system runs
|
|
9
|
-
*/
|
|
10
|
-
export function rebuildParticleEmitter(entityManager: EntityManager, entity: number): boolean;
|
|
11
|
-
//# sourceMappingURL=rebuildParticleEmitter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rebuildParticleEmitter.d.ts","sourceRoot":"","sources":["../../../editor/particles/rebuildParticleEmitter.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,6EAHW,MAAM,GACJ,OAAO,CAkBnB"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ParticleEmitter
|
|
3
|
-
} from "../../src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js";
|
|
4
|
-
import { ParticleEmitterSystem } from "../../src/engine/graphics3/ParticleEmitterSystem.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Rebuild a live particle emitter after structural edits (layers, sprites, parameter
|
|
8
|
-
* tracks): the system pulls it out of the particle engine, runs the full build sequence and puts
|
|
9
|
-
* it back. Sleep state is preserved.
|
|
10
|
-
*
|
|
11
|
-
* @param {EntityManager} entityManager
|
|
12
|
-
* @param {number} entity
|
|
13
|
-
* @returns {boolean} false when the entity has no emitter or no emitter system runs
|
|
14
|
-
*/
|
|
15
|
-
export function rebuildParticleEmitter(entityManager, entity) {
|
|
16
|
-
const system = entityManager.getSystem(ParticleEmitterSystem);
|
|
17
|
-
|
|
18
|
-
if (system === null) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const emitter = entityManager.dataset.getComponent(entity, ParticleEmitter);
|
|
23
|
-
|
|
24
|
-
if (emitter === undefined) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
system.rebuild(emitter);
|
|
29
|
-
|
|
30
|
-
return true;
|
|
31
|
-
}
|