@woosh/meep-engine 3.82.0 → 3.83.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/CHANGELOG.md +79 -0
- package/build/bundle-worker-image-decoder.js +1 -1
- package/build/bundle-worker-terrain.js +1 -1
- package/editor/camera/camera_framing.js +2 -2
- package/editor/ecs/component/editors/ecs/terrain/SplatMappingEditor.d.ts +0 -8
- package/editor/ecs/component/editors/ecs/terrain/SplatMappingEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ecs/terrain/SplatMappingEditor.js +0 -8
- package/editor/tools/paint/TerrainHeightPaintTool.d.ts.map +1 -1
- package/editor/tools/paint/TerrainHeightPaintTool.js +2 -1
- package/editor/view/ecs/EntityEditor.js +1 -1
- package/package.json +1 -1
- package/src/core/binary/BinaryBuffer.d.ts +0 -8
- package/src/core/binary/BinaryBuffer.d.ts.map +1 -1
- package/src/core/binary/BinaryBuffer.js +0 -14
- package/src/core/cache/Cache.d.ts +0 -4
- package/src/core/cache/Cache.d.ts.map +1 -1
- package/src/core/cache/Cache.js +0 -7
- package/src/core/collection/list/List.d.ts +0 -6
- package/src/core/collection/list/List.d.ts.map +1 -1
- package/src/core/collection/list/List.js +0 -9
- package/src/core/collection/table/RowFirstTable.d.ts +0 -6
- package/src/core/collection/table/RowFirstTable.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTable.js +0 -9
- package/src/core/events/signal/Signal.d.ts +0 -10
- package/src/core/events/signal/Signal.d.ts.map +1 -1
- package/src/core/events/signal/Signal.js +0 -13
- package/src/core/geom/2d/aabb/AABB2.d.ts +0 -23
- package/src/core/geom/2d/aabb/AABB2.d.ts.map +1 -1
- package/src/core/geom/2d/aabb/AABB2.js +0 -35
- package/src/core/geom/2d/quad-tree/QuadTreeNode.d.ts +0 -18
- package/src/core/geom/2d/quad-tree/QuadTreeNode.d.ts.map +1 -1
- package/src/core/geom/2d/quad-tree/QuadTreeNode.js +0 -24
- package/src/core/geom/3d/aabb/AABB3.d.ts +0 -42
- package/src/core/geom/3d/aabb/AABB3.d.ts.map +1 -1
- package/src/core/geom/3d/aabb/AABB3.js +0 -97
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts +0 -6
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +4 -15
- package/src/core/geom/Quaternion.d.ts +0 -34
- package/src/core/geom/Quaternion.d.ts.map +1 -1
- package/src/core/geom/Quaternion.js +0 -78
- package/src/core/geom/Vector2.d.ts +0 -8
- package/src/core/geom/Vector2.d.ts.map +1 -1
- package/src/core/geom/Vector2.js +0 -9
- package/src/core/geom/Vector3.d.ts +0 -15
- package/src/core/geom/Vector3.d.ts.map +1 -1
- package/src/core/geom/Vector3.js +0 -15
- package/src/core/geom/Vector4.d.ts +0 -8
- package/src/core/geom/Vector4.d.ts.map +1 -1
- package/src/core/geom/Vector4.js +0 -9
- package/src/core/graph/metis/native/metis_partition_kway.d.ts +3 -6
- package/src/core/graph/metis/native/metis_partition_kway.d.ts.map +1 -1
- package/src/core/graph/metis/native/metis_partition_kway.js +3 -6
- package/src/core/graph/v2/Graph.d.ts +0 -5
- package/src/core/graph/v2/Graph.d.ts.map +1 -1
- package/src/core/graph/v2/Graph.js +0 -8
- package/src/core/localization/Localization.d.ts +0 -6
- package/src/core/localization/Localization.d.ts.map +1 -1
- package/src/core/localization/Localization.js +1 -10
- package/src/core/math/interval/NumericInterval.d.ts +0 -5
- package/src/core/math/interval/NumericInterval.d.ts.map +1 -1
- package/src/core/math/interval/NumericInterval.js +0 -7
- package/src/core/model/ObservedBoolean.d.ts +0 -5
- package/src/core/model/ObservedBoolean.d.ts.map +1 -1
- package/src/core/model/ObservedBoolean.js +0 -6
- package/src/core/model/object/ObjectPoolFactory.d.ts +0 -5
- package/src/core/model/object/ObjectPoolFactory.d.ts.map +1 -1
- package/src/core/model/object/ObjectPoolFactory.js +0 -7
- package/src/core/path/uri_resolve.d.ts +27 -0
- package/src/core/path/uri_resolve.d.ts.map +1 -0
- package/src/core/path/uri_resolve.js +144 -0
- package/src/core/process/worker/WorkerBuilder.d.ts +0 -15
- package/src/core/process/worker/WorkerBuilder.d.ts.map +1 -1
- package/src/core/process/worker/WorkerBuilder.js +0 -33
- package/src/engine/Engine.d.ts +0 -4
- package/src/engine/Engine.d.ts.map +1 -1
- package/src/engine/Engine.js +0 -6
- package/src/engine/animation/curve/AnimationCurve.d.ts +0 -6
- package/src/engine/animation/curve/AnimationCurve.d.ts.map +1 -1
- package/src/engine/animation/curve/AnimationCurve.js +0 -9
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts +0 -15
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts.map +1 -1
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.js +0 -16
- package/src/engine/ecs/EntityBlueprint.js +1 -1
- package/src/engine/ecs/EntityComponentDataset.d.ts +0 -8
- package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.js +3 -16
- package/src/engine/ecs/EntityManager.d.ts +1 -20
- package/src/engine/ecs/EntityManager.d.ts.map +1 -1
- package/src/engine/ecs/EntityManager.js +3 -40
- package/src/engine/ecs/async/WorkerSystem.js +1 -1
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.d.ts.map +1 -1
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.js +0 -2
- package/src/engine/ecs/system/AbstractContextSystem.js +1 -1
- package/src/engine/ecs/terrain/ecs/Terrain.d.ts +0 -12
- package/src/engine/ecs/terrain/ecs/Terrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/Terrain.js +785 -801
- package/src/engine/ecs/terrain/ecs/splat/SplatMapping.d.ts +0 -10
- package/src/engine/ecs/terrain/ecs/splat/SplatMapping.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/splat/SplatMapping.js +0 -16
- package/src/engine/ecs/transform/Transform.d.ts +0 -7
- package/src/engine/ecs/transform/Transform.d.ts.map +1 -1
- package/src/engine/ecs/transform/Transform.js +0 -20
- package/src/engine/ecs/transform/TransformFlags.d.ts +0 -1
- package/src/engine/ecs/transform/TransformFlags.js +0 -4
- package/src/engine/graphics/ecs/animation/animator/AnimationClip.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/AnimationClip.js +27 -37
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationTransition.d.ts +19 -22
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationTransition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationTransition.js +27 -52
- package/src/engine/graphics/ecs/highlight/Highlight.js +1 -1
- package/src/engine/graphics/ecs/highlight/HighlightDefinition.d.ts +0 -10
- package/src/engine/graphics/ecs/highlight/HighlightDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/HighlightDefinition.js +0 -16
- package/src/engine/graphics/ecs/highlight/HighlightSerializationAdapter.js +2 -2
- package/src/engine/graphics/impostors/octahedral/ImpostorDescription.d.ts +0 -6
- package/src/engine/graphics/impostors/octahedral/ImpostorDescription.d.ts.map +1 -1
- package/src/engine/graphics/impostors/octahedral/ImpostorDescription.js +0 -6
- package/src/engine/graphics3/Trail3DSystem.d.ts +0 -14
- package/src/engine/graphics3/Trail3DSystem.d.ts.map +1 -1
- package/src/engine/graphics3/Trail3DSystem.js +0 -36
- package/src/engine/graphics3/animation/AnimationGraphController.d.ts +19 -4
- package/src/engine/graphics3/animation/AnimationGraphController.d.ts.map +1 -1
- package/src/engine/graphics3/animation/AnimationGraphController.js +561 -518
- package/src/engine/input/ecs/ism/map/InputBinding.d.ts +0 -3
- package/src/engine/input/ecs/ism/map/InputBinding.d.ts.map +1 -1
- package/src/engine/input/ecs/ism/map/InputBinding.js +0 -3
- package/src/engine/intelligence/behavior/composite/CompositeBehavior.d.ts +0 -5
- package/src/engine/intelligence/behavior/composite/CompositeBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/CompositeBehavior.js +0 -8
- package/src/engine/network/NetworkSession.d.ts +0 -34
- package/src/engine/network/NetworkSession.d.ts.map +1 -1
- package/src/engine/network/NetworkSession.js +10 -99
- package/src/engine/network/orchestrator/NetworkPeer.d.ts +1 -1
- package/src/engine/network/orchestrator/NetworkPeer.js +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.d.ts +0 -19
- package/src/engine/physics/ecs/PhysicsSystem.d.ts.map +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.js +0 -39
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/engine/sound/ecs/SoundListenerSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundListenerSystem.js +2 -1
- package/src/engine/sound/sopra/legacy/SoundEmitter.d.ts +0 -10
- package/src/engine/sound/sopra/legacy/SoundEmitter.d.ts.map +1 -1
- package/src/engine/sound/sopra/legacy/SoundEmitter.js +0 -16
- package/src/engine/sound/sopra/legacy/SoundTrack.d.ts +0 -30
- package/src/engine/sound/sopra/legacy/SoundTrack.d.ts.map +1 -1
- package/src/engine/sound/sopra/legacy/SoundTrack.js +0 -48
- package/src/generation/grid/generation/road/GridTaskGenerateRoads.d.ts.map +1 -1
- package/src/generation/grid/generation/road/GridTaskGenerateRoads.js +5 -4
- package/src/generation/grid/generation/road/RoadConnectionNetwork.d.ts.map +1 -1
- package/src/generation/grid/generation/road/RoadConnectionNetwork.js +3 -2
- package/src/generation/theme/ThemeEngine.d.ts.map +1 -1
- package/src/generation/theme/ThemeEngine.js +2 -1
- package/src/shade/playground/acoustics/main.js +1 -1
- package/src/shade/playground/point_shadows/README.md +58 -0
- package/src/shade/playground/point_shadows/index.html +151 -0
- package/src/shade/playground/point_shadows/main.d.ts +2 -0
- package/src/shade/playground/point_shadows/main.d.ts.map +1 -0
- package/src/shade/playground/point_shadows/main.js +532 -0
- package/src/shade/playground/point_shadows/scene.d.ts +131 -0
- package/src/shade/playground/point_shadows/scene.d.ts.map +1 -0
- package/src/shade/playground/point_shadows/scene.js +423 -0
- package/src/shade/playground/point_shadows/shadow_probe.d.ts +111 -0
- package/src/shade/playground/point_shadows/shadow_probe.d.ts.map +1 -0
- package/src/shade/playground/point_shadows/shadow_probe.js +382 -0
- package/src/shade/renderer/Renderer.d.ts +2 -2
- package/src/shade/renderer/Renderer.js +14 -14
- package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/geometry/Attribute.d.ts +0 -10
- package/src/shade/renderer/geometry/Attribute.d.ts.map +1 -1
- package/src/shade/renderer/geometry/Attribute.js +0 -16
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts +8 -0
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.js +10 -1
- package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_if_enabled.d.ts +9 -3
- 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 +13 -4
- package/src/shade/renderer/geometry/virtual/runtime/graph_vgeo_expand_instances_to_meshlets.d.ts +9 -3
- 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 +14 -9
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +5 -3
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts.map +1 -1
- package/src/shade/renderer/loader/gltf/tiny-gltf.js +9 -33
- package/src/shade/renderer/loader/mtf/load_mtf.d.ts +1 -1
- package/src/shade/renderer/loader/mtf/load_mtf.d.ts.map +1 -1
- package/src/shade/renderer/loader/mtf/load_mtf.js +16 -4
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
- package/src/shade/renderer/rasterize/TemplatePassDescriptor.d.ts +3 -1
- package/src/shade/renderer/rasterize/TemplatePassDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/TemplatePassDescriptor.js +2 -0
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts +5 -3
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.js +14 -8
- package/src/shade/renderer/rasterize/expand/graph_meshlets_rasterize.d.ts +65 -0
- package/src/shade/renderer/rasterize/expand/graph_meshlets_rasterize.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/graph_meshlets_rasterize.js +189 -115
- package/src/shade/renderer/rasterize/fast/graph_draw_prepared_scene.d.ts +67 -0
- package/src/shade/renderer/rasterize/fast/graph_draw_prepared_scene.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/fast/graph_draw_prepared_scene.js +175 -0
- package/src/shade/renderer/rasterize/fast/graph_prepare_scene_draw.d.ts +81 -0
- package/src/shade/renderer/rasterize/fast/graph_prepare_scene_draw.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/fast/graph_prepare_scene_draw.js +147 -0
- package/src/shade/renderer/rasterize/fast/graph_rasterize_scene_fast.d.ts +37 -0
- 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 +105 -59
- package/src/shade/renderer/rasterize/native/graph_rasterize_meshes_alpha_tested.d.ts +104 -0
- package/src/shade/renderer/rasterize/native/graph_rasterize_meshes_alpha_tested.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/graph_rasterize_meshes_alpha_tested.js +237 -114
- 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 +4 -1
- 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 +4 -1
- package/src/shade/renderer/shader/ComputeShader.d.ts +0 -18
- package/src/shade/renderer/shader/ComputeShader.d.ts.map +1 -1
- package/src/shade/renderer/shader/ComputeShader.js +0 -34
- package/src/shade/renderer/shader/chunk/atmosphere/phase/jd/chunk_sample_draine.d.ts +3 -2
- package/src/shade/renderer/shader/chunk/atmosphere/phase/jd/chunk_sample_draine.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/atmosphere/phase/jd/chunk_sample_draine.js +3 -2
- package/src/shade/renderer/shader/chunk/texture/octahedral/chunk_texture_octahedral_wrap_texel_coordinates.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/texture/octahedral/chunk_texture_octahedral_wrap_texel_coordinates.js +6 -0
- package/src/shade/renderer/shader/pass/RenderPassColorAttachmentDescriptor.d.ts +4 -0
- package/src/shade/renderer/shader/pass/RenderPassColorAttachmentDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/shader/pass/RenderPassColorAttachmentDescriptor.js +4 -0
- package/src/shade/renderer/shader/pass/RenderPassDepthStencilAttachmentDescriptor.d.ts +4 -0
- package/src/shade/renderer/shader/pass/RenderPassDepthStencilAttachmentDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/shader/pass/RenderPassDepthStencilAttachmentDescriptor.js +4 -0
- package/src/shade/renderer/shader/pass/RenderPassDescriptor.d.ts +18 -0
- package/src/shade/renderer/shader/pass/RenderPassDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/shader/pass/RenderPassDescriptor.js +11 -0
- package/src/shade/renderer/shadow/map/DEFAULT_SHADOWMAP_LOCAL_RESOLUTION.d.ts +8 -0
- package/src/shade/renderer/shadow/map/DEFAULT_SHADOWMAP_LOCAL_RESOLUTION.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/DEFAULT_SHADOWMAP_LOCAL_RESOLUTION.js +7 -0
- package/src/shade/renderer/shadow/map/DEFAULT_SHADOWMAP_UPDATE_BUDGET.d.ts +1 -1
- package/src/shade/renderer/shadow/map/DEFAULT_SHADOWMAP_UPDATE_BUDGET.js +1 -1
- package/src/shade/renderer/shadow/map/DirectionalLightShadowmap.js +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts +122 -141
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +213 -1719
- package/src/shade/renderer/shadow/map/POINT_SHADOW_CUBE_LAYOUT.d.ts +36 -0
- package/src/shade/renderer/shadow/map/POINT_SHADOW_CUBE_LAYOUT.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/POINT_SHADOW_CUBE_LAYOUT.js +55 -0
- package/src/shade/renderer/shadow/map/PointLightShadowmap.d.ts +35 -10
- package/src/shade/renderer/shadow/map/PointLightShadowmap.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/PointLightShadowmap.js +71 -56
- package/src/shade/renderer/shadow/map/SHADOW_CULL_POLICY.d.ts +10 -0
- package/src/shade/renderer/shadow/map/SHADOW_CULL_POLICY.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/SHADOW_CULL_POLICY.js +11 -0
- package/src/shade/renderer/shadow/map/ShadowViews.d.ts +67 -0
- package/src/shade/renderer/shadow/map/ShadowViews.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/ShadowViews.js +113 -0
- package/src/shade/renderer/shadow/map/Shadowmap.d.ts +6 -0
- package/src/shade/renderer/shadow/map/Shadowmap.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/Shadowmap.js +9 -0
- package/src/shade/renderer/shadow/map/ShadowmapAtlas.d.ts +60 -0
- package/src/shade/renderer/shadow/map/ShadowmapAtlas.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/ShadowmapAtlas.js +172 -0
- package/src/shade/renderer/shadow/map/ShadowmapDrawSelector.js +3 -3
- package/src/shade/renderer/shadow/map/ShadowmapRecords.d.ts +50 -0
- package/src/shade/renderer/shadow/map/ShadowmapRecords.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/ShadowmapRecords.js +145 -0
- package/src/shade/renderer/shadow/map/csm/CascadeShadows.d.ts +102 -0
- package/src/shade/renderer/shadow/map/csm/CascadeShadows.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/csm/CascadeShadows.js +446 -0
- package/src/shade/renderer/shadow/map/draw_shadow_views_into_atlas.d.ts +23 -0
- package/src/shade/renderer/shadow/map/draw_shadow_views_into_atlas.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/draw_shadow_views_into_atlas.js +69 -0
- package/src/shade/renderer/shadow/map/point/POINT_SHADOW_GENERATORS.d.ts +76 -0
- package/src/shade/renderer/shadow/map/point/POINT_SHADOW_GENERATORS.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/point/POINT_SHADOW_GENERATORS.js +154 -0
- package/src/shade/renderer/shadow/map/point/PointShadowFaces.d.ts +54 -0
- package/src/shade/renderer/shadow/map/point/PointShadowFaces.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/point/PointShadowFaces.js +144 -0
- package/src/shade/renderer/shadow/map/point/PointShadows.d.ts +94 -0
- package/src/shade/renderer/shadow/map/point/PointShadows.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/point/PointShadows.js +248 -0
- package/src/shade/renderer/shadow/map/spot/SpotShadows.d.ts +72 -0
- package/src/shade/renderer/shadow/map/spot/SpotShadows.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/spot/SpotShadows.js +148 -0
- package/src/shade/renderer/shadow/vsm/DEFAULT_VSM_FIRST_TEXEL_SIZE.d.ts +1 -1
- package/src/shade/renderer/shadow/vsm/DEFAULT_VSM_FIRST_TEXEL_SIZE.js +1 -1
- package/src/shade/renderer/shadow/vsm/DEFAULT_VSM_PAGE_BUDGET.d.ts +1 -1
- package/src/shade/renderer/shadow/vsm/DEFAULT_VSM_PAGE_BUDGET.js +1 -1
- package/src/shade/renderer/shadow/vsm/VirtualShadowMap.d.ts +6 -10
- package/src/shade/renderer/shadow/vsm/VirtualShadowMap.d.ts.map +1 -1
- package/src/shade/renderer/shadow/vsm/VirtualShadowMap.js +423 -418
- package/src/shade/renderer/shadow/vsm/VirtualShadows.d.ts +178 -0
- package/src/shade/renderer/shadow/vsm/VirtualShadows.d.ts.map +1 -0
- package/src/shade/renderer/shadow/vsm/VirtualShadows.js +655 -0
- package/src/shade/renderer/texture/RenderTarget.d.ts +4 -0
- package/src/shade/renderer/texture/RenderTarget.d.ts.map +1 -1
- package/src/shade/renderer/texture/RenderTarget.js +4 -0
- package/src/shade/renderer/view/GPUViewContext.d.ts.map +1 -1
- package/src/shade/renderer/view/GPUViewContext.js +8 -54
- package/src/shade/renderer/view/write_view_uniforms.d.ts +21 -0
- package/src/shade/renderer/view/write_view_uniforms.d.ts.map +1 -0
- package/src/shade/renderer/view/write_view_uniforms.js +83 -0
- package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
- package/src/shade/renderer/wind/GPUSceneWind.d.ts +1 -1
- package/src/view/elements/image/ImageView.js +2 -2
- package/src/view/elements/video/VideoView.js +2 -2
- package/src/view/interaction/InterfaceCommand.d.ts +0 -20
- package/src/view/interaction/InterfaceCommand.d.ts.map +1 -1
- package/src/view/interaction/InterfaceCommand.js +116 -148
- package/src/core/color/hsv/hsv2rgb_float.d.ts +0 -24
- package/src/core/color/hsv/hsv2rgb_float.d.ts.map +0 -1
- package/src/core/color/hsv/hsv2rgb_float.js +0 -36
- package/src/core/graph/metis/metis.d.ts +0 -38
- package/src/core/graph/metis/metis.d.ts.map +0 -1
- package/src/core/graph/metis/metis.js +0 -70
- package/src/core/graph/metis/metis_cluster_bs.d.ts +0 -23
- package/src/core/graph/metis/metis_cluster_bs.d.ts.map +0 -1
- package/src/core/graph/metis/metis_cluster_bs.js +0 -138
- package/src/core/graph/metis/metis_options.d.ts +0 -51
- package/src/core/graph/metis/metis_options.d.ts.map +0 -1
- package/src/core/graph/metis/metis_options.js +0 -51
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.d.ts +0 -35
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.d.ts.map +0 -1
- package/src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.js +0 -41
- package/src/engine/ecs/components/PropertySet.d.ts +0 -48
- package/src/engine/ecs/components/PropertySet.d.ts.map +0 -1
- package/src/engine/ecs/components/PropertySet.js +0 -115
- package/src/engine/ecs/components/PropertySetSerializationAdapter.d.ts +0 -19
- package/src/engine/ecs/components/PropertySetSerializationAdapter.d.ts.map +0 -1
- package/src/engine/ecs/components/PropertySetSerializationAdapter.js +0 -29
- package/src/engine/ecs/terrain/ecs/BuildLightTexture.d.ts +0 -21
- package/src/engine/ecs/terrain/ecs/BuildLightTexture.d.ts.map +0 -1
- package/src/engine/ecs/terrain/ecs/BuildLightTexture.js +0 -27
- package/src/engine/input/ecs/components/Input.d.ts +0 -61
- package/src/engine/input/ecs/components/Input.d.ts.map +0 -1
- package/src/engine/input/ecs/components/Input.js +0 -118
- package/src/engine/input/ecs/ism/InputBinding.d.ts +0 -46
- package/src/engine/input/ecs/ism/InputBinding.d.ts.map +0 -1
- package/src/engine/input/ecs/ism/InputBinding.js +0 -71
- package/src/engine/input/ecs/systems/InputSystem.d.ts +0 -65
- package/src/engine/input/ecs/systems/InputSystem.d.ts.map +0 -1
- package/src/engine/input/ecs/systems/InputSystem.js +0 -163
- package/src/shade/renderer/loader/gltf/gltf_base_url.d.ts +0 -20
- package/src/shade/renderer/loader/gltf/gltf_base_url.d.ts.map +0 -1
- package/src/shade/renderer/loader/gltf/gltf_base_url.js +0 -27
- package/src/shade/renderer/loader/mtf/mtf_resolve_uri.d.ts +0 -21
- package/src/shade/renderer/loader/mtf/mtf_resolve_uri.d.ts.map +0 -1
- package/src/shade/renderer/loader/mtf/mtf_resolve_uri.js +0 -98
- package/src/shade/renderer/rasterize/expand/bucket/mesh/graph_scene_meshes_cull_and_classify_buckets.d.ts +0 -15
- package/src/shade/renderer/rasterize/expand/bucket/mesh/graph_scene_meshes_cull_and_classify_buckets.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/expand/bucket/mesh/graph_scene_meshes_cull_and_classify_buckets.js +0 -152
- package/src/shade/renderer/shader/chunk/atmosphere/phase/jd/chunk_sample_draine_cos.d.ts +0 -31
- package/src/shade/renderer/shader/chunk/atmosphere/phase/jd/chunk_sample_draine_cos.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/atmosphere/phase/jd/chunk_sample_draine_cos.js +0 -62
- package/src/shade/renderer/shader/chunk/brdf/chunk_sample_vndf_hemisphere_heitz.d.ts +0 -9
- package/src/shade/renderer/shader/chunk/brdf/chunk_sample_vndf_hemisphere_heitz.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/brdf/chunk_sample_vndf_hemisphere_heitz.js +0 -36
- package/src/shade/renderer/shader/chunk/depth/chunk_linearize_depth.d.ts +0 -9
- package/src/shade/renderer/shader/chunk/depth/chunk_linearize_depth.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/depth/chunk_linearize_depth.js +0 -28
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_distance_to_ray.d.ts +0 -21
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_distance_to_ray.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_distance_to_ray.js +0 -37
- package/src/shade/renderer/shader/chunk/math/chunk_rsqrt.d.ts +0 -13
- package/src/shade/renderer/shader/chunk/math/chunk_rsqrt.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/math/chunk_rsqrt.js +0 -29
- package/src/shade/renderer/shader/chunk/random/chunk_hash_jenkins.d.ts +0 -8
- package/src/shade/renderer/shader/chunk/random/chunk_hash_jenkins.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/random/chunk_hash_jenkins.js +0 -22
- package/src/shade/renderer/shadow/map/TetrahedronPointLightShadowmap.d.ts +0 -33
- package/src/shade/renderer/shadow/map/TetrahedronPointLightShadowmap.d.ts.map +0 -1
- package/src/shade/renderer/shadow/map/TetrahedronPointLightShadowmap.js +0 -95
- package/src/view/elements/Group.d.ts +0 -31
- package/src/view/elements/Group.d.ts.map +0 -1
- package/src/view/elements/Group.js +0 -56
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { OnDemandWorkerManager } from "../../process/worker/OnDemandWorkerManager.js";
|
|
2
|
-
import WorkerBuilder from "../../process/worker/WorkerBuilder.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use the native JS implementation at
|
|
7
|
-
* `./native/metis_partition_kway.js` instead.
|
|
8
|
-
*
|
|
9
|
-
* This class wraps the WASM-compiled METIS via a worker. It depends on
|
|
10
|
-
* `libs/metis/metis.js` being served by the host app and on a `micron_partition`
|
|
11
|
-
* global being defined inside that script. The native equivalent has no such
|
|
12
|
-
* dependencies, is synchronous (no worker round-trip), and tracks the latest
|
|
13
|
-
* `KarypisLab/METIS` master rather than the 2013-era 5.1.0 release.
|
|
14
|
-
*
|
|
15
|
-
* Migration:
|
|
16
|
-
* - Was: `await Metis.INSTANCE.partition(nv, k, xadj, adj, ewgt, options)`
|
|
17
|
-
* - Now: `metis_partition_kway(nv, k, xadj, adj, ewgt, { seed, niter, ufactor })`
|
|
18
|
-
*
|
|
19
|
-
* The native function returns the partition array directly (synchronously);
|
|
20
|
-
* wrap in `Promise.resolve(...)` if you need a promise-returning surface.
|
|
21
|
-
*/
|
|
22
|
-
export class Metis {
|
|
23
|
-
constructor() {
|
|
24
|
-
const wb = new WorkerBuilder();
|
|
25
|
-
wb.importScript('libs/metis/metis.js');
|
|
26
|
-
wb.addMethod('partition', 'function(){return micron_partition.apply(null, arguments)}');
|
|
27
|
-
|
|
28
|
-
const manager = new OnDemandWorkerManager(wb.build());
|
|
29
|
-
|
|
30
|
-
this.service = manager;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `metis_partition_kway` from
|
|
35
|
-
* `./native/metis_partition_kway.js` instead.
|
|
36
|
-
*
|
|
37
|
-
* @param {number} n_vertices
|
|
38
|
-
* @param {number} n_parts
|
|
39
|
-
* @param {Uint32Array} edge_addresses
|
|
40
|
-
* @param {Uint32Array} adjacency
|
|
41
|
-
* @param {Uint32Array} edge_weights
|
|
42
|
-
* @param {metis_options} options
|
|
43
|
-
* @returns {Promise<T>}
|
|
44
|
-
*/
|
|
45
|
-
partition(
|
|
46
|
-
n_vertices,
|
|
47
|
-
n_parts,
|
|
48
|
-
edge_addresses,
|
|
49
|
-
adjacency,
|
|
50
|
-
edge_weights,
|
|
51
|
-
options
|
|
52
|
-
) {
|
|
53
|
-
return this.service.request('partition', [
|
|
54
|
-
n_vertices,
|
|
55
|
-
n_parts,
|
|
56
|
-
edge_addresses,
|
|
57
|
-
adjacency,
|
|
58
|
-
edge_weights,
|
|
59
|
-
options
|
|
60
|
-
]);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Singleton instance
|
|
66
|
-
* @deprecated Use the native implementation at `./native/metis_partition_kway.js`.
|
|
67
|
-
* @readonly
|
|
68
|
-
* @type {Metis}
|
|
69
|
-
*/
|
|
70
|
-
Metis.INSTANCE = new Metis();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Calls the WASM-backed `Metis.INSTANCE`, which is deprecated. Build
|
|
3
|
-
* the equivalent on top of `metis_partition_kway` from
|
|
4
|
-
* `./native/metis_partition_kway.js` — the binary-search-on-k pattern here is
|
|
5
|
-
* independent of the partitioner, so the same loop body works against either
|
|
6
|
-
* backend.
|
|
7
|
-
*
|
|
8
|
-
* The native partitioner does roughly the same balance enforcement internally
|
|
9
|
-
* via FM with `ub_factor = 1.03`, so the binary search typically converges in
|
|
10
|
-
* 1-2 passes; for many use cases a single `metis_partition_kway` call with
|
|
11
|
-
* `k = Math.ceil(node_count / patch_size)` is sufficient and the BS wrapper is
|
|
12
|
-
* unnecessary.
|
|
13
|
-
*
|
|
14
|
-
* @param {Uint32Array} result
|
|
15
|
-
* @param {number} node_count
|
|
16
|
-
* @param {Uint32Array} edge_addresses
|
|
17
|
-
* @param {Uint32Array} adjacency_uint32
|
|
18
|
-
* @param {Uint32Array} edge_weights_uint32
|
|
19
|
-
* @param {number} patch_size
|
|
20
|
-
* @returns {Promise<number>}
|
|
21
|
-
*/
|
|
22
|
-
export function metis_cluster_bs(result: Uint32Array, node_count: number, edge_addresses: Uint32Array, adjacency_uint32: Uint32Array, edge_weights_uint32: Uint32Array, patch_size: number): Promise<number>;
|
|
23
|
-
//# sourceMappingURL=metis_cluster_bs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metis_cluster_bs.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/metis/metis_cluster_bs.js"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,yCARW,WAAW,cACX,MAAM,kBACN,WAAW,oBACX,WAAW,uBACX,WAAW,cACX,MAAM,GACJ,QAAQ,MAAM,CAAC,CA6G3B"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { Metis } from "./metis.js";
|
|
2
|
-
import { metis_options } from "./metis_options.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* How many times to retry partitioning before giving up
|
|
6
|
-
* @type {number}
|
|
7
|
-
*/
|
|
8
|
-
const MAX_STEPS = 50;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Calls the WASM-backed `Metis.INSTANCE`, which is deprecated. Build
|
|
12
|
-
* the equivalent on top of `metis_partition_kway` from
|
|
13
|
-
* `./native/metis_partition_kway.js` — the binary-search-on-k pattern here is
|
|
14
|
-
* independent of the partitioner, so the same loop body works against either
|
|
15
|
-
* backend.
|
|
16
|
-
*
|
|
17
|
-
* The native partitioner does roughly the same balance enforcement internally
|
|
18
|
-
* via FM with `ub_factor = 1.03`, so the binary search typically converges in
|
|
19
|
-
* 1-2 passes; for many use cases a single `metis_partition_kway` call with
|
|
20
|
-
* `k = Math.ceil(node_count / patch_size)` is sufficient and the BS wrapper is
|
|
21
|
-
* unnecessary.
|
|
22
|
-
*
|
|
23
|
-
* @param {Uint32Array} result
|
|
24
|
-
* @param {number} node_count
|
|
25
|
-
* @param {Uint32Array} edge_addresses
|
|
26
|
-
* @param {Uint32Array} adjacency_uint32
|
|
27
|
-
* @param {Uint32Array} edge_weights_uint32
|
|
28
|
-
* @param {number} patch_size
|
|
29
|
-
* @returns {Promise<number>}
|
|
30
|
-
*/
|
|
31
|
-
export async function metis_cluster_bs(
|
|
32
|
-
result,
|
|
33
|
-
node_count,
|
|
34
|
-
edge_addresses,
|
|
35
|
-
adjacency_uint32,
|
|
36
|
-
edge_weights_uint32,
|
|
37
|
-
patch_size
|
|
38
|
-
) {
|
|
39
|
-
|
|
40
|
-
const metis = Metis.INSTANCE;
|
|
41
|
-
|
|
42
|
-
let partition_count_bound_lower = Math.ceil(node_count / patch_size);
|
|
43
|
-
let partition_count_bound_upper = partition_count_bound_lower;
|
|
44
|
-
|
|
45
|
-
let partition_count = partition_count_bound_lower;
|
|
46
|
-
|
|
47
|
-
let counts = new Uint32Array(partition_count);
|
|
48
|
-
|
|
49
|
-
let passes = 0;
|
|
50
|
-
let p;
|
|
51
|
-
let max_count;
|
|
52
|
-
|
|
53
|
-
const metisOptions = new metis_options();
|
|
54
|
-
metisOptions.seed = 0xCAFE;
|
|
55
|
-
|
|
56
|
-
for (; ;) {
|
|
57
|
-
passes++;
|
|
58
|
-
|
|
59
|
-
if (passes > MAX_STEPS) {
|
|
60
|
-
throw new Error(`Maximum number of passes exceeded (${MAX_STEPS}). Current cluster count= ${partition_count}, initial=${partition_count_bound_lower}. Max elements per cluster = ${max_count}`);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
p = await metis.partition(
|
|
64
|
-
node_count,
|
|
65
|
-
partition_count,
|
|
66
|
-
edge_addresses,
|
|
67
|
-
adjacency_uint32,
|
|
68
|
-
edge_weights_uint32,
|
|
69
|
-
metisOptions
|
|
70
|
-
);
|
|
71
|
-
|
|
72
|
-
max_count = 0;
|
|
73
|
-
for (let i = 0; i < node_count; i++) {
|
|
74
|
-
const part = p[i];
|
|
75
|
-
|
|
76
|
-
counts[part]++;
|
|
77
|
-
|
|
78
|
-
if (counts[part] > max_count) {
|
|
79
|
-
max_count = counts[part];
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const overflow = max_count - patch_size;
|
|
84
|
-
|
|
85
|
-
// perform binary search for the optimal partition count
|
|
86
|
-
if (overflow > 0) {
|
|
87
|
-
// update lower bound
|
|
88
|
-
partition_count_bound_lower = partition_count + 1;
|
|
89
|
-
|
|
90
|
-
// part overflow
|
|
91
|
-
if (partition_count === partition_count_bound_upper) {
|
|
92
|
-
partition_count_bound_upper = Math.ceil(partition_count * 1.04);
|
|
93
|
-
partition_count = partition_count_bound_upper;
|
|
94
|
-
} else {
|
|
95
|
-
// try half-way mark
|
|
96
|
-
partition_count = Math.ceil((partition_count_bound_lower + partition_count_bound_upper) / 2);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
} else if (partition_count > partition_count_bound_lower && (partition_count_bound_upper - partition_count_bound_lower) > 1) {
|
|
100
|
-
// no overflow, but we're probably overshooting
|
|
101
|
-
partition_count_bound_upper = partition_count;
|
|
102
|
-
partition_count = Math.ceil((partition_count_bound_lower + partition_count_bound_upper) / 2);
|
|
103
|
-
|
|
104
|
-
} else {
|
|
105
|
-
|
|
106
|
-
// done
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (partition_count > counts.length) {
|
|
112
|
-
counts = new Uint32Array(partition_count)
|
|
113
|
-
} else {
|
|
114
|
-
counts.fill(0);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// console.log(`${partition_count}`);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// remap P values. Metis assigns unique unsigned integer values to each cluster, but they don't necessarily start at 0, to fix this we remap values
|
|
121
|
-
const mapping = [];
|
|
122
|
-
let index_counter = 0;
|
|
123
|
-
|
|
124
|
-
for (let i = 0; i < p.length; i++) {
|
|
125
|
-
const source_index = p[i];
|
|
126
|
-
|
|
127
|
-
let target_index = mapping[source_index];
|
|
128
|
-
if (target_index === undefined) {
|
|
129
|
-
target_index = index_counter++;
|
|
130
|
-
mapping[source_index] = target_index;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
p[i] = target_index;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
result.set(p);
|
|
137
|
-
return partition_count;
|
|
138
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Used only by the deprecated WASM-backed `Metis` class. The
|
|
3
|
-
* native partitioner at `./native/metis_partition_kway.js` accepts a plain
|
|
4
|
-
* object literal instead:
|
|
5
|
-
*
|
|
6
|
-
* metis_partition_kway(nv, k, xadj, adj, ewgt, {
|
|
7
|
-
* seed: 0xCAFE, // integer; default 0
|
|
8
|
-
* niter: 10, // FM passes per level
|
|
9
|
-
* ufactor: 30, // imbalance per-mille
|
|
10
|
-
* initial_partition_strategy: 'recursive_bisection' // or 'bfs'
|
|
11
|
-
* });
|
|
12
|
-
*
|
|
13
|
-
* Most `metis.h` options (ctype, iptype, rtype, no2hop, minconn, contig,
|
|
14
|
-
* compress, ncuts, pfactor, etc.) are not exposed by the native impl because
|
|
15
|
-
* those code paths aren't implemented. If you need one, file a request.
|
|
16
|
-
*
|
|
17
|
-
* See metis.h for more details on the original fields.
|
|
18
|
-
* -1 is used to signal absence of value, in which case a default will be used.
|
|
19
|
-
*/
|
|
20
|
-
export class metis_options {
|
|
21
|
-
ptype: number;
|
|
22
|
-
objtype: number;
|
|
23
|
-
/**
|
|
24
|
-
* Coarsening scheme
|
|
25
|
-
* 0 - METIS_CTYPE_RM
|
|
26
|
-
* 1 - METIS_CTYPE_SHEM
|
|
27
|
-
* @type {number}
|
|
28
|
-
*/
|
|
29
|
-
ctype: number;
|
|
30
|
-
iptype: number;
|
|
31
|
-
rtype: number;
|
|
32
|
-
dbglvl: number;
|
|
33
|
-
niter: number;
|
|
34
|
-
ncuts: number;
|
|
35
|
-
/**
|
|
36
|
-
* Random seed
|
|
37
|
-
* Integer
|
|
38
|
-
* @type {number}
|
|
39
|
-
*/
|
|
40
|
-
seed: number;
|
|
41
|
-
no2hop: number;
|
|
42
|
-
minconn: number;
|
|
43
|
-
contig: number;
|
|
44
|
-
ccorder: number;
|
|
45
|
-
pfactor: number;
|
|
46
|
-
nseps: number;
|
|
47
|
-
ufactor: number;
|
|
48
|
-
numbering: number;
|
|
49
|
-
compress: number;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=metis_options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metis_options.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/metis/metis_options.js"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;GAkBG;AACH;IACI,cAAW;IACX,gBAAa;IACb;;;;;OAKG;IACH,OAFU,MAAM,CAEL;IACX,eAAY;IACZ,cAAW;IACX,eAAY;IACZ,cAAW;IACX,cAAW;IACX;;;;OAIG;IACH,MAFU,MAAM,CAEN;IACV,eAAY;IACZ,gBAAa;IACb,eAAY;IACZ,gBAAa;IACb,gBAAa;IACb,cAAW;IACX,gBAAa;IACb,kBAAe;IACf,iBAAe;CAClB"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Used only by the deprecated WASM-backed `Metis` class. The
|
|
4
|
-
* native partitioner at `./native/metis_partition_kway.js` accepts a plain
|
|
5
|
-
* object literal instead:
|
|
6
|
-
*
|
|
7
|
-
* metis_partition_kway(nv, k, xadj, adj, ewgt, {
|
|
8
|
-
* seed: 0xCAFE, // integer; default 0
|
|
9
|
-
* niter: 10, // FM passes per level
|
|
10
|
-
* ufactor: 30, // imbalance per-mille
|
|
11
|
-
* initial_partition_strategy: 'recursive_bisection' // or 'bfs'
|
|
12
|
-
* });
|
|
13
|
-
*
|
|
14
|
-
* Most `metis.h` options (ctype, iptype, rtype, no2hop, minconn, contig,
|
|
15
|
-
* compress, ncuts, pfactor, etc.) are not exposed by the native impl because
|
|
16
|
-
* those code paths aren't implemented. If you need one, file a request.
|
|
17
|
-
*
|
|
18
|
-
* See metis.h for more details on the original fields.
|
|
19
|
-
* -1 is used to signal absence of value, in which case a default will be used.
|
|
20
|
-
*/
|
|
21
|
-
export class metis_options {
|
|
22
|
-
ptype = -1;
|
|
23
|
-
objtype = -1;
|
|
24
|
-
/**
|
|
25
|
-
* Coarsening scheme
|
|
26
|
-
* 0 - METIS_CTYPE_RM
|
|
27
|
-
* 1 - METIS_CTYPE_SHEM
|
|
28
|
-
* @type {number}
|
|
29
|
-
*/
|
|
30
|
-
ctype = -1;
|
|
31
|
-
iptype = -1;
|
|
32
|
-
rtype = -1;
|
|
33
|
-
dbglvl = -1;
|
|
34
|
-
niter = -1;
|
|
35
|
-
ncuts = -1;
|
|
36
|
-
/**
|
|
37
|
-
* Random seed
|
|
38
|
-
* Integer
|
|
39
|
-
* @type {number}
|
|
40
|
-
*/
|
|
41
|
-
seed = -1;
|
|
42
|
-
no2hop = -1;
|
|
43
|
-
minconn = -1;
|
|
44
|
-
contig = -1;
|
|
45
|
-
ccorder = -1;
|
|
46
|
-
pfactor = -1;
|
|
47
|
-
nseps = -1;
|
|
48
|
-
ufactor = -1;
|
|
49
|
-
numbering = -1;
|
|
50
|
-
compress = - 1;
|
|
51
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated The dedicated 2D Bezout specialization has been removed. It
|
|
3
|
-
* enumerated interior *intersections* (via the (3,3)/(3,3) Bezout resultant)
|
|
4
|
-
* plus the four boundary-edge minima only — it never enumerated interior
|
|
5
|
-
* *non-intersection* critical points, so it silently missed the closest
|
|
6
|
-
* approach of two non-intersecting cubic arcs whenever that approach is
|
|
7
|
-
* interior-to-interior (wrong on ~27% of random curve pairs, by as much as
|
|
8
|
-
* several units of squared distance). Its premise — "no interior intersection
|
|
9
|
-
* ⇒ the global minimum lies on the boundary" — is false for cubic arcs.
|
|
10
|
-
*
|
|
11
|
-
* This symbol is retained only so existing callers keep working; it now
|
|
12
|
-
* forwards to the dimension-agnostic
|
|
13
|
-
* {@link spline3_hermite_intersection_spline3_hermite_nd} path, which
|
|
14
|
-
* enumerates interior critical points (grid-seeded 2D Newton) in addition to
|
|
15
|
-
* the boundary minima and is correct for the full closest-approach problem.
|
|
16
|
-
*
|
|
17
|
-
* Prefer the dimension dispatcher
|
|
18
|
-
* {@link spline3_hermite_intersection_spline3_hermite} or
|
|
19
|
-
* `spline3_hermite_intersection_spline3_hermite_nd` directly. Note the buffer
|
|
20
|
-
* requirement is now the ND worst case: `result.length >= result_offset +
|
|
21
|
-
* 2 * ND_MAX_ROOTS` floats (currently 178), not the old 2D bound.
|
|
22
|
-
*
|
|
23
|
-
* Critical-point enumerator for the 2D Hermite curve-pair problem. Writes
|
|
24
|
-
* (s, t) pairs sequentially into `result` starting at `result_offset` and
|
|
25
|
-
* returns the count of pairs written. The caller evaluates both curves at each
|
|
26
|
-
* pair and picks the one(s) it cares about (closest, within threshold, etc.).
|
|
27
|
-
*
|
|
28
|
-
* @param {Float64Array|number[]} a length 8: [a_p0_x, a_p1_x, a_m0_x, a_m1_x, a_p0_y, a_p1_y, a_m0_y, a_m1_y]
|
|
29
|
-
* @param {Float64Array|number[]} b length 8 (same layout)
|
|
30
|
-
* @param {Float64Array|number[]} result length >= result_offset + 2 * ND_MAX_ROOTS
|
|
31
|
-
* @param {number} result_offset
|
|
32
|
-
* @returns {number} number of (s, t) pairs written
|
|
33
|
-
*/
|
|
34
|
-
export function spline3_hermite_intersection_spline3_hermite_2d(a: Float64Array | number[], b: Float64Array | number[], result: Float64Array | number[], result_offset: number): number;
|
|
35
|
-
//# sourceMappingURL=spline3_hermite_intersection_spline3_hermite_2d.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spline3_hermite_intersection_spline3_hermite_2d.d.ts","sourceRoot":"","sources":["../../../../../src/core/math/spline/spline3_hermite_intersection_spline3_hermite_2d.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,mEANW,YAAY,GAAC,MAAM,EAAE,KACrB,YAAY,GAAC,MAAM,EAAE,UACrB,YAAY,GAAC,MAAM,EAAE,iBACrB,MAAM,GACJ,MAAM,CAOlB"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { spline3_hermite_intersection_spline3_hermite_nd } from "./spline3_hermite_intersection_spline3_hermite_nd.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated The dedicated 2D Bezout specialization has been removed. It
|
|
5
|
-
* enumerated interior *intersections* (via the (3,3)/(3,3) Bezout resultant)
|
|
6
|
-
* plus the four boundary-edge minima only — it never enumerated interior
|
|
7
|
-
* *non-intersection* critical points, so it silently missed the closest
|
|
8
|
-
* approach of two non-intersecting cubic arcs whenever that approach is
|
|
9
|
-
* interior-to-interior (wrong on ~27% of random curve pairs, by as much as
|
|
10
|
-
* several units of squared distance). Its premise — "no interior intersection
|
|
11
|
-
* ⇒ the global minimum lies on the boundary" — is false for cubic arcs.
|
|
12
|
-
*
|
|
13
|
-
* This symbol is retained only so existing callers keep working; it now
|
|
14
|
-
* forwards to the dimension-agnostic
|
|
15
|
-
* {@link spline3_hermite_intersection_spline3_hermite_nd} path, which
|
|
16
|
-
* enumerates interior critical points (grid-seeded 2D Newton) in addition to
|
|
17
|
-
* the boundary minima and is correct for the full closest-approach problem.
|
|
18
|
-
*
|
|
19
|
-
* Prefer the dimension dispatcher
|
|
20
|
-
* {@link spline3_hermite_intersection_spline3_hermite} or
|
|
21
|
-
* `spline3_hermite_intersection_spline3_hermite_nd` directly. Note the buffer
|
|
22
|
-
* requirement is now the ND worst case: `result.length >= result_offset +
|
|
23
|
-
* 2 * ND_MAX_ROOTS` floats (currently 178), not the old 2D bound.
|
|
24
|
-
*
|
|
25
|
-
* Critical-point enumerator for the 2D Hermite curve-pair problem. Writes
|
|
26
|
-
* (s, t) pairs sequentially into `result` starting at `result_offset` and
|
|
27
|
-
* returns the count of pairs written. The caller evaluates both curves at each
|
|
28
|
-
* pair and picks the one(s) it cares about (closest, within threshold, etc.).
|
|
29
|
-
*
|
|
30
|
-
* @param {Float64Array|number[]} a length 8: [a_p0_x, a_p1_x, a_m0_x, a_m1_x, a_p0_y, a_p1_y, a_m0_y, a_m1_y]
|
|
31
|
-
* @param {Float64Array|number[]} b length 8 (same layout)
|
|
32
|
-
* @param {Float64Array|number[]} result length >= result_offset + 2 * ND_MAX_ROOTS
|
|
33
|
-
* @param {number} result_offset
|
|
34
|
-
* @returns {number} number of (s, t) pairs written
|
|
35
|
-
*/
|
|
36
|
-
export function spline3_hermite_intersection_spline3_hermite_2d(
|
|
37
|
-
a, b,
|
|
38
|
-
result, result_offset
|
|
39
|
-
) {
|
|
40
|
-
return spline3_hermite_intersection_spline3_hermite_nd(a, b, 2, result, result_offset);
|
|
41
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export default PropertySet;
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @deprecated use {@link Blackboard} class instead
|
|
5
|
-
*/
|
|
6
|
-
declare class PropertySet {
|
|
7
|
-
/**
|
|
8
|
-
* @param options
|
|
9
|
-
* @constructor
|
|
10
|
-
*/
|
|
11
|
-
constructor(options: any);
|
|
12
|
-
data: {};
|
|
13
|
-
/**
|
|
14
|
-
* @template T
|
|
15
|
-
* @param {string} path
|
|
16
|
-
* @return {T}
|
|
17
|
-
*/
|
|
18
|
-
get<T>(path: string): T;
|
|
19
|
-
/**
|
|
20
|
-
* @template T
|
|
21
|
-
* @param {string} path
|
|
22
|
-
* @param {T} defaultValue
|
|
23
|
-
* @return {T}
|
|
24
|
-
*/
|
|
25
|
-
getOrDefault<T_1>(path: string, defaultValue: T_1): T_1;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @param {String} path
|
|
29
|
-
* @param {Number|Boolean|String} value
|
|
30
|
-
*/
|
|
31
|
-
set(path: string, value: number | boolean | string): void;
|
|
32
|
-
toJSON(): any;
|
|
33
|
-
fromJSON(json: any): void;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @param {BinaryBuffer} buffer
|
|
37
|
-
*/
|
|
38
|
-
toBinaryBuffer(buffer: BinaryBuffer): void;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @param {BinaryBuffer} buffer
|
|
42
|
-
*/
|
|
43
|
-
fromBinaryBuffer(buffer: BinaryBuffer): void;
|
|
44
|
-
}
|
|
45
|
-
declare namespace PropertySet {
|
|
46
|
-
let typeName: string;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=PropertySet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertySet.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/components/PropertySet.js"],"names":[],"mappings":";AAEA;;;GAGG;AACH;IAGI;;;OAGG;IACH,0BAIC;IAVD,SAAU;IAYV;;;;OAIG;IACH,aAHW,MAAM,KAKhB;IAED;;;;;OAKG;IACH,wBAJW,MAAM,0BAehB;IAED;;;;OAIG;IACH,yBAFW,yBAAqB,QA+B/B;IAED,cAEC;IAED,0BAEC;IAED;;;OAGG;IACH,2CAEC;IAED;;;OAGG;IACH,6CAIC;CACJ"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { resolvePath } from "../../../core/json/resolvePath.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @deprecated use {@link Blackboard} class instead
|
|
6
|
-
*/
|
|
7
|
-
class PropertySet {
|
|
8
|
-
data = {};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @param options
|
|
12
|
-
* @constructor
|
|
13
|
-
*/
|
|
14
|
-
constructor(options) {
|
|
15
|
-
if (options !== null && options !== undefined) {
|
|
16
|
-
this.fromJSON(options);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @template T
|
|
22
|
-
* @param {string} path
|
|
23
|
-
* @return {T}
|
|
24
|
-
*/
|
|
25
|
-
get(path) {
|
|
26
|
-
return resolvePath(this.data, path);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @template T
|
|
31
|
-
* @param {string} path
|
|
32
|
-
* @param {T} defaultValue
|
|
33
|
-
* @return {T}
|
|
34
|
-
*/
|
|
35
|
-
getOrDefault(path, defaultValue) {
|
|
36
|
-
let result;
|
|
37
|
-
|
|
38
|
-
try {
|
|
39
|
-
result = this.get(path);
|
|
40
|
-
} catch (e) {
|
|
41
|
-
result = defaultValue;
|
|
42
|
-
this.set(path, defaultValue);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return result;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @param {String} path
|
|
51
|
-
* @param {Number|Boolean|String} value
|
|
52
|
-
*/
|
|
53
|
-
set(path, value) {
|
|
54
|
-
if (path.charAt(0) === '/') {
|
|
55
|
-
//strip leading slash if it is present
|
|
56
|
-
path = path.slice(1);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const parts = path.split("/");
|
|
60
|
-
|
|
61
|
-
const l = parts.length;
|
|
62
|
-
|
|
63
|
-
if (parts.length === 0) {
|
|
64
|
-
this.data = value;
|
|
65
|
-
} else {
|
|
66
|
-
|
|
67
|
-
let current = this.data;
|
|
68
|
-
|
|
69
|
-
for (let i = 0; i < l - 1; i++) {
|
|
70
|
-
const part = parts[i];
|
|
71
|
-
|
|
72
|
-
if (!current.hasOwnProperty(part)) {
|
|
73
|
-
current[part] = {};
|
|
74
|
-
}
|
|
75
|
-
current = current[part];
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const lastPropertyName = parts[l - 1];
|
|
79
|
-
|
|
80
|
-
current[lastPropertyName] = value;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
toJSON() {
|
|
85
|
-
return JSON.parse(JSON.stringify(this.data));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
fromJSON(json) {
|
|
89
|
-
this.data = json;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @param {BinaryBuffer} buffer
|
|
95
|
-
*/
|
|
96
|
-
toBinaryBuffer(buffer) {
|
|
97
|
-
buffer.writeUTF8String(JSON.stringify(this.data));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @param {BinaryBuffer} buffer
|
|
103
|
-
*/
|
|
104
|
-
fromBinaryBuffer(buffer) {
|
|
105
|
-
const string = buffer.readUTF8String();
|
|
106
|
-
|
|
107
|
-
this.data = JSON.parse(string);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
PropertySet.typeName = "PropertySet";
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
export default PropertySet;
|
|
115
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export class PropertySetSerializationAdapter extends BinaryClassSerializationAdapter<any> {
|
|
2
|
-
constructor();
|
|
3
|
-
klass: typeof PropertySet;
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param {BinaryBuffer} buffer
|
|
7
|
-
* @param {PropertySet} value
|
|
8
|
-
*/
|
|
9
|
-
serialize(buffer: BinaryBuffer, value: PropertySet): void;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @param {BinaryBuffer} buffer
|
|
13
|
-
* @param {PropertySet} value
|
|
14
|
-
*/
|
|
15
|
-
deserialize(buffer: BinaryBuffer, value: PropertySet): void;
|
|
16
|
-
}
|
|
17
|
-
import { BinaryClassSerializationAdapter } from "../storage/binary/BinaryClassSerializationAdapter.js";
|
|
18
|
-
import PropertySet from "./PropertySet.js";
|
|
19
|
-
//# sourceMappingURL=PropertySetSerializationAdapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertySetSerializationAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/components/PropertySetSerializationAdapter.js"],"names":[],"mappings":"AAGA;;IAGI,0BAAoB;IAGpB;;;;OAIG;IACH,uCAFW,WAAW,QAIrB;IAED;;;;OAIG;IACH,yCAFW,WAAW,QAMrB;CACJ;gDA5B+C,sDAAsD;wBAC9E,kBAAkB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BinaryClassSerializationAdapter } from "../storage/binary/BinaryClassSerializationAdapter.js";
|
|
2
|
-
import PropertySet from "./PropertySet.js";
|
|
3
|
-
|
|
4
|
-
export class PropertySetSerializationAdapter extends BinaryClassSerializationAdapter {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
klass = PropertySet;
|
|
8
|
-
version = 0;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @param {BinaryBuffer} buffer
|
|
13
|
-
* @param {PropertySet} value
|
|
14
|
-
*/
|
|
15
|
-
serialize(buffer, value) {
|
|
16
|
-
buffer.writeUTF8String(JSON.stringify(value.data));
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @param {BinaryBuffer} buffer
|
|
22
|
-
* @param {PropertySet} value
|
|
23
|
-
*/
|
|
24
|
-
deserialize(buffer, value) {
|
|
25
|
-
const string = buffer.readUTF8String();
|
|
26
|
-
|
|
27
|
-
value.data = JSON.parse(string);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bake a terrain ambient-occlusion lightmap.
|
|
3
|
-
*
|
|
4
|
-
* **Retired (D38, 2026-08-20). Calling this throws.**
|
|
5
|
-
*
|
|
6
|
-
* It traced 64 cosine-weighted rays per output texel against a Hi-Z pyramid of the heightmap, on a
|
|
7
|
-
* `WebGLRenderer` taken from a pool — **a second GL context, per generated level** — for a texture
|
|
8
|
-
* only the three-based terrain material ever sampled. That pool is gone too (X7). `TerrainSystem` builds
|
|
9
|
-
* a `StandardShadeMaterial` and never touches `aoMap`, so under the renderer this engine is moving
|
|
10
|
-
* to, the whole bake produced nothing anybody read.
|
|
11
|
-
*
|
|
12
|
-
* Deprecated and loud rather than quietly skipped: a bake that silently does nothing is a bake
|
|
13
|
-
* somebody re-enables by accident, and this one is expensive enough to be worth noticing. Terrain
|
|
14
|
-
* shading under Shade is U3b's virtual-texture path; ambient occlusion there is the renderer's own
|
|
15
|
-
* GTAO, which needs no bake.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated retired by D38 — terrain AO is not baked, and this throws if called
|
|
18
|
-
* @throws {Error} always
|
|
19
|
-
*/
|
|
20
|
-
export function buildLightTexture(): void;
|
|
21
|
-
//# sourceMappingURL=BuildLightTexture.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BuildLightTexture.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/ecs/terrain/ecs/BuildLightTexture.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,0CAOC"}
|