@adobe/data-gpu 0.9.75 → 0.9.77
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/CLAUDE.md +9 -0
- package/README.md +36 -0
- package/dist/core/core-plugin.d.ts +1 -1
- package/dist/core/public.d.ts +2 -0
- package/dist/core/public.js +4 -0
- package/dist/core/public.js.map +1 -0
- package/dist/graphics/animation/animation-data-plugin.d.ts +8 -0
- package/dist/graphics/animation/animation-plugin.d.ts +10 -2
- package/dist/graphics/camera/camera-plugin.d.ts +3 -3
- package/dist/graphics/camera/orbit/attach-orbit-drag.d.ts +1 -21
- package/dist/graphics/camera/orbit/attach-orbit-drag.js +0 -10
- package/dist/graphics/camera/orbit/attach-orbit-drag.js.map +1 -1
- package/dist/graphics/camera/orbit/orbit-data-plugin.d.ts +6 -6
- package/dist/graphics/camera/orbit/orbit-data-plugin.js +1 -1
- package/dist/graphics/camera/orbit/orbit-data-plugin.js.map +1 -1
- package/dist/graphics/camera/orbit/orbit-drag-service.d.ts +11 -0
- package/dist/graphics/camera/orbit/orbit-drag-service.js +3 -0
- package/dist/graphics/camera/orbit/orbit-drag-service.js.map +1 -0
- package/dist/graphics/camera/orbit/orbit-plugin.d.ts +6 -6
- package/dist/graphics/camera/orbit/orbit-system-plugin.d.ts +8 -8
- package/dist/graphics/camera/orbit/orbit-system-plugin.js +6 -9
- package/dist/graphics/camera/orbit/orbit-system-plugin.js.map +1 -1
- package/dist/graphics/camera/orbit/orbit.d.ts +5 -5
- package/dist/graphics/camera/orbit/public.d.ts +2 -2
- package/dist/graphics/camera/orbit/public.js +2 -1
- package/dist/graphics/camera/orbit/public.js.map +1 -1
- package/dist/graphics/graphics-plugin.d.ts +1 -1
- package/dist/graphics/index.d.ts +1 -0
- package/dist/graphics/index.js +3 -0
- package/dist/graphics/index.js.map +1 -0
- package/dist/graphics/picking/picking-plugin.d.ts +9871 -1912
- package/dist/graphics/picking/picking-plugin.js +3 -3
- package/dist/graphics/picking/picking-plugin.js.map +1 -1
- package/dist/graphics/public.d.ts +38 -0
- package/dist/graphics/public.js +40 -0
- package/dist/graphics/public.js.map +1 -0
- package/dist/graphics/rendering/bone-collider-plugin.d.ts +2967 -486
- package/dist/graphics/rendering/bone-collider-plugin.js +13 -12
- package/dist/graphics/rendering/bone-collider-plugin.js.map +1 -1
- package/dist/graphics/rendering/display-transform-plugin.d.ts +2 -0
- package/dist/graphics/rendering/display-transform-plugin.js +2 -2
- package/dist/graphics/rendering/display-transform-plugin.js.map +1 -1
- package/dist/graphics/rendering/ibl-render/ibl-render-plugin.d.ts +2857 -403
- package/dist/graphics/rendering/ibl-render/ibl-render-plugin.js +9 -9
- package/dist/graphics/rendering/ibl-render/ibl-render-plugin.js.map +1 -1
- package/dist/graphics/rendering/interpolation-plugin.d.ts +1040 -156
- package/dist/graphics/rendering/jolt-ragdoll-plugin.d.ts +3017 -538
- package/dist/graphics/rendering/jolt-ragdoll-plugin.js +6 -6
- package/dist/graphics/rendering/jolt-ragdoll-plugin.js.map +1 -1
- package/dist/graphics/rendering/material-palette-gpu/material-palette-gpu-plugin.d.ts +1123 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette-gpu-plugin.js +79 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette-gpu-plugin.js.map +1 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette-gpu.test.d.ts +1 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette-gpu.test.js +18 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette-gpu.test.js.map +1 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette.d.ts +25 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette.js +27 -0
- package/dist/graphics/rendering/material-palette-gpu/material-palette.js.map +1 -0
- package/dist/graphics/rendering/material-palette-gpu/palette-bind-group.d.ts +3 -0
- package/dist/graphics/rendering/material-palette-gpu/palette-bind-group.js +22 -0
- package/dist/graphics/rendering/material-palette-gpu/palette-bind-group.js.map +1 -0
- package/dist/graphics/rendering/model-collider-plugin.d.ts +2903 -663
- package/dist/graphics/rendering/model-collider-plugin.js +11 -34
- package/dist/graphics/rendering/model-collider-plugin.js.map +1 -1
- package/dist/graphics/rendering/pbr-core-plugin.d.ts +16 -8
- package/dist/graphics/rendering/pbr-core-plugin.js +16 -19
- package/dist/graphics/rendering/pbr-core-plugin.js.map +1 -1
- package/dist/graphics/rendering/pbr-render/pbr-factor-render-plugin.d.ts +3514 -0
- package/dist/graphics/rendering/pbr-render/pbr-factor-render-plugin.js +189 -0
- package/dist/graphics/rendering/pbr-render/pbr-factor-render-plugin.js.map +1 -0
- package/dist/graphics/rendering/pbr-render/pbr-factor-shader.wgsl.d.ts +7 -0
- package/dist/graphics/rendering/pbr-render/pbr-factor-shader.wgsl.js +124 -0
- package/dist/graphics/rendering/pbr-render/pbr-factor-shader.wgsl.js.map +1 -0
- package/dist/graphics/rendering/pbr-render/physics-bridge-plugin.d.ts +769 -571
- package/dist/graphics/rendering/pbr-render/physics-bridge-plugin.js +98 -79
- package/dist/graphics/rendering/pbr-render/physics-bridge-plugin.js.map +1 -1
- package/dist/graphics/rendering/pbr-render/primitive-render-shared.d.ts +43 -0
- package/dist/graphics/rendering/pbr-render/primitive-render-shared.js +59 -0
- package/dist/graphics/rendering/pbr-render/primitive-render-shared.js.map +1 -0
- package/dist/graphics/rendering/skinning/skinning-plugin.d.ts +2930 -270
- package/dist/graphics/rendering/skinning/skinning-plugin.js +19 -40
- package/dist/graphics/rendering/skinning/skinning-plugin.js.map +1 -1
- package/dist/graphics/scene/model/geometry/public.d.ts +1 -0
- package/dist/graphics/scene/model/mesh/mesh.d.ts +13 -0
- package/dist/graphics/scene/model/mesh/mesh.js +3 -0
- package/dist/graphics/scene/model/mesh/mesh.js.map +1 -0
- package/dist/graphics/scene/model/mesh/public.d.ts +1 -0
- package/dist/graphics/scene/model/mesh/public.js +3 -0
- package/dist/graphics/scene/model/mesh/public.js.map +1 -0
- package/dist/graphics/scene/model/mesh-plugin.d.ts +5177 -0
- package/dist/graphics/scene/model/mesh-plugin.js +87 -0
- package/dist/graphics/scene/model/mesh-plugin.js.map +1 -0
- package/dist/graphics/scene/model/model-loader-plugin.d.ts +2728 -295
- package/dist/graphics/scene/model/model-loader-plugin.js +24 -42
- package/dist/graphics/scene/model/model-loader-plugin.js.map +1 -1
- package/dist/graphics/scene/model/model-plugin.d.ts +1 -352
- package/dist/graphics/scene/model/model-plugin.js +1 -37
- package/dist/graphics/scene/model/model-plugin.js.map +1 -1
- package/dist/graphics/scene/model/model.d.ts +2 -6
- package/dist/graphics/scene/model/model.js.map +1 -1
- package/dist/graphics/scene/model/public.d.ts +1 -1
- package/dist/graphics/scene/model/public.js +2 -1
- package/dist/graphics/scene/model/public.js.map +1 -1
- package/dist/graphics/scene/model/shape/bounds-from-shape-mesh.d.ts +4 -0
- package/dist/graphics/scene/model/shape/bounds-from-shape-mesh.js +25 -0
- package/dist/graphics/scene/model/shape/bounds-from-shape-mesh.js.map +1 -0
- package/dist/graphics/scene/model/shape/shape-geometry-plugin.d.ts +233 -386
- package/dist/graphics/scene/model/shape/shape-geometry-plugin.js +87 -18
- package/dist/graphics/scene/model/shape/shape-geometry-plugin.js.map +1 -1
- package/dist/graphics/scene/model/shape/shape-spec.d.ts +17 -0
- package/dist/graphics/scene/model/shape/shape-spec.js +3 -0
- package/dist/graphics/scene/model/shape/shape-spec.js.map +1 -0
- package/dist/graphics/scene/model/world-bounds-plugin.d.ts +2670 -245
- package/dist/graphics/scene/model/world-bounds-plugin.js +6 -25
- package/dist/graphics/scene/model/world-bounds-plugin.js.map +1 -1
- package/dist/graphics/scene/node/node-data-plugin.d.ts +15 -4
- package/dist/graphics/scene/node/node-data-plugin.js +12 -5
- package/dist/graphics/scene/node/node-data-plugin.js.map +1 -1
- package/dist/graphics/scene/node/node-data-plugin.test.d.ts +1 -0
- package/dist/graphics/scene/node/node-data-plugin.test.js +40 -0
- package/dist/graphics/scene/node/node-data-plugin.test.js.map +1 -0
- package/dist/graphics/scene/node/node-plugin.d.ts +8 -1
- package/dist/graphics/scene/node/transform-plugin.d.ts +8 -1
- package/dist/graphics/scene/scene-plugin.d.ts +2353 -100
- package/dist/graphics/scene/scene-plugin.js +3 -3
- package/dist/graphics/scene/scene-plugin.js.map +1 -1
- package/dist/graphics/scene/scene-uniforms/scene-uniforms-plugin.d.ts +3 -3
- package/dist/index.d.ts +1 -53
- package/dist/index.js +1 -54
- package/dist/index.js.map +1 -1
- package/dist/material/assemble-material-row.d.ts +4 -0
- package/dist/material/assemble-material-row.js +22 -0
- package/dist/material/assemble-material-row.js.map +1 -0
- package/dist/material/definitions.d.ts +833 -0
- package/dist/material/definitions.js +423 -0
- package/dist/material/definitions.js.map +1 -0
- package/dist/material/emission-mode.d.ts +8 -0
- package/dist/material/emission-mode.js +9 -0
- package/dist/material/emission-mode.js.map +1 -0
- package/dist/material/index.d.ts +1 -0
- package/dist/material/index.js +3 -0
- package/dist/material/index.js.map +1 -0
- package/dist/material/json/from-json-string.d.ts +2 -0
- package/dist/material/json/from-json-string.js +12 -0
- package/dist/material/json/from-json-string.js.map +1 -0
- package/dist/material/json/from-json.d.ts +10 -0
- package/dist/material/json/from-json.js +16 -0
- package/dist/material/json/from-json.js.map +1 -0
- package/dist/material/json/from-json.test.d.ts +1 -0
- package/dist/material/json/from-json.test.js +46 -0
- package/dist/material/json/from-json.test.js.map +1 -0
- package/dist/material/json/is-properties-json.d.ts +2 -0
- package/dist/material/json/is-properties-json.js +65 -0
- package/dist/material/json/is-properties-json.js.map +1 -0
- package/dist/material/json/library-json.d.ts +3 -0
- package/dist/material/json/library-json.js +2 -0
- package/dist/material/json/library-json.js.map +1 -0
- package/dist/material/json/load-json.d.ts +7 -0
- package/dist/material/json/load-json.js +10 -0
- package/dist/material/json/load-json.js.map +1 -0
- package/dist/material/json/properties-json.d.ts +25 -0
- package/dist/material/json/properties-json.js +2 -0
- package/dist/material/json/properties-json.js.map +1 -0
- package/dist/material/json/public.d.ts +9 -0
- package/dist/material/json/public.js +6 -0
- package/dist/material/json/public.js.map +1 -0
- package/dist/material/json/to-definition.d.ts +5 -0
- package/dist/material/json/to-definition.js +65 -0
- package/dist/material/json/to-definition.js.map +1 -0
- package/dist/material/material-by-name-lookup.d.ts +11 -0
- package/dist/material/material-by-name-lookup.js +3 -0
- package/dist/material/material-by-name-lookup.js.map +1 -0
- package/dist/material/material-defaults.d.ts +23 -0
- package/dist/material/material-defaults.js +25 -0
- package/dist/material/material-defaults.js.map +1 -0
- package/dist/material/material-definition.d.ts +3 -0
- package/dist/material/material-definition.js +2 -0
- package/dist/material/material-definition.js.map +1 -0
- package/dist/material/material-name.d.ts +2 -0
- package/dist/material/material-name.js +2 -0
- package/dist/material/material-name.js.map +1 -0
- package/dist/material/material-plugin.d.ts +891 -22
- package/dist/material/material-plugin.js +46 -21
- package/dist/material/material-plugin.js.map +1 -1
- package/dist/material/material-plugin.test.d.ts +1 -0
- package/dist/material/material-plugin.test.js +87 -0
- package/dist/material/material-plugin.test.js.map +1 -0
- package/dist/material/material.d.ts +27 -29
- package/dist/material/material.js +0 -1
- package/dist/material/material.js.map +1 -1
- package/dist/material/public.d.ts +12 -2
- package/dist/material/public.js +12 -2
- package/dist/material/public.js.map +1 -1
- package/dist/material/require-material.d.ts +4 -0
- package/dist/material/require-material.js +10 -0
- package/dist/material/require-material.js.map +1 -0
- package/dist/material/standard-material-names.d.ts +2 -0
- package/dist/material/standard-material-names.js +4 -0
- package/dist/material/standard-material-names.js.map +1 -0
- package/dist/material/standard-materials.d.ts +1 -1
- package/dist/material/standard-materials.js +17 -24
- package/dist/material/standard-materials.js.map +1 -1
- package/dist/material/stress-strain-curve/create.d.ts +8 -0
- package/dist/material/stress-strain-curve/create.js +2 -0
- package/dist/material/stress-strain-curve/create.js.map +1 -0
- package/dist/material/stress-strain-curve/public.d.ts +2 -0
- package/dist/material/stress-strain-curve/public.js +3 -0
- package/dist/material/stress-strain-curve/public.js.map +1 -0
- package/dist/material/stress-strain-curve/schema.d.ts +52 -0
- package/dist/material/stress-strain-curve/schema.js +19 -0
- package/dist/material/stress-strain-curve/schema.js.map +1 -0
- package/dist/material/stress-strain-curve/schema.test.d.ts +1 -0
- package/dist/material/stress-strain-curve/schema.test.js +18 -0
- package/dist/material/stress-strain-curve/schema.test.js.map +1 -0
- package/dist/material/stress-strain-curve/stress-strain-curve.d.ts +4 -0
- package/dist/material/stress-strain-curve/stress-strain-curve.js +2 -0
- package/dist/material/stress-strain-curve/stress-strain-curve.js.map +1 -0
- package/dist/physics/body/collider-shape/mass-from-volume.d.ts +2 -0
- package/dist/physics/body/collider-shape/mass-from-volume.js +4 -0
- package/dist/physics/body/collider-shape/mass-from-volume.js.map +1 -0
- package/dist/physics/body/collider-shape/mass-from-volume.test.d.ts +1 -0
- package/dist/physics/body/collider-shape/mass-from-volume.test.js +8 -0
- package/dist/physics/body/collider-shape/mass-from-volume.test.js.map +1 -0
- package/dist/physics/collider-primitive-render-archetype.d.ts +2 -0
- package/dist/physics/collider-primitive-render-archetype.js +3 -0
- package/dist/physics/collider-primitive-render-archetype.js.map +1 -0
- package/dist/physics/collider-primitive-render-archetypes.d.ts +2 -0
- package/dist/physics/collider-primitive-render-archetypes.js +9 -0
- package/dist/physics/collider-primitive-render-archetypes.js.map +1 -0
- package/dist/physics/index.d.ts +1 -0
- package/dist/physics/index.js +3 -0
- package/dist/physics/index.js.map +1 -0
- package/dist/physics/is-voxel-shape-physics-pending.d.ts +3 -0
- package/dist/physics/is-voxel-shape-physics-pending.js +7 -0
- package/dist/physics/is-voxel-shape-physics-pending.js.map +1 -0
- package/dist/physics/physics-clock/physics-clock.d.ts +15 -0
- package/dist/physics/physics-clock/physics-clock.js +3 -0
- package/dist/physics/physics-clock/physics-clock.js.map +1 -0
- package/dist/physics/physics-clock-plugin.d.ts +2 -22
- package/dist/physics/physics-clock-plugin.js +0 -2
- package/dist/physics/physics-clock-plugin.js.map +1 -1
- package/dist/physics/physics-clock.test.js.map +1 -1
- package/dist/physics/physics-data-plugin.d.ts +889 -13
- package/dist/physics/physics-data-plugin.js +8 -6
- package/dist/physics/physics-data-plugin.js.map +1 -1
- package/dist/physics/public.d.ts +21 -0
- package/dist/physics/public.js +23 -0
- package/dist/physics/public.js.map +1 -0
- package/dist/physics/ragdoll/bone-capsule.d.ts +8 -0
- package/dist/physics/ragdoll/bone-capsule.js +3 -0
- package/dist/physics/ragdoll/bone-capsule.js.map +1 -0
- package/dist/physics/ragdoll/fit-bone-capsules-input.d.ts +11 -0
- package/dist/physics/ragdoll/fit-bone-capsules-input.js +3 -0
- package/dist/physics/ragdoll/fit-bone-capsules-input.js.map +1 -0
- package/dist/physics/ragdoll/fit-bone-capsules.d.ts +2 -38
- package/dist/physics/ragdoll/fit-bone-capsules.js +13 -0
- package/dist/physics/ragdoll/fit-bone-capsules.js.map +1 -1
- package/dist/physics/ragdoll/fit-bone-capsules.test.js.map +1 -1
- package/dist/physics/ragdoll/skin-vertices.d.ts +6 -0
- package/dist/physics/ragdoll/skin-vertices.js +3 -0
- package/dist/physics/ragdoll/skin-vertices.js.map +1 -0
- package/dist/physics/rigid-body-components.d.ts +2 -0
- package/dist/physics/rigid-body-components.js +13 -0
- package/dist/physics/rigid-body-components.js.map +1 -0
- package/dist/physics/solvers/jolt-solver-plugin.d.ts +918 -41
- package/dist/physics/solvers/jolt-solver-plugin.js +19 -3
- package/dist/physics/solvers/jolt-solver-plugin.js.map +1 -1
- package/dist/physics/solvers/rapier-solver-plugin.d.ts +918 -41
- package/dist/physics/solvers/rapier-solver-plugin.js +7 -2
- package/dist/physics/solvers/rapier-solver-plugin.js.map +1 -1
- package/dist/physics/solvers/solver-benchmark-options.d.ts +14 -0
- package/dist/physics/solvers/solver-benchmark-options.js +3 -0
- package/dist/physics/solvers/solver-benchmark-options.js.map +1 -0
- package/dist/physics/solvers/solver-benchmark-result.d.ts +15 -0
- package/dist/physics/solvers/solver-benchmark-result.js +3 -0
- package/dist/physics/solvers/solver-benchmark-result.js.map +1 -0
- package/dist/physics/solvers/solver-benchmark.d.ts +2 -43
- package/dist/physics/solvers/solver-benchmark.js.map +1 -1
- package/dist/physics/static-collider-components.d.ts +2 -0
- package/dist/physics/static-collider-components.js +10 -0
- package/dist/physics/static-collider-components.js.map +1 -0
- package/package.json +14 -2
- package/src/core/public.ts +4 -0
- package/src/graphics/camera/orbit/attach-orbit-drag.ts +7 -27
- package/src/graphics/camera/orbit/orbit-data-plugin.ts +1 -1
- package/src/graphics/camera/orbit/orbit-drag-service.ts +13 -0
- package/src/graphics/camera/orbit/orbit-system-plugin.ts +6 -9
- package/src/graphics/camera/orbit/orbit.ts +5 -5
- package/src/graphics/camera/orbit/public.ts +2 -2
- package/src/graphics/index.ts +3 -0
- package/src/graphics/picking/picking-plugin.ts +4 -4
- package/src/graphics/public.ts +40 -0
- package/src/graphics/rendering/bone-collider-plugin.ts +16 -12
- package/src/graphics/rendering/display-transform-plugin.ts +2 -2
- package/src/graphics/rendering/ibl-render/ibl-render-plugin.ts +9 -9
- package/src/graphics/rendering/interpolation.test.ts +1 -1
- package/src/graphics/rendering/jolt-ragdoll-plugin.ts +11 -7
- package/src/graphics/rendering/material-palette-gpu/material-palette-gpu-plugin.ts +86 -0
- package/src/graphics/rendering/material-palette-gpu/material-palette-gpu.test.ts +20 -0
- package/src/graphics/rendering/material-palette-gpu/material-palette.ts +41 -0
- package/src/graphics/rendering/material-palette-gpu/palette-bind-group.ts +24 -0
- package/src/graphics/rendering/model-collider-plugin.ts +19 -35
- package/src/graphics/rendering/pbr-core-plugin.ts +16 -19
- package/src/graphics/rendering/pbr-render/{pbr-render-plugin.ts → pbr-factor-render-plugin.ts} +60 -111
- package/src/graphics/rendering/pbr-render/{pbr-array-shader.wgsl.ts → pbr-factor-shader.wgsl.ts} +19 -40
- package/src/graphics/rendering/pbr-render/physics-bridge-plugin.ts +95 -69
- package/src/graphics/rendering/pbr-render/primitive-render-shared.ts +76 -0
- package/src/graphics/rendering/skinning/skinning-plugin.ts +23 -41
- package/src/graphics/scene/model/geometry/public.ts +1 -1
- package/src/graphics/scene/model/mesh/mesh.ts +18 -0
- package/src/graphics/scene/model/mesh/public.ts +3 -0
- package/src/graphics/scene/model/mesh-plugin.ts +102 -0
- package/src/graphics/scene/model/model-loader-plugin.ts +25 -43
- package/src/graphics/scene/model/model-plugin.ts +1 -44
- package/src/graphics/scene/model/model.ts +2 -6
- package/src/graphics/scene/model/public.ts +3 -1
- package/src/graphics/scene/model/shape/bounds-from-shape-mesh.ts +20 -0
- package/src/graphics/scene/model/shape/shape-geometry-plugin.ts +97 -18
- package/src/graphics/scene/model/shape/shape-spec.ts +9 -0
- package/src/graphics/scene/model/world-bounds-plugin.ts +6 -25
- package/src/graphics/scene/node/node-data-plugin.test.ts +47 -0
- package/src/graphics/scene/node/node-data-plugin.ts +12 -5
- package/src/graphics/scene/scene-plugin.ts +3 -3
- package/src/index.ts +1 -70
- package/src/material/assemble-material-row.ts +26 -0
- package/src/material/definitions.ts +427 -0
- package/src/material/emission-mode.ts +11 -0
- package/src/material/index.ts +3 -0
- package/src/material/json/from-json-string.ts +11 -0
- package/src/material/json/from-json.test.ts +50 -0
- package/src/material/json/from-json.ts +23 -0
- package/src/material/json/is-properties-json.ts +77 -0
- package/src/material/json/library-json.ts +4 -0
- package/src/material/json/load-json.ts +15 -0
- package/src/material/json/properties-json.ts +25 -0
- package/src/material/json/public.ts +9 -0
- package/src/material/json/to-definition.ts +70 -0
- package/src/material/material-by-name-lookup.ts +10 -0
- package/src/material/material-defaults.ts +26 -0
- package/src/material/material-definition.ts +4 -0
- package/src/material/material-name.ts +3 -0
- package/src/material/material-plugin.test.ts +97 -0
- package/src/material/material-plugin.ts +67 -39
- package/src/material/material.ts +35 -34
- package/src/material/public.ts +12 -2
- package/src/material/require-material.ts +15 -0
- package/src/material/standard-material-names.ts +4 -0
- package/src/material/standard-materials.ts +21 -27
- package/src/material/stress-strain-curve/create.ts +9 -0
- package/src/material/stress-strain-curve/public.ts +2 -0
- package/src/material/stress-strain-curve/schema.test.ts +20 -0
- package/src/material/stress-strain-curve/schema.ts +20 -0
- package/src/material/stress-strain-curve/stress-strain-curve.ts +11 -0
- package/src/physics/README.md +9 -1
- package/src/physics/body/collider-shape/mass-from-volume.test.ts +8 -0
- package/src/physics/body/collider-shape/mass-from-volume.ts +4 -0
- package/src/physics/collider-primitive-render-archetype.ts +5 -0
- package/src/physics/collider-primitive-render-archetypes.ts +9 -0
- package/src/physics/index.ts +3 -0
- package/src/physics/is-voxel-shape-physics-pending.ts +9 -0
- package/src/physics/physics-clock/physics-clock.ts +17 -0
- package/src/physics/physics-clock-plugin.ts +1 -24
- package/src/physics/physics-clock.test.ts +2 -1
- package/src/physics/physics-data-plugin.ts +8 -6
- package/src/physics/public.ts +23 -0
- package/src/physics/ragdoll/bone-capsule.ts +11 -0
- package/src/physics/ragdoll/fit-bone-capsules-input.ts +14 -0
- package/src/physics/ragdoll/fit-bone-capsules.test.ts +2 -1
- package/src/physics/ragdoll/fit-bone-capsules.ts +2 -27
- package/src/physics/ragdoll/skin-vertices.ts +8 -0
- package/src/physics/rigid-body-components.ts +13 -0
- package/src/physics/solvers/README.md +4 -0
- package/src/physics/solvers/jolt-solver-plugin.ts +19 -5
- package/src/physics/solvers/rapier-solver-plugin.ts +5 -2
- package/src/physics/solvers/solver-benchmark-options.ts +16 -0
- package/src/physics/solvers/solver-benchmark-result.ts +17 -0
- package/src/physics/solvers/solver-benchmark.ts +2 -35
- package/src/physics/static-collider-components.ts +10 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/src/graphics/rendering/material-gpu/material-arrays.ts +0 -113
- package/src/graphics/rendering/material-gpu/material-bind-group.ts +0 -61
- package/src/graphics/rendering/material-gpu/material-gpu-plugin.ts +0 -95
- package/src/graphics/scene/model/geometry/geometry.ts +0 -12
|
@@ -3,7 +3,7 @@ import { type GpuPrimitiveData } from "./gltf/load-gltf-model.js";
|
|
|
3
3
|
import type { LoadedAnimation } from "./gltf/parse-animations.js";
|
|
4
4
|
import type { JointTemplate } from "./gltf/parse-skin.js";
|
|
5
5
|
export interface LoadedArgs {
|
|
6
|
-
|
|
6
|
+
mesh: number;
|
|
7
7
|
bounds: Aabb;
|
|
8
8
|
primitives: GpuPrimitiveData[];
|
|
9
9
|
skinJointTemplate: JointTemplate[];
|
|
@@ -20,75 +20,12 @@ export interface LoadedArgs {
|
|
|
20
20
|
} | null;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* modelLoader
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* modelUrl
|
|
27
|
-
* write:
|
|
28
|
-
* _bounds: Aabb
|
|
29
|
-
* _skinJointTemplate: JointTemplate[]
|
|
30
|
-
* _skinInverseBindMatrices: Float32Array | null
|
|
31
|
-
* _animationClipRefs: EntityId[]
|
|
32
|
-
* _VisibleMaterial
|
|
33
|
-
* _PbrPrimitive
|
|
34
|
-
* AnimationClip // when the glTF carries animations
|
|
23
|
+
* modelLoader — queries `GltfMeshPending`, fetches each `gltfUrl`, inserts
|
|
24
|
+
* `_PbrPrimitive` rows, and migrates the mesh entity to `StaticMesh` or
|
|
25
|
+
* `SkinnedMesh` with capability components.
|
|
35
26
|
*/
|
|
36
27
|
export declare const modelLoader: {
|
|
37
28
|
readonly components: {} & {
|
|
38
|
-
readonly _vertexBuffer: {
|
|
39
|
-
readonly default: GPUBuffer | null;
|
|
40
|
-
};
|
|
41
|
-
readonly _skinVertexBuffer: {
|
|
42
|
-
readonly default: GPUBuffer | null;
|
|
43
|
-
};
|
|
44
|
-
readonly _indexBuffer: {
|
|
45
|
-
readonly default: GPUBuffer | null;
|
|
46
|
-
};
|
|
47
|
-
readonly _indexCount: {
|
|
48
|
-
readonly type: "integer";
|
|
49
|
-
readonly minimum: 0;
|
|
50
|
-
readonly maximum: 4294967295;
|
|
51
|
-
readonly default: number;
|
|
52
|
-
};
|
|
53
|
-
readonly _indexFormat: {
|
|
54
|
-
readonly default: GPUIndexFormat;
|
|
55
|
-
};
|
|
56
|
-
readonly _materialBindGroup: {
|
|
57
|
-
readonly default: GPUBindGroup | null;
|
|
58
|
-
};
|
|
59
|
-
readonly _geometry: {
|
|
60
|
-
readonly type: "integer";
|
|
61
|
-
readonly minimum: -2147483648;
|
|
62
|
-
readonly maximum: 2147483647;
|
|
63
|
-
readonly default: number;
|
|
64
|
-
};
|
|
65
|
-
readonly _material: {
|
|
66
|
-
readonly type: "integer";
|
|
67
|
-
readonly minimum: -2147483648;
|
|
68
|
-
readonly maximum: 2147483647;
|
|
69
|
-
readonly default: number;
|
|
70
|
-
};
|
|
71
|
-
readonly _nodeLocalMatrix: {
|
|
72
|
-
readonly type: "array";
|
|
73
|
-
readonly items: {
|
|
74
|
-
readonly type: "number";
|
|
75
|
-
readonly precision: 1;
|
|
76
|
-
readonly default: number;
|
|
77
|
-
};
|
|
78
|
-
readonly minItems: 16;
|
|
79
|
-
readonly maxItems: 16;
|
|
80
|
-
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
81
|
-
};
|
|
82
|
-
readonly _skeletonModelRef: {
|
|
83
|
-
readonly type: "integer";
|
|
84
|
-
readonly minimum: -2147483648;
|
|
85
|
-
readonly maximum: 2147483647;
|
|
86
|
-
readonly default: number;
|
|
87
|
-
};
|
|
88
|
-
readonly _skeletonJointMatrixBindGroup: {
|
|
89
|
-
readonly default: GPUBindGroup | null;
|
|
90
|
-
};
|
|
91
|
-
} & {
|
|
92
29
|
readonly visible: {
|
|
93
30
|
readonly type: "boolean";
|
|
94
31
|
readonly const: true;
|
|
@@ -137,6 +74,7 @@ export declare const modelLoader: {
|
|
|
137
74
|
readonly default: number;
|
|
138
75
|
};
|
|
139
76
|
readonly _worldMatrix: {
|
|
77
|
+
readonly nonPersistent: true;
|
|
140
78
|
readonly type: "array";
|
|
141
79
|
readonly items: {
|
|
142
80
|
readonly type: "number";
|
|
@@ -148,6 +86,7 @@ export declare const modelLoader: {
|
|
|
148
86
|
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
149
87
|
};
|
|
150
88
|
readonly _worldBounds: {
|
|
89
|
+
readonly nonPersistent: true;
|
|
151
90
|
readonly type: "object";
|
|
152
91
|
readonly properties: {
|
|
153
92
|
readonly min: {
|
|
@@ -181,145 +120,1990 @@ export declare const modelLoader: {
|
|
|
181
120
|
};
|
|
182
121
|
};
|
|
183
122
|
} & {
|
|
184
|
-
readonly
|
|
185
|
-
readonly type: "string";
|
|
186
|
-
};
|
|
187
|
-
readonly geometry: {
|
|
123
|
+
readonly material: {
|
|
188
124
|
readonly type: "integer";
|
|
189
125
|
readonly minimum: -2147483648;
|
|
190
126
|
readonly maximum: 2147483647;
|
|
191
127
|
readonly default: number;
|
|
192
128
|
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
readonly default: import("../../animation/animation-track/public.js")[];
|
|
129
|
+
readonly name: {
|
|
130
|
+
readonly type: "string";
|
|
196
131
|
};
|
|
197
|
-
readonly
|
|
132
|
+
readonly density: {
|
|
198
133
|
readonly type: "number";
|
|
199
|
-
readonly precision:
|
|
134
|
+
readonly precision: 1;
|
|
200
135
|
readonly default: number;
|
|
201
136
|
};
|
|
202
|
-
readonly
|
|
203
|
-
readonly type: "
|
|
204
|
-
readonly
|
|
205
|
-
readonly maximum: 2147483647;
|
|
137
|
+
readonly restitution: {
|
|
138
|
+
readonly type: "number";
|
|
139
|
+
readonly precision: 1;
|
|
206
140
|
readonly default: number;
|
|
207
141
|
};
|
|
208
|
-
readonly
|
|
209
|
-
readonly
|
|
142
|
+
readonly friction: {
|
|
143
|
+
readonly type: "number";
|
|
144
|
+
readonly precision: 1;
|
|
145
|
+
readonly default: number;
|
|
210
146
|
};
|
|
211
|
-
readonly
|
|
147
|
+
readonly compliance: {
|
|
212
148
|
readonly type: "number";
|
|
213
|
-
readonly precision:
|
|
149
|
+
readonly precision: 1;
|
|
214
150
|
readonly default: number;
|
|
215
151
|
};
|
|
216
|
-
readonly
|
|
217
|
-
readonly default: 1;
|
|
152
|
+
readonly heatCapacity: {
|
|
218
153
|
readonly type: "number";
|
|
219
154
|
readonly precision: 1;
|
|
155
|
+
readonly default: number;
|
|
220
156
|
};
|
|
221
|
-
readonly
|
|
222
|
-
readonly type: "
|
|
157
|
+
readonly viscosity: {
|
|
158
|
+
readonly type: "number";
|
|
159
|
+
readonly precision: 1;
|
|
160
|
+
readonly default: number;
|
|
223
161
|
};
|
|
224
|
-
readonly
|
|
225
|
-
readonly type: "
|
|
162
|
+
readonly thermalConductivity: {
|
|
163
|
+
readonly type: "number";
|
|
164
|
+
readonly precision: 1;
|
|
165
|
+
readonly default: number;
|
|
226
166
|
};
|
|
227
|
-
readonly
|
|
228
|
-
readonly type: "
|
|
229
|
-
readonly
|
|
230
|
-
readonly
|
|
167
|
+
readonly stressStrainCurve: {
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly layout: "packed";
|
|
170
|
+
readonly properties: {
|
|
171
|
+
readonly tensileYieldStrainStress: {
|
|
172
|
+
readonly type: "array";
|
|
173
|
+
readonly items: {
|
|
174
|
+
readonly type: "number";
|
|
175
|
+
readonly precision: 1;
|
|
176
|
+
readonly default: number;
|
|
177
|
+
};
|
|
178
|
+
readonly minItems: 2;
|
|
179
|
+
readonly maxItems: 2;
|
|
180
|
+
readonly default: readonly [0, 0];
|
|
181
|
+
};
|
|
182
|
+
readonly tensileFractureStrainStress: {
|
|
183
|
+
readonly type: "array";
|
|
184
|
+
readonly items: {
|
|
185
|
+
readonly type: "number";
|
|
186
|
+
readonly precision: 1;
|
|
187
|
+
readonly default: number;
|
|
188
|
+
};
|
|
189
|
+
readonly minItems: 2;
|
|
190
|
+
readonly maxItems: 2;
|
|
191
|
+
readonly default: readonly [0, 0];
|
|
192
|
+
};
|
|
193
|
+
readonly compressiveYieldStrainStress: {
|
|
194
|
+
readonly type: "array";
|
|
195
|
+
readonly items: {
|
|
196
|
+
readonly type: "number";
|
|
197
|
+
readonly precision: 1;
|
|
198
|
+
readonly default: number;
|
|
199
|
+
};
|
|
200
|
+
readonly minItems: 2;
|
|
201
|
+
readonly maxItems: 2;
|
|
202
|
+
readonly default: readonly [0, 0];
|
|
203
|
+
};
|
|
204
|
+
readonly compressiveFractureStrainStress: {
|
|
205
|
+
readonly type: "array";
|
|
206
|
+
readonly items: {
|
|
207
|
+
readonly type: "number";
|
|
208
|
+
readonly precision: 1;
|
|
209
|
+
readonly default: number;
|
|
210
|
+
};
|
|
211
|
+
readonly minItems: 2;
|
|
212
|
+
readonly maxItems: 2;
|
|
213
|
+
readonly default: readonly [0, 0];
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
217
|
+
};
|
|
218
|
+
readonly baseColorFactor: {
|
|
219
|
+
readonly type: "array";
|
|
220
|
+
readonly items: {
|
|
221
|
+
readonly type: "number";
|
|
222
|
+
readonly precision: 1;
|
|
223
|
+
readonly default: number;
|
|
224
|
+
};
|
|
225
|
+
readonly minItems: 4;
|
|
226
|
+
readonly maxItems: 4;
|
|
227
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
228
|
+
};
|
|
229
|
+
readonly emissiveFactor: {
|
|
230
|
+
readonly type: "array";
|
|
231
|
+
readonly items: {
|
|
232
|
+
readonly type: "number";
|
|
233
|
+
readonly precision: 1;
|
|
234
|
+
readonly default: number;
|
|
235
|
+
};
|
|
236
|
+
readonly minItems: 3;
|
|
237
|
+
readonly maxItems: 3;
|
|
238
|
+
readonly default: readonly [0, 0, 0];
|
|
239
|
+
};
|
|
240
|
+
readonly metallicFactor: {
|
|
241
|
+
readonly type: "number";
|
|
242
|
+
readonly precision: 1;
|
|
243
|
+
readonly default: number;
|
|
244
|
+
};
|
|
245
|
+
readonly roughnessFactor: {
|
|
246
|
+
readonly type: "number";
|
|
247
|
+
readonly precision: 1;
|
|
248
|
+
readonly default: number;
|
|
249
|
+
};
|
|
250
|
+
readonly normalScale: {
|
|
251
|
+
readonly type: "number";
|
|
252
|
+
readonly precision: 1;
|
|
253
|
+
readonly default: number;
|
|
254
|
+
};
|
|
255
|
+
readonly occlusionStrength: {
|
|
256
|
+
readonly type: "number";
|
|
257
|
+
readonly precision: 1;
|
|
258
|
+
readonly default: number;
|
|
259
|
+
};
|
|
260
|
+
readonly irReflectance: {
|
|
261
|
+
readonly type: "number";
|
|
262
|
+
readonly precision: 1;
|
|
263
|
+
readonly default: number;
|
|
264
|
+
};
|
|
265
|
+
readonly irEmission: {
|
|
266
|
+
readonly type: "number";
|
|
267
|
+
readonly precision: 1;
|
|
268
|
+
readonly default: number;
|
|
269
|
+
};
|
|
270
|
+
readonly emissionMode: {
|
|
271
|
+
readonly type: "integer";
|
|
272
|
+
readonly minimum: 0;
|
|
273
|
+
readonly maximum: 4294967295;
|
|
274
|
+
readonly default: number;
|
|
275
|
+
};
|
|
276
|
+
readonly baseColorUrl: {
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
};
|
|
279
|
+
readonly metallicRoughnessUrl: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
};
|
|
282
|
+
readonly normalUrl: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
};
|
|
285
|
+
readonly occlusionUrl: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
};
|
|
288
|
+
readonly emissiveUrl: {
|
|
289
|
+
readonly type: "string";
|
|
231
290
|
};
|
|
232
291
|
} & {
|
|
233
|
-
readonly
|
|
292
|
+
readonly mesh: {
|
|
293
|
+
readonly type: "integer";
|
|
294
|
+
readonly minimum: -2147483648;
|
|
295
|
+
readonly maximum: 2147483647;
|
|
296
|
+
readonly default: number;
|
|
297
|
+
};
|
|
298
|
+
readonly gltfUrl: {
|
|
299
|
+
readonly type: "string";
|
|
300
|
+
};
|
|
301
|
+
readonly shapeSpec: {
|
|
302
|
+
readonly default: import("./shape/shape-spec.js").ShapeSpec | null;
|
|
303
|
+
};
|
|
304
|
+
readonly voxelVolumeSize: {
|
|
305
|
+
readonly default: import("@adobe/data/math").Vec3 | null;
|
|
306
|
+
};
|
|
307
|
+
readonly localBounds: {
|
|
234
308
|
readonly default: Aabb | null;
|
|
235
309
|
};
|
|
236
|
-
readonly
|
|
310
|
+
readonly skinJointTemplate: {
|
|
237
311
|
readonly default: JointTemplate[];
|
|
238
312
|
};
|
|
239
|
-
readonly
|
|
313
|
+
readonly skinInverseBindMatrices: {
|
|
240
314
|
readonly default: Float32Array | null;
|
|
241
315
|
};
|
|
242
|
-
readonly
|
|
316
|
+
readonly animationClipRefs: {
|
|
243
317
|
readonly default: number[];
|
|
244
318
|
};
|
|
245
|
-
readonly
|
|
319
|
+
readonly cpuCollisionPositions: {
|
|
246
320
|
readonly default: Float32Array | null;
|
|
247
321
|
};
|
|
248
|
-
readonly
|
|
322
|
+
readonly cpuCollisionIndices: {
|
|
249
323
|
readonly default: Uint32Array | null;
|
|
250
324
|
};
|
|
251
|
-
readonly
|
|
325
|
+
readonly cpuSkin: {
|
|
252
326
|
readonly default: {
|
|
253
327
|
positions: Float32Array;
|
|
254
328
|
joints: Uint32Array;
|
|
255
329
|
weights: Float32Array;
|
|
256
330
|
} | null;
|
|
257
331
|
};
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
readonly default: import("../../../core/frame-time/public.js");
|
|
332
|
+
} & {
|
|
333
|
+
readonly _vertexBuffer: {
|
|
334
|
+
readonly default: GPUBuffer | null;
|
|
262
335
|
readonly nonPersistent: true;
|
|
263
336
|
};
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
readonly
|
|
337
|
+
readonly _skinVertexBuffer: {
|
|
338
|
+
readonly default: GPUBuffer | null;
|
|
339
|
+
readonly nonPersistent: true;
|
|
267
340
|
};
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
readonly default: GPUDevice | null;
|
|
341
|
+
readonly _indexBuffer: {
|
|
342
|
+
readonly default: GPUBuffer | null;
|
|
271
343
|
readonly nonPersistent: true;
|
|
272
344
|
};
|
|
273
|
-
readonly
|
|
274
|
-
readonly default: GPUCommandEncoder | null;
|
|
345
|
+
readonly _indexCount: {
|
|
275
346
|
readonly nonPersistent: true;
|
|
347
|
+
readonly type: "integer";
|
|
348
|
+
readonly minimum: 0;
|
|
349
|
+
readonly maximum: 4294967295;
|
|
350
|
+
readonly default: number;
|
|
276
351
|
};
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
readonly
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
readonly
|
|
293
|
-
readonly
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
readonly
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
readonly
|
|
305
|
-
readonly
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
readonly
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
readonly
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
352
|
+
readonly _indexFormat: {
|
|
353
|
+
readonly default: GPUIndexFormat;
|
|
354
|
+
readonly nonPersistent: true;
|
|
355
|
+
};
|
|
356
|
+
readonly _materialBindGroup: {
|
|
357
|
+
readonly default: GPUBindGroup | null;
|
|
358
|
+
readonly nonPersistent: true;
|
|
359
|
+
};
|
|
360
|
+
readonly _mesh: {
|
|
361
|
+
readonly nonPersistent: true;
|
|
362
|
+
readonly type: "integer";
|
|
363
|
+
readonly minimum: -2147483648;
|
|
364
|
+
readonly maximum: 2147483647;
|
|
365
|
+
readonly default: number;
|
|
366
|
+
};
|
|
367
|
+
readonly _material: {
|
|
368
|
+
readonly nonPersistent: true;
|
|
369
|
+
readonly type: "integer";
|
|
370
|
+
readonly minimum: -2147483648;
|
|
371
|
+
readonly maximum: 2147483647;
|
|
372
|
+
readonly default: number;
|
|
373
|
+
};
|
|
374
|
+
readonly _nodeLocalMatrix: {
|
|
375
|
+
readonly nonPersistent: true;
|
|
376
|
+
readonly type: "array";
|
|
377
|
+
readonly items: {
|
|
378
|
+
readonly type: "number";
|
|
379
|
+
readonly precision: 1;
|
|
380
|
+
readonly default: number;
|
|
381
|
+
};
|
|
382
|
+
readonly minItems: 16;
|
|
383
|
+
readonly maxItems: 16;
|
|
384
|
+
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
385
|
+
};
|
|
386
|
+
readonly _skeletonModelRef: {
|
|
387
|
+
readonly nonPersistent: true;
|
|
388
|
+
readonly type: "integer";
|
|
389
|
+
readonly minimum: -2147483648;
|
|
390
|
+
readonly maximum: 2147483647;
|
|
391
|
+
readonly default: number;
|
|
392
|
+
};
|
|
393
|
+
readonly _skeletonJointMatrixBindGroup: {
|
|
394
|
+
readonly default: GPUBindGroup | null;
|
|
395
|
+
readonly nonPersistent: true;
|
|
396
|
+
};
|
|
397
|
+
} & {
|
|
398
|
+
readonly animationClipTracks: {
|
|
399
|
+
readonly default: import("../../animation/animation-track/public.js")[];
|
|
400
|
+
};
|
|
401
|
+
readonly animationClipDuration: {
|
|
402
|
+
readonly type: "number";
|
|
403
|
+
readonly precision: 2;
|
|
404
|
+
readonly default: number;
|
|
405
|
+
};
|
|
406
|
+
readonly animationClipRef: {
|
|
407
|
+
readonly type: "integer";
|
|
408
|
+
readonly minimum: -2147483648;
|
|
409
|
+
readonly maximum: 2147483647;
|
|
410
|
+
readonly default: number;
|
|
411
|
+
};
|
|
412
|
+
readonly animationTargets: {
|
|
413
|
+
readonly default: number[];
|
|
414
|
+
};
|
|
415
|
+
readonly animationTime: {
|
|
416
|
+
readonly type: "number";
|
|
417
|
+
readonly precision: 2;
|
|
418
|
+
readonly default: number;
|
|
419
|
+
};
|
|
420
|
+
readonly animationSpeed: {
|
|
421
|
+
readonly default: 1;
|
|
422
|
+
readonly type: "number";
|
|
423
|
+
readonly precision: 1;
|
|
424
|
+
};
|
|
425
|
+
readonly animationLoop: {
|
|
426
|
+
readonly type: "boolean";
|
|
427
|
+
readonly default: boolean;
|
|
428
|
+
};
|
|
429
|
+
readonly animationPlaying: {
|
|
430
|
+
readonly type: "boolean";
|
|
431
|
+
readonly default: boolean;
|
|
432
|
+
};
|
|
433
|
+
readonly animationObservable: {
|
|
434
|
+
readonly type: "boolean";
|
|
435
|
+
readonly const: true;
|
|
436
|
+
readonly default: true;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly resources: {} & {
|
|
440
|
+
readonly _gltfMeshByUrl: {
|
|
441
|
+
readonly default: Map<string, number> | null;
|
|
442
|
+
readonly nonPersistent: true;
|
|
443
|
+
};
|
|
444
|
+
} & {
|
|
445
|
+
readonly frameTime: {
|
|
446
|
+
readonly default: import("../../../core/frame-time/public.js");
|
|
447
|
+
readonly nonPersistent: true;
|
|
448
|
+
};
|
|
449
|
+
} & {
|
|
450
|
+
readonly schedulerState: {
|
|
451
|
+
readonly default: import("@adobe/data/ecs").SchedulerState;
|
|
452
|
+
};
|
|
453
|
+
} & {
|
|
454
|
+
readonly device: {
|
|
455
|
+
readonly default: GPUDevice | null;
|
|
456
|
+
readonly nonPersistent: true;
|
|
457
|
+
};
|
|
458
|
+
readonly commandEncoder: {
|
|
459
|
+
readonly default: GPUCommandEncoder | null;
|
|
460
|
+
readonly nonPersistent: true;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
readonly archetypes: {} & {
|
|
464
|
+
readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
|
|
465
|
+
} & {} & {
|
|
466
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
467
|
+
} & {
|
|
468
|
+
readonly GltfMeshPending: readonly ["gltfUrl"];
|
|
469
|
+
readonly ShapeMeshPending: readonly ["shapeSpec"];
|
|
470
|
+
readonly StaticMesh: readonly ["localBounds"];
|
|
471
|
+
readonly SkinnedMesh: readonly ["localBounds", "skinJointTemplate", "skinInverseBindMatrices", "animationClipRefs"];
|
|
472
|
+
readonly MeshInstance: readonly ["mesh", "position", "rotation", "scale", "visible", "material"];
|
|
473
|
+
readonly Model: readonly ["mesh", "position", "rotation", "scale", "visible", "parent"];
|
|
474
|
+
} & {
|
|
475
|
+
readonly _VisibleMaterial: readonly ["nonPersistent", "_materialBindGroup", "_mesh"];
|
|
476
|
+
readonly _PbrPrimitive: readonly ["nonPersistent", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_mesh", "_nodeLocalMatrix"];
|
|
477
|
+
} & {
|
|
478
|
+
readonly AnimationClip: readonly ["animationClipTracks", "animationClipDuration"];
|
|
479
|
+
readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
|
|
480
|
+
readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
|
|
481
|
+
} & {} & {};
|
|
482
|
+
readonly transactions: {} & {} & {
|
|
483
|
+
readonly insertMaterial: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
484
|
+
readonly material: {
|
|
485
|
+
readonly type: "integer";
|
|
486
|
+
readonly minimum: -2147483648;
|
|
487
|
+
readonly maximum: 2147483647;
|
|
488
|
+
readonly default: number;
|
|
489
|
+
};
|
|
490
|
+
readonly name: {
|
|
491
|
+
readonly type: "string";
|
|
492
|
+
};
|
|
493
|
+
readonly density: {
|
|
494
|
+
readonly type: "number";
|
|
495
|
+
readonly precision: 1;
|
|
496
|
+
readonly default: number;
|
|
497
|
+
};
|
|
498
|
+
readonly restitution: {
|
|
499
|
+
readonly type: "number";
|
|
500
|
+
readonly precision: 1;
|
|
501
|
+
readonly default: number;
|
|
502
|
+
};
|
|
503
|
+
readonly friction: {
|
|
504
|
+
readonly type: "number";
|
|
505
|
+
readonly precision: 1;
|
|
506
|
+
readonly default: number;
|
|
507
|
+
};
|
|
508
|
+
readonly compliance: {
|
|
509
|
+
readonly type: "number";
|
|
510
|
+
readonly precision: 1;
|
|
511
|
+
readonly default: number;
|
|
512
|
+
};
|
|
513
|
+
readonly heatCapacity: {
|
|
514
|
+
readonly type: "number";
|
|
515
|
+
readonly precision: 1;
|
|
516
|
+
readonly default: number;
|
|
517
|
+
};
|
|
518
|
+
readonly viscosity: {
|
|
519
|
+
readonly type: "number";
|
|
520
|
+
readonly precision: 1;
|
|
521
|
+
readonly default: number;
|
|
522
|
+
};
|
|
523
|
+
readonly thermalConductivity: {
|
|
524
|
+
readonly type: "number";
|
|
525
|
+
readonly precision: 1;
|
|
526
|
+
readonly default: number;
|
|
527
|
+
};
|
|
528
|
+
readonly stressStrainCurve: {
|
|
529
|
+
readonly type: "object";
|
|
530
|
+
readonly layout: "packed";
|
|
531
|
+
readonly properties: {
|
|
532
|
+
readonly tensileYieldStrainStress: {
|
|
533
|
+
readonly type: "array";
|
|
534
|
+
readonly items: {
|
|
535
|
+
readonly type: "number";
|
|
536
|
+
readonly precision: 1;
|
|
537
|
+
readonly default: number;
|
|
538
|
+
};
|
|
539
|
+
readonly minItems: 2;
|
|
540
|
+
readonly maxItems: 2;
|
|
541
|
+
readonly default: readonly [0, 0];
|
|
542
|
+
};
|
|
543
|
+
readonly tensileFractureStrainStress: {
|
|
544
|
+
readonly type: "array";
|
|
545
|
+
readonly items: {
|
|
546
|
+
readonly type: "number";
|
|
547
|
+
readonly precision: 1;
|
|
548
|
+
readonly default: number;
|
|
549
|
+
};
|
|
550
|
+
readonly minItems: 2;
|
|
551
|
+
readonly maxItems: 2;
|
|
552
|
+
readonly default: readonly [0, 0];
|
|
553
|
+
};
|
|
554
|
+
readonly compressiveYieldStrainStress: {
|
|
555
|
+
readonly type: "array";
|
|
556
|
+
readonly items: {
|
|
557
|
+
readonly type: "number";
|
|
558
|
+
readonly precision: 1;
|
|
559
|
+
readonly default: number;
|
|
560
|
+
};
|
|
561
|
+
readonly minItems: 2;
|
|
562
|
+
readonly maxItems: 2;
|
|
563
|
+
readonly default: readonly [0, 0];
|
|
564
|
+
};
|
|
565
|
+
readonly compressiveFractureStrainStress: {
|
|
566
|
+
readonly type: "array";
|
|
567
|
+
readonly items: {
|
|
568
|
+
readonly type: "number";
|
|
569
|
+
readonly precision: 1;
|
|
570
|
+
readonly default: number;
|
|
571
|
+
};
|
|
572
|
+
readonly minItems: 2;
|
|
573
|
+
readonly maxItems: 2;
|
|
574
|
+
readonly default: readonly [0, 0];
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
578
|
+
};
|
|
579
|
+
readonly baseColorFactor: {
|
|
580
|
+
readonly type: "array";
|
|
581
|
+
readonly items: {
|
|
582
|
+
readonly type: "number";
|
|
583
|
+
readonly precision: 1;
|
|
584
|
+
readonly default: number;
|
|
585
|
+
};
|
|
586
|
+
readonly minItems: 4;
|
|
587
|
+
readonly maxItems: 4;
|
|
588
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
589
|
+
};
|
|
590
|
+
readonly emissiveFactor: {
|
|
591
|
+
readonly type: "array";
|
|
592
|
+
readonly items: {
|
|
593
|
+
readonly type: "number";
|
|
594
|
+
readonly precision: 1;
|
|
595
|
+
readonly default: number;
|
|
596
|
+
};
|
|
597
|
+
readonly minItems: 3;
|
|
598
|
+
readonly maxItems: 3;
|
|
599
|
+
readonly default: readonly [0, 0, 0];
|
|
600
|
+
};
|
|
601
|
+
readonly metallicFactor: {
|
|
602
|
+
readonly type: "number";
|
|
603
|
+
readonly precision: 1;
|
|
604
|
+
readonly default: number;
|
|
605
|
+
};
|
|
606
|
+
readonly roughnessFactor: {
|
|
607
|
+
readonly type: "number";
|
|
608
|
+
readonly precision: 1;
|
|
609
|
+
readonly default: number;
|
|
610
|
+
};
|
|
611
|
+
readonly normalScale: {
|
|
612
|
+
readonly type: "number";
|
|
613
|
+
readonly precision: 1;
|
|
614
|
+
readonly default: number;
|
|
615
|
+
};
|
|
616
|
+
readonly occlusionStrength: {
|
|
617
|
+
readonly type: "number";
|
|
618
|
+
readonly precision: 1;
|
|
619
|
+
readonly default: number;
|
|
620
|
+
};
|
|
621
|
+
readonly irReflectance: {
|
|
622
|
+
readonly type: "number";
|
|
623
|
+
readonly precision: 1;
|
|
624
|
+
readonly default: number;
|
|
625
|
+
};
|
|
626
|
+
readonly irEmission: {
|
|
627
|
+
readonly type: "number";
|
|
628
|
+
readonly precision: 1;
|
|
629
|
+
readonly default: number;
|
|
630
|
+
};
|
|
631
|
+
readonly emissionMode: {
|
|
632
|
+
readonly type: "integer";
|
|
633
|
+
readonly minimum: 0;
|
|
634
|
+
readonly maximum: 4294967295;
|
|
635
|
+
readonly default: number;
|
|
636
|
+
};
|
|
637
|
+
readonly baseColorUrl: {
|
|
638
|
+
readonly type: "string";
|
|
639
|
+
};
|
|
640
|
+
readonly metallicRoughnessUrl: {
|
|
641
|
+
readonly type: "string";
|
|
642
|
+
};
|
|
643
|
+
readonly normalUrl: {
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
};
|
|
646
|
+
readonly occlusionUrl: {
|
|
647
|
+
readonly type: "string";
|
|
648
|
+
};
|
|
649
|
+
readonly emissiveUrl: {
|
|
650
|
+
readonly type: "string";
|
|
651
|
+
};
|
|
652
|
+
}>, import("@adobe/data/schema").FromSchemas<{}>, {
|
|
653
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
654
|
+
}, {
|
|
655
|
+
readonly materialByName: {
|
|
656
|
+
readonly key: "name";
|
|
657
|
+
readonly unique: true;
|
|
658
|
+
readonly archetype: "Material";
|
|
659
|
+
};
|
|
660
|
+
}>, row: import("../../../material/public.js")) => number;
|
|
661
|
+
readonly insertMaterialDefinition: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
662
|
+
readonly material: {
|
|
663
|
+
readonly type: "integer";
|
|
664
|
+
readonly minimum: -2147483648;
|
|
665
|
+
readonly maximum: 2147483647;
|
|
666
|
+
readonly default: number;
|
|
667
|
+
};
|
|
668
|
+
readonly name: {
|
|
669
|
+
readonly type: "string";
|
|
670
|
+
};
|
|
671
|
+
readonly density: {
|
|
672
|
+
readonly type: "number";
|
|
673
|
+
readonly precision: 1;
|
|
674
|
+
readonly default: number;
|
|
675
|
+
};
|
|
676
|
+
readonly restitution: {
|
|
677
|
+
readonly type: "number";
|
|
678
|
+
readonly precision: 1;
|
|
679
|
+
readonly default: number;
|
|
680
|
+
};
|
|
681
|
+
readonly friction: {
|
|
682
|
+
readonly type: "number";
|
|
683
|
+
readonly precision: 1;
|
|
684
|
+
readonly default: number;
|
|
685
|
+
};
|
|
686
|
+
readonly compliance: {
|
|
687
|
+
readonly type: "number";
|
|
688
|
+
readonly precision: 1;
|
|
689
|
+
readonly default: number;
|
|
690
|
+
};
|
|
691
|
+
readonly heatCapacity: {
|
|
692
|
+
readonly type: "number";
|
|
693
|
+
readonly precision: 1;
|
|
694
|
+
readonly default: number;
|
|
695
|
+
};
|
|
696
|
+
readonly viscosity: {
|
|
697
|
+
readonly type: "number";
|
|
698
|
+
readonly precision: 1;
|
|
699
|
+
readonly default: number;
|
|
700
|
+
};
|
|
701
|
+
readonly thermalConductivity: {
|
|
702
|
+
readonly type: "number";
|
|
703
|
+
readonly precision: 1;
|
|
704
|
+
readonly default: number;
|
|
705
|
+
};
|
|
706
|
+
readonly stressStrainCurve: {
|
|
707
|
+
readonly type: "object";
|
|
708
|
+
readonly layout: "packed";
|
|
709
|
+
readonly properties: {
|
|
710
|
+
readonly tensileYieldStrainStress: {
|
|
711
|
+
readonly type: "array";
|
|
712
|
+
readonly items: {
|
|
713
|
+
readonly type: "number";
|
|
714
|
+
readonly precision: 1;
|
|
715
|
+
readonly default: number;
|
|
716
|
+
};
|
|
717
|
+
readonly minItems: 2;
|
|
718
|
+
readonly maxItems: 2;
|
|
719
|
+
readonly default: readonly [0, 0];
|
|
720
|
+
};
|
|
721
|
+
readonly tensileFractureStrainStress: {
|
|
722
|
+
readonly type: "array";
|
|
723
|
+
readonly items: {
|
|
724
|
+
readonly type: "number";
|
|
725
|
+
readonly precision: 1;
|
|
726
|
+
readonly default: number;
|
|
727
|
+
};
|
|
728
|
+
readonly minItems: 2;
|
|
729
|
+
readonly maxItems: 2;
|
|
730
|
+
readonly default: readonly [0, 0];
|
|
731
|
+
};
|
|
732
|
+
readonly compressiveYieldStrainStress: {
|
|
733
|
+
readonly type: "array";
|
|
734
|
+
readonly items: {
|
|
735
|
+
readonly type: "number";
|
|
736
|
+
readonly precision: 1;
|
|
737
|
+
readonly default: number;
|
|
738
|
+
};
|
|
739
|
+
readonly minItems: 2;
|
|
740
|
+
readonly maxItems: 2;
|
|
741
|
+
readonly default: readonly [0, 0];
|
|
742
|
+
};
|
|
743
|
+
readonly compressiveFractureStrainStress: {
|
|
744
|
+
readonly type: "array";
|
|
745
|
+
readonly items: {
|
|
746
|
+
readonly type: "number";
|
|
747
|
+
readonly precision: 1;
|
|
748
|
+
readonly default: number;
|
|
749
|
+
};
|
|
750
|
+
readonly minItems: 2;
|
|
751
|
+
readonly maxItems: 2;
|
|
752
|
+
readonly default: readonly [0, 0];
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
756
|
+
};
|
|
757
|
+
readonly baseColorFactor: {
|
|
758
|
+
readonly type: "array";
|
|
759
|
+
readonly items: {
|
|
760
|
+
readonly type: "number";
|
|
761
|
+
readonly precision: 1;
|
|
762
|
+
readonly default: number;
|
|
763
|
+
};
|
|
764
|
+
readonly minItems: 4;
|
|
765
|
+
readonly maxItems: 4;
|
|
766
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
767
|
+
};
|
|
768
|
+
readonly emissiveFactor: {
|
|
769
|
+
readonly type: "array";
|
|
770
|
+
readonly items: {
|
|
771
|
+
readonly type: "number";
|
|
772
|
+
readonly precision: 1;
|
|
773
|
+
readonly default: number;
|
|
774
|
+
};
|
|
775
|
+
readonly minItems: 3;
|
|
776
|
+
readonly maxItems: 3;
|
|
777
|
+
readonly default: readonly [0, 0, 0];
|
|
778
|
+
};
|
|
779
|
+
readonly metallicFactor: {
|
|
780
|
+
readonly type: "number";
|
|
781
|
+
readonly precision: 1;
|
|
782
|
+
readonly default: number;
|
|
783
|
+
};
|
|
784
|
+
readonly roughnessFactor: {
|
|
785
|
+
readonly type: "number";
|
|
786
|
+
readonly precision: 1;
|
|
787
|
+
readonly default: number;
|
|
788
|
+
};
|
|
789
|
+
readonly normalScale: {
|
|
790
|
+
readonly type: "number";
|
|
791
|
+
readonly precision: 1;
|
|
792
|
+
readonly default: number;
|
|
793
|
+
};
|
|
794
|
+
readonly occlusionStrength: {
|
|
795
|
+
readonly type: "number";
|
|
796
|
+
readonly precision: 1;
|
|
797
|
+
readonly default: number;
|
|
798
|
+
};
|
|
799
|
+
readonly irReflectance: {
|
|
800
|
+
readonly type: "number";
|
|
801
|
+
readonly precision: 1;
|
|
802
|
+
readonly default: number;
|
|
803
|
+
};
|
|
804
|
+
readonly irEmission: {
|
|
805
|
+
readonly type: "number";
|
|
806
|
+
readonly precision: 1;
|
|
807
|
+
readonly default: number;
|
|
808
|
+
};
|
|
809
|
+
readonly emissionMode: {
|
|
810
|
+
readonly type: "integer";
|
|
811
|
+
readonly minimum: 0;
|
|
812
|
+
readonly maximum: 4294967295;
|
|
813
|
+
readonly default: number;
|
|
814
|
+
};
|
|
815
|
+
readonly baseColorUrl: {
|
|
816
|
+
readonly type: "string";
|
|
817
|
+
};
|
|
818
|
+
readonly metallicRoughnessUrl: {
|
|
819
|
+
readonly type: "string";
|
|
820
|
+
};
|
|
821
|
+
readonly normalUrl: {
|
|
822
|
+
readonly type: "string";
|
|
823
|
+
};
|
|
824
|
+
readonly occlusionUrl: {
|
|
825
|
+
readonly type: "string";
|
|
826
|
+
};
|
|
827
|
+
readonly emissiveUrl: {
|
|
828
|
+
readonly type: "string";
|
|
829
|
+
};
|
|
830
|
+
}>, import("@adobe/data/schema").FromSchemas<{}>, {
|
|
831
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
832
|
+
}, {
|
|
833
|
+
readonly materialByName: {
|
|
834
|
+
readonly key: "name";
|
|
835
|
+
readonly unique: true;
|
|
836
|
+
readonly archetype: "Material";
|
|
837
|
+
};
|
|
838
|
+
}>, args: {
|
|
839
|
+
name: string;
|
|
840
|
+
definition: import("../../../material/material-definition.js").MaterialDefinition;
|
|
841
|
+
}) => number;
|
|
842
|
+
readonly insertMaterialDefinitions: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
843
|
+
readonly material: {
|
|
844
|
+
readonly type: "integer";
|
|
845
|
+
readonly minimum: -2147483648;
|
|
846
|
+
readonly maximum: 2147483647;
|
|
847
|
+
readonly default: number;
|
|
848
|
+
};
|
|
849
|
+
readonly name: {
|
|
850
|
+
readonly type: "string";
|
|
851
|
+
};
|
|
852
|
+
readonly density: {
|
|
853
|
+
readonly type: "number";
|
|
854
|
+
readonly precision: 1;
|
|
855
|
+
readonly default: number;
|
|
856
|
+
};
|
|
857
|
+
readonly restitution: {
|
|
858
|
+
readonly type: "number";
|
|
859
|
+
readonly precision: 1;
|
|
860
|
+
readonly default: number;
|
|
861
|
+
};
|
|
862
|
+
readonly friction: {
|
|
863
|
+
readonly type: "number";
|
|
864
|
+
readonly precision: 1;
|
|
865
|
+
readonly default: number;
|
|
866
|
+
};
|
|
867
|
+
readonly compliance: {
|
|
868
|
+
readonly type: "number";
|
|
869
|
+
readonly precision: 1;
|
|
870
|
+
readonly default: number;
|
|
871
|
+
};
|
|
872
|
+
readonly heatCapacity: {
|
|
873
|
+
readonly type: "number";
|
|
874
|
+
readonly precision: 1;
|
|
875
|
+
readonly default: number;
|
|
876
|
+
};
|
|
877
|
+
readonly viscosity: {
|
|
878
|
+
readonly type: "number";
|
|
879
|
+
readonly precision: 1;
|
|
880
|
+
readonly default: number;
|
|
881
|
+
};
|
|
882
|
+
readonly thermalConductivity: {
|
|
883
|
+
readonly type: "number";
|
|
884
|
+
readonly precision: 1;
|
|
885
|
+
readonly default: number;
|
|
886
|
+
};
|
|
887
|
+
readonly stressStrainCurve: {
|
|
888
|
+
readonly type: "object";
|
|
889
|
+
readonly layout: "packed";
|
|
890
|
+
readonly properties: {
|
|
891
|
+
readonly tensileYieldStrainStress: {
|
|
892
|
+
readonly type: "array";
|
|
893
|
+
readonly items: {
|
|
894
|
+
readonly type: "number";
|
|
895
|
+
readonly precision: 1;
|
|
896
|
+
readonly default: number;
|
|
897
|
+
};
|
|
898
|
+
readonly minItems: 2;
|
|
899
|
+
readonly maxItems: 2;
|
|
900
|
+
readonly default: readonly [0, 0];
|
|
901
|
+
};
|
|
902
|
+
readonly tensileFractureStrainStress: {
|
|
903
|
+
readonly type: "array";
|
|
904
|
+
readonly items: {
|
|
905
|
+
readonly type: "number";
|
|
906
|
+
readonly precision: 1;
|
|
907
|
+
readonly default: number;
|
|
908
|
+
};
|
|
909
|
+
readonly minItems: 2;
|
|
910
|
+
readonly maxItems: 2;
|
|
911
|
+
readonly default: readonly [0, 0];
|
|
912
|
+
};
|
|
913
|
+
readonly compressiveYieldStrainStress: {
|
|
914
|
+
readonly type: "array";
|
|
915
|
+
readonly items: {
|
|
916
|
+
readonly type: "number";
|
|
917
|
+
readonly precision: 1;
|
|
918
|
+
readonly default: number;
|
|
919
|
+
};
|
|
920
|
+
readonly minItems: 2;
|
|
921
|
+
readonly maxItems: 2;
|
|
922
|
+
readonly default: readonly [0, 0];
|
|
923
|
+
};
|
|
924
|
+
readonly compressiveFractureStrainStress: {
|
|
925
|
+
readonly type: "array";
|
|
926
|
+
readonly items: {
|
|
927
|
+
readonly type: "number";
|
|
928
|
+
readonly precision: 1;
|
|
929
|
+
readonly default: number;
|
|
930
|
+
};
|
|
931
|
+
readonly minItems: 2;
|
|
932
|
+
readonly maxItems: 2;
|
|
933
|
+
readonly default: readonly [0, 0];
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
937
|
+
};
|
|
938
|
+
readonly baseColorFactor: {
|
|
939
|
+
readonly type: "array";
|
|
940
|
+
readonly items: {
|
|
941
|
+
readonly type: "number";
|
|
942
|
+
readonly precision: 1;
|
|
943
|
+
readonly default: number;
|
|
944
|
+
};
|
|
945
|
+
readonly minItems: 4;
|
|
946
|
+
readonly maxItems: 4;
|
|
947
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
948
|
+
};
|
|
949
|
+
readonly emissiveFactor: {
|
|
950
|
+
readonly type: "array";
|
|
951
|
+
readonly items: {
|
|
952
|
+
readonly type: "number";
|
|
953
|
+
readonly precision: 1;
|
|
954
|
+
readonly default: number;
|
|
955
|
+
};
|
|
956
|
+
readonly minItems: 3;
|
|
957
|
+
readonly maxItems: 3;
|
|
958
|
+
readonly default: readonly [0, 0, 0];
|
|
959
|
+
};
|
|
960
|
+
readonly metallicFactor: {
|
|
961
|
+
readonly type: "number";
|
|
962
|
+
readonly precision: 1;
|
|
963
|
+
readonly default: number;
|
|
964
|
+
};
|
|
965
|
+
readonly roughnessFactor: {
|
|
966
|
+
readonly type: "number";
|
|
967
|
+
readonly precision: 1;
|
|
968
|
+
readonly default: number;
|
|
969
|
+
};
|
|
970
|
+
readonly normalScale: {
|
|
971
|
+
readonly type: "number";
|
|
972
|
+
readonly precision: 1;
|
|
973
|
+
readonly default: number;
|
|
974
|
+
};
|
|
975
|
+
readonly occlusionStrength: {
|
|
976
|
+
readonly type: "number";
|
|
977
|
+
readonly precision: 1;
|
|
978
|
+
readonly default: number;
|
|
979
|
+
};
|
|
980
|
+
readonly irReflectance: {
|
|
981
|
+
readonly type: "number";
|
|
982
|
+
readonly precision: 1;
|
|
983
|
+
readonly default: number;
|
|
984
|
+
};
|
|
985
|
+
readonly irEmission: {
|
|
986
|
+
readonly type: "number";
|
|
987
|
+
readonly precision: 1;
|
|
988
|
+
readonly default: number;
|
|
989
|
+
};
|
|
990
|
+
readonly emissionMode: {
|
|
991
|
+
readonly type: "integer";
|
|
992
|
+
readonly minimum: 0;
|
|
993
|
+
readonly maximum: 4294967295;
|
|
994
|
+
readonly default: number;
|
|
995
|
+
};
|
|
996
|
+
readonly baseColorUrl: {
|
|
997
|
+
readonly type: "string";
|
|
998
|
+
};
|
|
999
|
+
readonly metallicRoughnessUrl: {
|
|
1000
|
+
readonly type: "string";
|
|
1001
|
+
};
|
|
1002
|
+
readonly normalUrl: {
|
|
1003
|
+
readonly type: "string";
|
|
1004
|
+
};
|
|
1005
|
+
readonly occlusionUrl: {
|
|
1006
|
+
readonly type: "string";
|
|
1007
|
+
};
|
|
1008
|
+
readonly emissiveUrl: {
|
|
1009
|
+
readonly type: "string";
|
|
1010
|
+
};
|
|
1011
|
+
}>, import("@adobe/data/schema").FromSchemas<{}>, {
|
|
1012
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly materialByName: {
|
|
1015
|
+
readonly key: "name";
|
|
1016
|
+
readonly unique: true;
|
|
1017
|
+
readonly archetype: "Material";
|
|
1018
|
+
};
|
|
1019
|
+
}>, defs: Readonly<Record<string, import("../../../material/material-definition.js").MaterialDefinition>>) => void;
|
|
1020
|
+
readonly seedStandardMaterials: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
1021
|
+
readonly material: {
|
|
1022
|
+
readonly type: "integer";
|
|
1023
|
+
readonly minimum: -2147483648;
|
|
1024
|
+
readonly maximum: 2147483647;
|
|
1025
|
+
readonly default: number;
|
|
1026
|
+
};
|
|
1027
|
+
readonly name: {
|
|
1028
|
+
readonly type: "string";
|
|
1029
|
+
};
|
|
1030
|
+
readonly density: {
|
|
1031
|
+
readonly type: "number";
|
|
1032
|
+
readonly precision: 1;
|
|
1033
|
+
readonly default: number;
|
|
1034
|
+
};
|
|
1035
|
+
readonly restitution: {
|
|
1036
|
+
readonly type: "number";
|
|
1037
|
+
readonly precision: 1;
|
|
1038
|
+
readonly default: number;
|
|
1039
|
+
};
|
|
1040
|
+
readonly friction: {
|
|
1041
|
+
readonly type: "number";
|
|
1042
|
+
readonly precision: 1;
|
|
1043
|
+
readonly default: number;
|
|
1044
|
+
};
|
|
1045
|
+
readonly compliance: {
|
|
1046
|
+
readonly type: "number";
|
|
1047
|
+
readonly precision: 1;
|
|
1048
|
+
readonly default: number;
|
|
1049
|
+
};
|
|
1050
|
+
readonly heatCapacity: {
|
|
1051
|
+
readonly type: "number";
|
|
1052
|
+
readonly precision: 1;
|
|
1053
|
+
readonly default: number;
|
|
1054
|
+
};
|
|
1055
|
+
readonly viscosity: {
|
|
1056
|
+
readonly type: "number";
|
|
1057
|
+
readonly precision: 1;
|
|
1058
|
+
readonly default: number;
|
|
1059
|
+
};
|
|
1060
|
+
readonly thermalConductivity: {
|
|
1061
|
+
readonly type: "number";
|
|
1062
|
+
readonly precision: 1;
|
|
1063
|
+
readonly default: number;
|
|
1064
|
+
};
|
|
1065
|
+
readonly stressStrainCurve: {
|
|
1066
|
+
readonly type: "object";
|
|
1067
|
+
readonly layout: "packed";
|
|
1068
|
+
readonly properties: {
|
|
1069
|
+
readonly tensileYieldStrainStress: {
|
|
1070
|
+
readonly type: "array";
|
|
1071
|
+
readonly items: {
|
|
1072
|
+
readonly type: "number";
|
|
1073
|
+
readonly precision: 1;
|
|
1074
|
+
readonly default: number;
|
|
1075
|
+
};
|
|
1076
|
+
readonly minItems: 2;
|
|
1077
|
+
readonly maxItems: 2;
|
|
1078
|
+
readonly default: readonly [0, 0];
|
|
1079
|
+
};
|
|
1080
|
+
readonly tensileFractureStrainStress: {
|
|
1081
|
+
readonly type: "array";
|
|
1082
|
+
readonly items: {
|
|
1083
|
+
readonly type: "number";
|
|
1084
|
+
readonly precision: 1;
|
|
1085
|
+
readonly default: number;
|
|
1086
|
+
};
|
|
1087
|
+
readonly minItems: 2;
|
|
1088
|
+
readonly maxItems: 2;
|
|
1089
|
+
readonly default: readonly [0, 0];
|
|
1090
|
+
};
|
|
1091
|
+
readonly compressiveYieldStrainStress: {
|
|
1092
|
+
readonly type: "array";
|
|
1093
|
+
readonly items: {
|
|
1094
|
+
readonly type: "number";
|
|
1095
|
+
readonly precision: 1;
|
|
1096
|
+
readonly default: number;
|
|
1097
|
+
};
|
|
1098
|
+
readonly minItems: 2;
|
|
1099
|
+
readonly maxItems: 2;
|
|
1100
|
+
readonly default: readonly [0, 0];
|
|
1101
|
+
};
|
|
1102
|
+
readonly compressiveFractureStrainStress: {
|
|
1103
|
+
readonly type: "array";
|
|
1104
|
+
readonly items: {
|
|
1105
|
+
readonly type: "number";
|
|
1106
|
+
readonly precision: 1;
|
|
1107
|
+
readonly default: number;
|
|
1108
|
+
};
|
|
1109
|
+
readonly minItems: 2;
|
|
1110
|
+
readonly maxItems: 2;
|
|
1111
|
+
readonly default: readonly [0, 0];
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
1115
|
+
};
|
|
1116
|
+
readonly baseColorFactor: {
|
|
1117
|
+
readonly type: "array";
|
|
1118
|
+
readonly items: {
|
|
1119
|
+
readonly type: "number";
|
|
1120
|
+
readonly precision: 1;
|
|
1121
|
+
readonly default: number;
|
|
1122
|
+
};
|
|
1123
|
+
readonly minItems: 4;
|
|
1124
|
+
readonly maxItems: 4;
|
|
1125
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
1126
|
+
};
|
|
1127
|
+
readonly emissiveFactor: {
|
|
1128
|
+
readonly type: "array";
|
|
1129
|
+
readonly items: {
|
|
1130
|
+
readonly type: "number";
|
|
1131
|
+
readonly precision: 1;
|
|
1132
|
+
readonly default: number;
|
|
1133
|
+
};
|
|
1134
|
+
readonly minItems: 3;
|
|
1135
|
+
readonly maxItems: 3;
|
|
1136
|
+
readonly default: readonly [0, 0, 0];
|
|
1137
|
+
};
|
|
1138
|
+
readonly metallicFactor: {
|
|
1139
|
+
readonly type: "number";
|
|
1140
|
+
readonly precision: 1;
|
|
1141
|
+
readonly default: number;
|
|
1142
|
+
};
|
|
1143
|
+
readonly roughnessFactor: {
|
|
1144
|
+
readonly type: "number";
|
|
1145
|
+
readonly precision: 1;
|
|
1146
|
+
readonly default: number;
|
|
1147
|
+
};
|
|
1148
|
+
readonly normalScale: {
|
|
1149
|
+
readonly type: "number";
|
|
1150
|
+
readonly precision: 1;
|
|
1151
|
+
readonly default: number;
|
|
1152
|
+
};
|
|
1153
|
+
readonly occlusionStrength: {
|
|
1154
|
+
readonly type: "number";
|
|
1155
|
+
readonly precision: 1;
|
|
1156
|
+
readonly default: number;
|
|
1157
|
+
};
|
|
1158
|
+
readonly irReflectance: {
|
|
1159
|
+
readonly type: "number";
|
|
1160
|
+
readonly precision: 1;
|
|
1161
|
+
readonly default: number;
|
|
1162
|
+
};
|
|
1163
|
+
readonly irEmission: {
|
|
1164
|
+
readonly type: "number";
|
|
1165
|
+
readonly precision: 1;
|
|
1166
|
+
readonly default: number;
|
|
1167
|
+
};
|
|
1168
|
+
readonly emissionMode: {
|
|
1169
|
+
readonly type: "integer";
|
|
1170
|
+
readonly minimum: 0;
|
|
1171
|
+
readonly maximum: 4294967295;
|
|
1172
|
+
readonly default: number;
|
|
1173
|
+
};
|
|
1174
|
+
readonly baseColorUrl: {
|
|
1175
|
+
readonly type: "string";
|
|
1176
|
+
};
|
|
1177
|
+
readonly metallicRoughnessUrl: {
|
|
1178
|
+
readonly type: "string";
|
|
1179
|
+
};
|
|
1180
|
+
readonly normalUrl: {
|
|
1181
|
+
readonly type: "string";
|
|
1182
|
+
};
|
|
1183
|
+
readonly occlusionUrl: {
|
|
1184
|
+
readonly type: "string";
|
|
1185
|
+
};
|
|
1186
|
+
readonly emissiveUrl: {
|
|
1187
|
+
readonly type: "string";
|
|
1188
|
+
};
|
|
1189
|
+
}>, import("@adobe/data/schema").FromSchemas<{}>, {
|
|
1190
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
1191
|
+
}, {
|
|
1192
|
+
readonly materialByName: {
|
|
1193
|
+
readonly key: "name";
|
|
1194
|
+
readonly unique: true;
|
|
1195
|
+
readonly archetype: "Material";
|
|
1196
|
+
};
|
|
1197
|
+
}>) => void;
|
|
1198
|
+
readonly seedDefinitionMaterials: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
1199
|
+
readonly material: {
|
|
1200
|
+
readonly type: "integer";
|
|
1201
|
+
readonly minimum: -2147483648;
|
|
1202
|
+
readonly maximum: 2147483647;
|
|
1203
|
+
readonly default: number;
|
|
1204
|
+
};
|
|
1205
|
+
readonly name: {
|
|
1206
|
+
readonly type: "string";
|
|
1207
|
+
};
|
|
1208
|
+
readonly density: {
|
|
1209
|
+
readonly type: "number";
|
|
1210
|
+
readonly precision: 1;
|
|
1211
|
+
readonly default: number;
|
|
1212
|
+
};
|
|
1213
|
+
readonly restitution: {
|
|
1214
|
+
readonly type: "number";
|
|
1215
|
+
readonly precision: 1;
|
|
1216
|
+
readonly default: number;
|
|
1217
|
+
};
|
|
1218
|
+
readonly friction: {
|
|
1219
|
+
readonly type: "number";
|
|
1220
|
+
readonly precision: 1;
|
|
1221
|
+
readonly default: number;
|
|
1222
|
+
};
|
|
1223
|
+
readonly compliance: {
|
|
1224
|
+
readonly type: "number";
|
|
1225
|
+
readonly precision: 1;
|
|
1226
|
+
readonly default: number;
|
|
1227
|
+
};
|
|
1228
|
+
readonly heatCapacity: {
|
|
1229
|
+
readonly type: "number";
|
|
1230
|
+
readonly precision: 1;
|
|
1231
|
+
readonly default: number;
|
|
1232
|
+
};
|
|
1233
|
+
readonly viscosity: {
|
|
1234
|
+
readonly type: "number";
|
|
1235
|
+
readonly precision: 1;
|
|
1236
|
+
readonly default: number;
|
|
1237
|
+
};
|
|
1238
|
+
readonly thermalConductivity: {
|
|
1239
|
+
readonly type: "number";
|
|
1240
|
+
readonly precision: 1;
|
|
1241
|
+
readonly default: number;
|
|
1242
|
+
};
|
|
1243
|
+
readonly stressStrainCurve: {
|
|
1244
|
+
readonly type: "object";
|
|
1245
|
+
readonly layout: "packed";
|
|
1246
|
+
readonly properties: {
|
|
1247
|
+
readonly tensileYieldStrainStress: {
|
|
1248
|
+
readonly type: "array";
|
|
1249
|
+
readonly items: {
|
|
1250
|
+
readonly type: "number";
|
|
1251
|
+
readonly precision: 1;
|
|
1252
|
+
readonly default: number;
|
|
1253
|
+
};
|
|
1254
|
+
readonly minItems: 2;
|
|
1255
|
+
readonly maxItems: 2;
|
|
1256
|
+
readonly default: readonly [0, 0];
|
|
1257
|
+
};
|
|
1258
|
+
readonly tensileFractureStrainStress: {
|
|
1259
|
+
readonly type: "array";
|
|
1260
|
+
readonly items: {
|
|
1261
|
+
readonly type: "number";
|
|
1262
|
+
readonly precision: 1;
|
|
1263
|
+
readonly default: number;
|
|
1264
|
+
};
|
|
1265
|
+
readonly minItems: 2;
|
|
1266
|
+
readonly maxItems: 2;
|
|
1267
|
+
readonly default: readonly [0, 0];
|
|
1268
|
+
};
|
|
1269
|
+
readonly compressiveYieldStrainStress: {
|
|
1270
|
+
readonly type: "array";
|
|
1271
|
+
readonly items: {
|
|
1272
|
+
readonly type: "number";
|
|
1273
|
+
readonly precision: 1;
|
|
1274
|
+
readonly default: number;
|
|
1275
|
+
};
|
|
1276
|
+
readonly minItems: 2;
|
|
1277
|
+
readonly maxItems: 2;
|
|
1278
|
+
readonly default: readonly [0, 0];
|
|
1279
|
+
};
|
|
1280
|
+
readonly compressiveFractureStrainStress: {
|
|
1281
|
+
readonly type: "array";
|
|
1282
|
+
readonly items: {
|
|
1283
|
+
readonly type: "number";
|
|
1284
|
+
readonly precision: 1;
|
|
1285
|
+
readonly default: number;
|
|
1286
|
+
};
|
|
1287
|
+
readonly minItems: 2;
|
|
1288
|
+
readonly maxItems: 2;
|
|
1289
|
+
readonly default: readonly [0, 0];
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
1293
|
+
};
|
|
1294
|
+
readonly baseColorFactor: {
|
|
1295
|
+
readonly type: "array";
|
|
1296
|
+
readonly items: {
|
|
1297
|
+
readonly type: "number";
|
|
1298
|
+
readonly precision: 1;
|
|
1299
|
+
readonly default: number;
|
|
1300
|
+
};
|
|
1301
|
+
readonly minItems: 4;
|
|
1302
|
+
readonly maxItems: 4;
|
|
1303
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
1304
|
+
};
|
|
1305
|
+
readonly emissiveFactor: {
|
|
1306
|
+
readonly type: "array";
|
|
1307
|
+
readonly items: {
|
|
1308
|
+
readonly type: "number";
|
|
1309
|
+
readonly precision: 1;
|
|
1310
|
+
readonly default: number;
|
|
1311
|
+
};
|
|
1312
|
+
readonly minItems: 3;
|
|
1313
|
+
readonly maxItems: 3;
|
|
1314
|
+
readonly default: readonly [0, 0, 0];
|
|
1315
|
+
};
|
|
1316
|
+
readonly metallicFactor: {
|
|
1317
|
+
readonly type: "number";
|
|
1318
|
+
readonly precision: 1;
|
|
1319
|
+
readonly default: number;
|
|
1320
|
+
};
|
|
1321
|
+
readonly roughnessFactor: {
|
|
1322
|
+
readonly type: "number";
|
|
1323
|
+
readonly precision: 1;
|
|
1324
|
+
readonly default: number;
|
|
1325
|
+
};
|
|
1326
|
+
readonly normalScale: {
|
|
1327
|
+
readonly type: "number";
|
|
1328
|
+
readonly precision: 1;
|
|
1329
|
+
readonly default: number;
|
|
1330
|
+
};
|
|
1331
|
+
readonly occlusionStrength: {
|
|
1332
|
+
readonly type: "number";
|
|
1333
|
+
readonly precision: 1;
|
|
1334
|
+
readonly default: number;
|
|
1335
|
+
};
|
|
1336
|
+
readonly irReflectance: {
|
|
1337
|
+
readonly type: "number";
|
|
1338
|
+
readonly precision: 1;
|
|
1339
|
+
readonly default: number;
|
|
1340
|
+
};
|
|
1341
|
+
readonly irEmission: {
|
|
1342
|
+
readonly type: "number";
|
|
1343
|
+
readonly precision: 1;
|
|
1344
|
+
readonly default: number;
|
|
1345
|
+
};
|
|
1346
|
+
readonly emissionMode: {
|
|
1347
|
+
readonly type: "integer";
|
|
1348
|
+
readonly minimum: 0;
|
|
1349
|
+
readonly maximum: 4294967295;
|
|
1350
|
+
readonly default: number;
|
|
1351
|
+
};
|
|
1352
|
+
readonly baseColorUrl: {
|
|
1353
|
+
readonly type: "string";
|
|
1354
|
+
};
|
|
1355
|
+
readonly metallicRoughnessUrl: {
|
|
1356
|
+
readonly type: "string";
|
|
1357
|
+
};
|
|
1358
|
+
readonly normalUrl: {
|
|
1359
|
+
readonly type: "string";
|
|
1360
|
+
};
|
|
1361
|
+
readonly occlusionUrl: {
|
|
1362
|
+
readonly type: "string";
|
|
1363
|
+
};
|
|
1364
|
+
readonly emissiveUrl: {
|
|
1365
|
+
readonly type: "string";
|
|
1366
|
+
};
|
|
1367
|
+
}>, import("@adobe/data/schema").FromSchemas<{}>, {
|
|
1368
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly materialByName: {
|
|
1371
|
+
readonly key: "name";
|
|
1372
|
+
readonly unique: true;
|
|
1373
|
+
readonly archetype: "Material";
|
|
1374
|
+
};
|
|
1375
|
+
}>) => void;
|
|
1376
|
+
} & {
|
|
1377
|
+
readonly insertGltfMesh: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
1378
|
+
readonly mesh: {
|
|
1379
|
+
readonly type: "integer";
|
|
1380
|
+
readonly minimum: -2147483648;
|
|
1381
|
+
readonly maximum: 2147483647;
|
|
1382
|
+
readonly default: number;
|
|
1383
|
+
};
|
|
1384
|
+
readonly gltfUrl: {
|
|
1385
|
+
readonly type: "string";
|
|
1386
|
+
};
|
|
1387
|
+
readonly shapeSpec: {
|
|
1388
|
+
readonly default: import("./shape/shape-spec.js").ShapeSpec | null;
|
|
1389
|
+
};
|
|
1390
|
+
readonly voxelVolumeSize: {
|
|
1391
|
+
readonly default: import("@adobe/data/math").Vec3 | null;
|
|
1392
|
+
};
|
|
1393
|
+
readonly localBounds: {
|
|
1394
|
+
readonly default: Aabb | null;
|
|
1395
|
+
};
|
|
1396
|
+
readonly skinJointTemplate: {
|
|
1397
|
+
readonly default: JointTemplate[];
|
|
1398
|
+
};
|
|
1399
|
+
readonly skinInverseBindMatrices: {
|
|
1400
|
+
readonly default: Float32Array | null;
|
|
1401
|
+
};
|
|
1402
|
+
readonly animationClipRefs: {
|
|
1403
|
+
readonly default: number[];
|
|
1404
|
+
};
|
|
1405
|
+
readonly cpuCollisionPositions: {
|
|
1406
|
+
readonly default: Float32Array | null;
|
|
1407
|
+
};
|
|
1408
|
+
readonly cpuCollisionIndices: {
|
|
1409
|
+
readonly default: Uint32Array | null;
|
|
1410
|
+
};
|
|
1411
|
+
readonly cpuSkin: {
|
|
1412
|
+
readonly default: {
|
|
1413
|
+
positions: Float32Array;
|
|
1414
|
+
joints: Uint32Array;
|
|
1415
|
+
weights: Float32Array;
|
|
1416
|
+
} | null;
|
|
1417
|
+
};
|
|
1418
|
+
} & {
|
|
1419
|
+
readonly visible: {
|
|
1420
|
+
readonly type: "boolean";
|
|
1421
|
+
readonly const: true;
|
|
1422
|
+
readonly default: true;
|
|
1423
|
+
};
|
|
1424
|
+
readonly position: {
|
|
1425
|
+
readonly type: "array";
|
|
1426
|
+
readonly items: {
|
|
1427
|
+
readonly type: "number";
|
|
1428
|
+
readonly precision: 1;
|
|
1429
|
+
readonly default: number;
|
|
1430
|
+
};
|
|
1431
|
+
readonly minItems: 3;
|
|
1432
|
+
readonly maxItems: 3;
|
|
1433
|
+
readonly default: readonly [0, 0, 0];
|
|
1434
|
+
};
|
|
1435
|
+
readonly rotation: {
|
|
1436
|
+
readonly type: "array";
|
|
1437
|
+
readonly items: {
|
|
1438
|
+
readonly type: "number";
|
|
1439
|
+
readonly precision: 1;
|
|
1440
|
+
readonly default: number;
|
|
1441
|
+
};
|
|
1442
|
+
readonly minItems: 4;
|
|
1443
|
+
readonly maxItems: 4;
|
|
1444
|
+
readonly default: readonly [0, 0, 0, 1];
|
|
1445
|
+
readonly interpolators: {
|
|
1446
|
+
readonly linear: (q1: any, q2: any, t: number) => any;
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
readonly scale: {
|
|
1450
|
+
readonly type: "array";
|
|
1451
|
+
readonly items: {
|
|
1452
|
+
readonly type: "number";
|
|
1453
|
+
readonly precision: 1;
|
|
1454
|
+
readonly default: number;
|
|
1455
|
+
};
|
|
1456
|
+
readonly minItems: 3;
|
|
1457
|
+
readonly maxItems: 3;
|
|
1458
|
+
readonly default: readonly [0, 0, 0];
|
|
1459
|
+
};
|
|
1460
|
+
readonly parent: {
|
|
1461
|
+
readonly type: "integer";
|
|
1462
|
+
readonly minimum: -2147483648;
|
|
1463
|
+
readonly maximum: 2147483647;
|
|
1464
|
+
readonly default: number;
|
|
1465
|
+
};
|
|
1466
|
+
readonly _worldMatrix: {
|
|
1467
|
+
readonly nonPersistent: true;
|
|
1468
|
+
readonly type: "array";
|
|
1469
|
+
readonly items: {
|
|
1470
|
+
readonly type: "number";
|
|
1471
|
+
readonly precision: 1;
|
|
1472
|
+
readonly default: number;
|
|
1473
|
+
};
|
|
1474
|
+
readonly minItems: 16;
|
|
1475
|
+
readonly maxItems: 16;
|
|
1476
|
+
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
1477
|
+
};
|
|
1478
|
+
readonly _worldBounds: {
|
|
1479
|
+
readonly nonPersistent: true;
|
|
1480
|
+
readonly type: "object";
|
|
1481
|
+
readonly properties: {
|
|
1482
|
+
readonly min: {
|
|
1483
|
+
readonly type: "array";
|
|
1484
|
+
readonly items: {
|
|
1485
|
+
readonly type: "number";
|
|
1486
|
+
readonly precision: 1;
|
|
1487
|
+
readonly default: number;
|
|
1488
|
+
};
|
|
1489
|
+
readonly minItems: 3;
|
|
1490
|
+
readonly maxItems: 3;
|
|
1491
|
+
readonly default: readonly [0, 0, 0];
|
|
1492
|
+
};
|
|
1493
|
+
readonly max: {
|
|
1494
|
+
readonly type: "array";
|
|
1495
|
+
readonly items: {
|
|
1496
|
+
readonly type: "number";
|
|
1497
|
+
readonly precision: 1;
|
|
1498
|
+
readonly default: number;
|
|
1499
|
+
};
|
|
1500
|
+
readonly minItems: 3;
|
|
1501
|
+
readonly maxItems: 3;
|
|
1502
|
+
readonly default: readonly [0, 0, 0];
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
readonly required: readonly ["min", "max"];
|
|
1506
|
+
readonly additionalProperties: false;
|
|
1507
|
+
readonly default: {
|
|
1508
|
+
readonly min: readonly [0, 0, 0];
|
|
1509
|
+
readonly max: readonly [0, 0, 0];
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
} & {} & {
|
|
1513
|
+
readonly material: {
|
|
1514
|
+
readonly type: "integer";
|
|
1515
|
+
readonly minimum: -2147483648;
|
|
1516
|
+
readonly maximum: 2147483647;
|
|
1517
|
+
readonly default: number;
|
|
1518
|
+
};
|
|
1519
|
+
readonly name: {
|
|
1520
|
+
readonly type: "string";
|
|
1521
|
+
};
|
|
1522
|
+
readonly density: {
|
|
1523
|
+
readonly type: "number";
|
|
1524
|
+
readonly precision: 1;
|
|
1525
|
+
readonly default: number;
|
|
1526
|
+
};
|
|
1527
|
+
readonly restitution: {
|
|
1528
|
+
readonly type: "number";
|
|
1529
|
+
readonly precision: 1;
|
|
1530
|
+
readonly default: number;
|
|
1531
|
+
};
|
|
1532
|
+
readonly friction: {
|
|
1533
|
+
readonly type: "number";
|
|
1534
|
+
readonly precision: 1;
|
|
1535
|
+
readonly default: number;
|
|
1536
|
+
};
|
|
1537
|
+
readonly compliance: {
|
|
1538
|
+
readonly type: "number";
|
|
1539
|
+
readonly precision: 1;
|
|
1540
|
+
readonly default: number;
|
|
1541
|
+
};
|
|
1542
|
+
readonly heatCapacity: {
|
|
1543
|
+
readonly type: "number";
|
|
1544
|
+
readonly precision: 1;
|
|
1545
|
+
readonly default: number;
|
|
1546
|
+
};
|
|
1547
|
+
readonly viscosity: {
|
|
1548
|
+
readonly type: "number";
|
|
1549
|
+
readonly precision: 1;
|
|
1550
|
+
readonly default: number;
|
|
1551
|
+
};
|
|
1552
|
+
readonly thermalConductivity: {
|
|
1553
|
+
readonly type: "number";
|
|
1554
|
+
readonly precision: 1;
|
|
1555
|
+
readonly default: number;
|
|
1556
|
+
};
|
|
1557
|
+
readonly stressStrainCurve: {
|
|
1558
|
+
readonly type: "object";
|
|
1559
|
+
readonly layout: "packed";
|
|
1560
|
+
readonly properties: {
|
|
1561
|
+
readonly tensileYieldStrainStress: {
|
|
1562
|
+
readonly type: "array";
|
|
1563
|
+
readonly items: {
|
|
1564
|
+
readonly type: "number";
|
|
1565
|
+
readonly precision: 1;
|
|
1566
|
+
readonly default: number;
|
|
1567
|
+
};
|
|
1568
|
+
readonly minItems: 2;
|
|
1569
|
+
readonly maxItems: 2;
|
|
1570
|
+
readonly default: readonly [0, 0];
|
|
1571
|
+
};
|
|
1572
|
+
readonly tensileFractureStrainStress: {
|
|
1573
|
+
readonly type: "array";
|
|
1574
|
+
readonly items: {
|
|
1575
|
+
readonly type: "number";
|
|
1576
|
+
readonly precision: 1;
|
|
1577
|
+
readonly default: number;
|
|
1578
|
+
};
|
|
1579
|
+
readonly minItems: 2;
|
|
1580
|
+
readonly maxItems: 2;
|
|
1581
|
+
readonly default: readonly [0, 0];
|
|
1582
|
+
};
|
|
1583
|
+
readonly compressiveYieldStrainStress: {
|
|
1584
|
+
readonly type: "array";
|
|
1585
|
+
readonly items: {
|
|
1586
|
+
readonly type: "number";
|
|
1587
|
+
readonly precision: 1;
|
|
1588
|
+
readonly default: number;
|
|
1589
|
+
};
|
|
1590
|
+
readonly minItems: 2;
|
|
1591
|
+
readonly maxItems: 2;
|
|
1592
|
+
readonly default: readonly [0, 0];
|
|
1593
|
+
};
|
|
1594
|
+
readonly compressiveFractureStrainStress: {
|
|
1595
|
+
readonly type: "array";
|
|
1596
|
+
readonly items: {
|
|
1597
|
+
readonly type: "number";
|
|
1598
|
+
readonly precision: 1;
|
|
1599
|
+
readonly default: number;
|
|
1600
|
+
};
|
|
1601
|
+
readonly minItems: 2;
|
|
1602
|
+
readonly maxItems: 2;
|
|
1603
|
+
readonly default: readonly [0, 0];
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
1607
|
+
};
|
|
1608
|
+
readonly baseColorFactor: {
|
|
1609
|
+
readonly type: "array";
|
|
1610
|
+
readonly items: {
|
|
1611
|
+
readonly type: "number";
|
|
1612
|
+
readonly precision: 1;
|
|
1613
|
+
readonly default: number;
|
|
1614
|
+
};
|
|
1615
|
+
readonly minItems: 4;
|
|
1616
|
+
readonly maxItems: 4;
|
|
1617
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
1618
|
+
};
|
|
1619
|
+
readonly emissiveFactor: {
|
|
1620
|
+
readonly type: "array";
|
|
1621
|
+
readonly items: {
|
|
1622
|
+
readonly type: "number";
|
|
1623
|
+
readonly precision: 1;
|
|
1624
|
+
readonly default: number;
|
|
1625
|
+
};
|
|
1626
|
+
readonly minItems: 3;
|
|
1627
|
+
readonly maxItems: 3;
|
|
1628
|
+
readonly default: readonly [0, 0, 0];
|
|
1629
|
+
};
|
|
1630
|
+
readonly metallicFactor: {
|
|
1631
|
+
readonly type: "number";
|
|
1632
|
+
readonly precision: 1;
|
|
1633
|
+
readonly default: number;
|
|
1634
|
+
};
|
|
1635
|
+
readonly roughnessFactor: {
|
|
1636
|
+
readonly type: "number";
|
|
1637
|
+
readonly precision: 1;
|
|
1638
|
+
readonly default: number;
|
|
1639
|
+
};
|
|
1640
|
+
readonly normalScale: {
|
|
1641
|
+
readonly type: "number";
|
|
1642
|
+
readonly precision: 1;
|
|
1643
|
+
readonly default: number;
|
|
1644
|
+
};
|
|
1645
|
+
readonly occlusionStrength: {
|
|
1646
|
+
readonly type: "number";
|
|
1647
|
+
readonly precision: 1;
|
|
1648
|
+
readonly default: number;
|
|
1649
|
+
};
|
|
1650
|
+
readonly irReflectance: {
|
|
1651
|
+
readonly type: "number";
|
|
1652
|
+
readonly precision: 1;
|
|
1653
|
+
readonly default: number;
|
|
1654
|
+
};
|
|
1655
|
+
readonly irEmission: {
|
|
1656
|
+
readonly type: "number";
|
|
1657
|
+
readonly precision: 1;
|
|
1658
|
+
readonly default: number;
|
|
1659
|
+
};
|
|
1660
|
+
readonly emissionMode: {
|
|
1661
|
+
readonly type: "integer";
|
|
1662
|
+
readonly minimum: 0;
|
|
1663
|
+
readonly maximum: 4294967295;
|
|
1664
|
+
readonly default: number;
|
|
1665
|
+
};
|
|
1666
|
+
readonly baseColorUrl: {
|
|
1667
|
+
readonly type: "string";
|
|
1668
|
+
};
|
|
1669
|
+
readonly metallicRoughnessUrl: {
|
|
1670
|
+
readonly type: "string";
|
|
1671
|
+
};
|
|
1672
|
+
readonly normalUrl: {
|
|
1673
|
+
readonly type: "string";
|
|
1674
|
+
};
|
|
1675
|
+
readonly occlusionUrl: {
|
|
1676
|
+
readonly type: "string";
|
|
1677
|
+
};
|
|
1678
|
+
readonly emissiveUrl: {
|
|
1679
|
+
readonly type: "string";
|
|
1680
|
+
};
|
|
1681
|
+
}>, import("@adobe/data/schema").FromSchemas<{
|
|
1682
|
+
readonly _gltfMeshByUrl: {
|
|
1683
|
+
readonly default: Map<string, number> | null;
|
|
1684
|
+
readonly nonPersistent: true;
|
|
1685
|
+
};
|
|
1686
|
+
} & {}>, {
|
|
1687
|
+
readonly GltfMeshPending: readonly ["gltfUrl"];
|
|
1688
|
+
readonly ShapeMeshPending: readonly ["shapeSpec"];
|
|
1689
|
+
readonly StaticMesh: readonly ["localBounds"];
|
|
1690
|
+
readonly SkinnedMesh: readonly ["localBounds", "skinJointTemplate", "skinInverseBindMatrices", "animationClipRefs"];
|
|
1691
|
+
readonly MeshInstance: readonly ["mesh", "position", "rotation", "scale", "visible", "material"];
|
|
1692
|
+
readonly Model: readonly ["mesh", "position", "rotation", "scale", "visible", "parent"];
|
|
1693
|
+
} & {
|
|
1694
|
+
readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
|
|
1695
|
+
} & {} & {
|
|
1696
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
1697
|
+
}, {} & {
|
|
1698
|
+
readonly nodeChildrenOf: {
|
|
1699
|
+
readonly key: "parent";
|
|
1700
|
+
readonly archetype: "Node";
|
|
1701
|
+
};
|
|
1702
|
+
} & {} & {
|
|
1703
|
+
readonly materialByName: {
|
|
1704
|
+
readonly key: "name";
|
|
1705
|
+
readonly unique: true;
|
|
1706
|
+
readonly archetype: "Material";
|
|
1707
|
+
};
|
|
1708
|
+
}>, args: {
|
|
1709
|
+
url: string;
|
|
1710
|
+
}) => number;
|
|
1711
|
+
readonly insertShapeMesh: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
1712
|
+
readonly mesh: {
|
|
1713
|
+
readonly type: "integer";
|
|
1714
|
+
readonly minimum: -2147483648;
|
|
1715
|
+
readonly maximum: 2147483647;
|
|
1716
|
+
readonly default: number;
|
|
1717
|
+
};
|
|
1718
|
+
readonly gltfUrl: {
|
|
1719
|
+
readonly type: "string";
|
|
1720
|
+
};
|
|
1721
|
+
readonly shapeSpec: {
|
|
1722
|
+
readonly default: import("./shape/shape-spec.js").ShapeSpec | null;
|
|
1723
|
+
};
|
|
1724
|
+
readonly voxelVolumeSize: {
|
|
1725
|
+
readonly default: import("@adobe/data/math").Vec3 | null;
|
|
1726
|
+
};
|
|
1727
|
+
readonly localBounds: {
|
|
1728
|
+
readonly default: Aabb | null;
|
|
1729
|
+
};
|
|
1730
|
+
readonly skinJointTemplate: {
|
|
1731
|
+
readonly default: JointTemplate[];
|
|
1732
|
+
};
|
|
1733
|
+
readonly skinInverseBindMatrices: {
|
|
1734
|
+
readonly default: Float32Array | null;
|
|
1735
|
+
};
|
|
1736
|
+
readonly animationClipRefs: {
|
|
1737
|
+
readonly default: number[];
|
|
1738
|
+
};
|
|
1739
|
+
readonly cpuCollisionPositions: {
|
|
1740
|
+
readonly default: Float32Array | null;
|
|
1741
|
+
};
|
|
1742
|
+
readonly cpuCollisionIndices: {
|
|
1743
|
+
readonly default: Uint32Array | null;
|
|
1744
|
+
};
|
|
1745
|
+
readonly cpuSkin: {
|
|
1746
|
+
readonly default: {
|
|
1747
|
+
positions: Float32Array;
|
|
1748
|
+
joints: Uint32Array;
|
|
1749
|
+
weights: Float32Array;
|
|
1750
|
+
} | null;
|
|
1751
|
+
};
|
|
1752
|
+
} & {
|
|
1753
|
+
readonly visible: {
|
|
1754
|
+
readonly type: "boolean";
|
|
1755
|
+
readonly const: true;
|
|
1756
|
+
readonly default: true;
|
|
1757
|
+
};
|
|
1758
|
+
readonly position: {
|
|
1759
|
+
readonly type: "array";
|
|
1760
|
+
readonly items: {
|
|
1761
|
+
readonly type: "number";
|
|
1762
|
+
readonly precision: 1;
|
|
1763
|
+
readonly default: number;
|
|
1764
|
+
};
|
|
1765
|
+
readonly minItems: 3;
|
|
1766
|
+
readonly maxItems: 3;
|
|
1767
|
+
readonly default: readonly [0, 0, 0];
|
|
1768
|
+
};
|
|
1769
|
+
readonly rotation: {
|
|
1770
|
+
readonly type: "array";
|
|
1771
|
+
readonly items: {
|
|
1772
|
+
readonly type: "number";
|
|
1773
|
+
readonly precision: 1;
|
|
1774
|
+
readonly default: number;
|
|
1775
|
+
};
|
|
1776
|
+
readonly minItems: 4;
|
|
1777
|
+
readonly maxItems: 4;
|
|
1778
|
+
readonly default: readonly [0, 0, 0, 1];
|
|
1779
|
+
readonly interpolators: {
|
|
1780
|
+
readonly linear: (q1: any, q2: any, t: number) => any;
|
|
1781
|
+
};
|
|
1782
|
+
};
|
|
1783
|
+
readonly scale: {
|
|
1784
|
+
readonly type: "array";
|
|
1785
|
+
readonly items: {
|
|
1786
|
+
readonly type: "number";
|
|
1787
|
+
readonly precision: 1;
|
|
1788
|
+
readonly default: number;
|
|
1789
|
+
};
|
|
1790
|
+
readonly minItems: 3;
|
|
1791
|
+
readonly maxItems: 3;
|
|
1792
|
+
readonly default: readonly [0, 0, 0];
|
|
1793
|
+
};
|
|
1794
|
+
readonly parent: {
|
|
1795
|
+
readonly type: "integer";
|
|
1796
|
+
readonly minimum: -2147483648;
|
|
1797
|
+
readonly maximum: 2147483647;
|
|
1798
|
+
readonly default: number;
|
|
1799
|
+
};
|
|
1800
|
+
readonly _worldMatrix: {
|
|
1801
|
+
readonly nonPersistent: true;
|
|
1802
|
+
readonly type: "array";
|
|
1803
|
+
readonly items: {
|
|
1804
|
+
readonly type: "number";
|
|
1805
|
+
readonly precision: 1;
|
|
1806
|
+
readonly default: number;
|
|
1807
|
+
};
|
|
1808
|
+
readonly minItems: 16;
|
|
1809
|
+
readonly maxItems: 16;
|
|
1810
|
+
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
1811
|
+
};
|
|
1812
|
+
readonly _worldBounds: {
|
|
1813
|
+
readonly nonPersistent: true;
|
|
1814
|
+
readonly type: "object";
|
|
1815
|
+
readonly properties: {
|
|
1816
|
+
readonly min: {
|
|
1817
|
+
readonly type: "array";
|
|
1818
|
+
readonly items: {
|
|
1819
|
+
readonly type: "number";
|
|
1820
|
+
readonly precision: 1;
|
|
1821
|
+
readonly default: number;
|
|
1822
|
+
};
|
|
1823
|
+
readonly minItems: 3;
|
|
1824
|
+
readonly maxItems: 3;
|
|
1825
|
+
readonly default: readonly [0, 0, 0];
|
|
1826
|
+
};
|
|
1827
|
+
readonly max: {
|
|
1828
|
+
readonly type: "array";
|
|
1829
|
+
readonly items: {
|
|
1830
|
+
readonly type: "number";
|
|
1831
|
+
readonly precision: 1;
|
|
1832
|
+
readonly default: number;
|
|
1833
|
+
};
|
|
1834
|
+
readonly minItems: 3;
|
|
1835
|
+
readonly maxItems: 3;
|
|
1836
|
+
readonly default: readonly [0, 0, 0];
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
readonly required: readonly ["min", "max"];
|
|
1840
|
+
readonly additionalProperties: false;
|
|
1841
|
+
readonly default: {
|
|
1842
|
+
readonly min: readonly [0, 0, 0];
|
|
1843
|
+
readonly max: readonly [0, 0, 0];
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
} & {} & {
|
|
1847
|
+
readonly material: {
|
|
1848
|
+
readonly type: "integer";
|
|
1849
|
+
readonly minimum: -2147483648;
|
|
1850
|
+
readonly maximum: 2147483647;
|
|
1851
|
+
readonly default: number;
|
|
1852
|
+
};
|
|
1853
|
+
readonly name: {
|
|
1854
|
+
readonly type: "string";
|
|
1855
|
+
};
|
|
1856
|
+
readonly density: {
|
|
1857
|
+
readonly type: "number";
|
|
1858
|
+
readonly precision: 1;
|
|
1859
|
+
readonly default: number;
|
|
1860
|
+
};
|
|
1861
|
+
readonly restitution: {
|
|
1862
|
+
readonly type: "number";
|
|
1863
|
+
readonly precision: 1;
|
|
1864
|
+
readonly default: number;
|
|
1865
|
+
};
|
|
1866
|
+
readonly friction: {
|
|
1867
|
+
readonly type: "number";
|
|
1868
|
+
readonly precision: 1;
|
|
1869
|
+
readonly default: number;
|
|
1870
|
+
};
|
|
1871
|
+
readonly compliance: {
|
|
1872
|
+
readonly type: "number";
|
|
1873
|
+
readonly precision: 1;
|
|
1874
|
+
readonly default: number;
|
|
1875
|
+
};
|
|
1876
|
+
readonly heatCapacity: {
|
|
1877
|
+
readonly type: "number";
|
|
1878
|
+
readonly precision: 1;
|
|
1879
|
+
readonly default: number;
|
|
1880
|
+
};
|
|
1881
|
+
readonly viscosity: {
|
|
1882
|
+
readonly type: "number";
|
|
1883
|
+
readonly precision: 1;
|
|
1884
|
+
readonly default: number;
|
|
1885
|
+
};
|
|
1886
|
+
readonly thermalConductivity: {
|
|
1887
|
+
readonly type: "number";
|
|
1888
|
+
readonly precision: 1;
|
|
1889
|
+
readonly default: number;
|
|
1890
|
+
};
|
|
1891
|
+
readonly stressStrainCurve: {
|
|
1892
|
+
readonly type: "object";
|
|
1893
|
+
readonly layout: "packed";
|
|
1894
|
+
readonly properties: {
|
|
1895
|
+
readonly tensileYieldStrainStress: {
|
|
1896
|
+
readonly type: "array";
|
|
1897
|
+
readonly items: {
|
|
1898
|
+
readonly type: "number";
|
|
1899
|
+
readonly precision: 1;
|
|
1900
|
+
readonly default: number;
|
|
1901
|
+
};
|
|
1902
|
+
readonly minItems: 2;
|
|
1903
|
+
readonly maxItems: 2;
|
|
1904
|
+
readonly default: readonly [0, 0];
|
|
1905
|
+
};
|
|
1906
|
+
readonly tensileFractureStrainStress: {
|
|
1907
|
+
readonly type: "array";
|
|
1908
|
+
readonly items: {
|
|
1909
|
+
readonly type: "number";
|
|
1910
|
+
readonly precision: 1;
|
|
1911
|
+
readonly default: number;
|
|
1912
|
+
};
|
|
1913
|
+
readonly minItems: 2;
|
|
1914
|
+
readonly maxItems: 2;
|
|
1915
|
+
readonly default: readonly [0, 0];
|
|
1916
|
+
};
|
|
1917
|
+
readonly compressiveYieldStrainStress: {
|
|
1918
|
+
readonly type: "array";
|
|
1919
|
+
readonly items: {
|
|
1920
|
+
readonly type: "number";
|
|
1921
|
+
readonly precision: 1;
|
|
1922
|
+
readonly default: number;
|
|
1923
|
+
};
|
|
1924
|
+
readonly minItems: 2;
|
|
1925
|
+
readonly maxItems: 2;
|
|
1926
|
+
readonly default: readonly [0, 0];
|
|
1927
|
+
};
|
|
1928
|
+
readonly compressiveFractureStrainStress: {
|
|
1929
|
+
readonly type: "array";
|
|
1930
|
+
readonly items: {
|
|
1931
|
+
readonly type: "number";
|
|
1932
|
+
readonly precision: 1;
|
|
1933
|
+
readonly default: number;
|
|
1934
|
+
};
|
|
1935
|
+
readonly minItems: 2;
|
|
1936
|
+
readonly maxItems: 2;
|
|
1937
|
+
readonly default: readonly [0, 0];
|
|
1938
|
+
};
|
|
1939
|
+
};
|
|
1940
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
1941
|
+
};
|
|
1942
|
+
readonly baseColorFactor: {
|
|
1943
|
+
readonly type: "array";
|
|
1944
|
+
readonly items: {
|
|
1945
|
+
readonly type: "number";
|
|
1946
|
+
readonly precision: 1;
|
|
1947
|
+
readonly default: number;
|
|
1948
|
+
};
|
|
1949
|
+
readonly minItems: 4;
|
|
1950
|
+
readonly maxItems: 4;
|
|
1951
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
1952
|
+
};
|
|
1953
|
+
readonly emissiveFactor: {
|
|
1954
|
+
readonly type: "array";
|
|
1955
|
+
readonly items: {
|
|
1956
|
+
readonly type: "number";
|
|
1957
|
+
readonly precision: 1;
|
|
1958
|
+
readonly default: number;
|
|
1959
|
+
};
|
|
1960
|
+
readonly minItems: 3;
|
|
1961
|
+
readonly maxItems: 3;
|
|
1962
|
+
readonly default: readonly [0, 0, 0];
|
|
1963
|
+
};
|
|
1964
|
+
readonly metallicFactor: {
|
|
1965
|
+
readonly type: "number";
|
|
1966
|
+
readonly precision: 1;
|
|
1967
|
+
readonly default: number;
|
|
1968
|
+
};
|
|
1969
|
+
readonly roughnessFactor: {
|
|
1970
|
+
readonly type: "number";
|
|
1971
|
+
readonly precision: 1;
|
|
1972
|
+
readonly default: number;
|
|
1973
|
+
};
|
|
1974
|
+
readonly normalScale: {
|
|
1975
|
+
readonly type: "number";
|
|
1976
|
+
readonly precision: 1;
|
|
1977
|
+
readonly default: number;
|
|
1978
|
+
};
|
|
1979
|
+
readonly occlusionStrength: {
|
|
1980
|
+
readonly type: "number";
|
|
1981
|
+
readonly precision: 1;
|
|
1982
|
+
readonly default: number;
|
|
1983
|
+
};
|
|
1984
|
+
readonly irReflectance: {
|
|
1985
|
+
readonly type: "number";
|
|
1986
|
+
readonly precision: 1;
|
|
1987
|
+
readonly default: number;
|
|
1988
|
+
};
|
|
1989
|
+
readonly irEmission: {
|
|
1990
|
+
readonly type: "number";
|
|
1991
|
+
readonly precision: 1;
|
|
1992
|
+
readonly default: number;
|
|
1993
|
+
};
|
|
1994
|
+
readonly emissionMode: {
|
|
1995
|
+
readonly type: "integer";
|
|
1996
|
+
readonly minimum: 0;
|
|
1997
|
+
readonly maximum: 4294967295;
|
|
1998
|
+
readonly default: number;
|
|
1999
|
+
};
|
|
2000
|
+
readonly baseColorUrl: {
|
|
2001
|
+
readonly type: "string";
|
|
2002
|
+
};
|
|
2003
|
+
readonly metallicRoughnessUrl: {
|
|
2004
|
+
readonly type: "string";
|
|
2005
|
+
};
|
|
2006
|
+
readonly normalUrl: {
|
|
2007
|
+
readonly type: "string";
|
|
2008
|
+
};
|
|
2009
|
+
readonly occlusionUrl: {
|
|
2010
|
+
readonly type: "string";
|
|
2011
|
+
};
|
|
2012
|
+
readonly emissiveUrl: {
|
|
2013
|
+
readonly type: "string";
|
|
2014
|
+
};
|
|
2015
|
+
}>, import("@adobe/data/schema").FromSchemas<{
|
|
2016
|
+
readonly _gltfMeshByUrl: {
|
|
2017
|
+
readonly default: Map<string, number> | null;
|
|
2018
|
+
readonly nonPersistent: true;
|
|
2019
|
+
};
|
|
2020
|
+
} & {}>, {
|
|
2021
|
+
readonly GltfMeshPending: readonly ["gltfUrl"];
|
|
2022
|
+
readonly ShapeMeshPending: readonly ["shapeSpec"];
|
|
2023
|
+
readonly StaticMesh: readonly ["localBounds"];
|
|
2024
|
+
readonly SkinnedMesh: readonly ["localBounds", "skinJointTemplate", "skinInverseBindMatrices", "animationClipRefs"];
|
|
2025
|
+
readonly MeshInstance: readonly ["mesh", "position", "rotation", "scale", "visible", "material"];
|
|
2026
|
+
readonly Model: readonly ["mesh", "position", "rotation", "scale", "visible", "parent"];
|
|
2027
|
+
} & {
|
|
2028
|
+
readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
|
|
2029
|
+
} & {} & {
|
|
2030
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
2031
|
+
}, {} & {
|
|
2032
|
+
readonly nodeChildrenOf: {
|
|
2033
|
+
readonly key: "parent";
|
|
2034
|
+
readonly archetype: "Node";
|
|
2035
|
+
};
|
|
2036
|
+
} & {} & {
|
|
2037
|
+
readonly materialByName: {
|
|
2038
|
+
readonly key: "name";
|
|
2039
|
+
readonly unique: true;
|
|
2040
|
+
readonly archetype: "Material";
|
|
2041
|
+
};
|
|
2042
|
+
}>, args: {
|
|
2043
|
+
shapeSpec: import("./shape/shape-spec.js").ShapeSpec;
|
|
2044
|
+
}) => number;
|
|
2045
|
+
readonly insertMeshInstance: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
2046
|
+
readonly mesh: {
|
|
2047
|
+
readonly type: "integer";
|
|
2048
|
+
readonly minimum: -2147483648;
|
|
2049
|
+
readonly maximum: 2147483647;
|
|
2050
|
+
readonly default: number;
|
|
2051
|
+
};
|
|
2052
|
+
readonly gltfUrl: {
|
|
2053
|
+
readonly type: "string";
|
|
2054
|
+
};
|
|
2055
|
+
readonly shapeSpec: {
|
|
2056
|
+
readonly default: import("./shape/shape-spec.js").ShapeSpec | null;
|
|
2057
|
+
};
|
|
2058
|
+
readonly voxelVolumeSize: {
|
|
2059
|
+
readonly default: import("@adobe/data/math").Vec3 | null;
|
|
2060
|
+
};
|
|
2061
|
+
readonly localBounds: {
|
|
2062
|
+
readonly default: Aabb | null;
|
|
2063
|
+
};
|
|
2064
|
+
readonly skinJointTemplate: {
|
|
2065
|
+
readonly default: JointTemplate[];
|
|
2066
|
+
};
|
|
2067
|
+
readonly skinInverseBindMatrices: {
|
|
2068
|
+
readonly default: Float32Array | null;
|
|
2069
|
+
};
|
|
2070
|
+
readonly animationClipRefs: {
|
|
2071
|
+
readonly default: number[];
|
|
2072
|
+
};
|
|
2073
|
+
readonly cpuCollisionPositions: {
|
|
2074
|
+
readonly default: Float32Array | null;
|
|
2075
|
+
};
|
|
2076
|
+
readonly cpuCollisionIndices: {
|
|
2077
|
+
readonly default: Uint32Array | null;
|
|
2078
|
+
};
|
|
2079
|
+
readonly cpuSkin: {
|
|
2080
|
+
readonly default: {
|
|
2081
|
+
positions: Float32Array;
|
|
2082
|
+
joints: Uint32Array;
|
|
2083
|
+
weights: Float32Array;
|
|
2084
|
+
} | null;
|
|
2085
|
+
};
|
|
2086
|
+
} & {
|
|
2087
|
+
readonly visible: {
|
|
2088
|
+
readonly type: "boolean";
|
|
2089
|
+
readonly const: true;
|
|
2090
|
+
readonly default: true;
|
|
2091
|
+
};
|
|
2092
|
+
readonly position: {
|
|
2093
|
+
readonly type: "array";
|
|
2094
|
+
readonly items: {
|
|
2095
|
+
readonly type: "number";
|
|
2096
|
+
readonly precision: 1;
|
|
2097
|
+
readonly default: number;
|
|
2098
|
+
};
|
|
2099
|
+
readonly minItems: 3;
|
|
2100
|
+
readonly maxItems: 3;
|
|
2101
|
+
readonly default: readonly [0, 0, 0];
|
|
2102
|
+
};
|
|
2103
|
+
readonly rotation: {
|
|
2104
|
+
readonly type: "array";
|
|
2105
|
+
readonly items: {
|
|
2106
|
+
readonly type: "number";
|
|
323
2107
|
readonly precision: 1;
|
|
324
2108
|
readonly default: number;
|
|
325
2109
|
};
|
|
@@ -348,6 +2132,7 @@ export declare const modelLoader: {
|
|
|
348
2132
|
readonly default: number;
|
|
349
2133
|
};
|
|
350
2134
|
readonly _worldMatrix: {
|
|
2135
|
+
readonly nonPersistent: true;
|
|
351
2136
|
readonly type: "array";
|
|
352
2137
|
readonly items: {
|
|
353
2138
|
readonly type: "number";
|
|
@@ -359,6 +2144,7 @@ export declare const modelLoader: {
|
|
|
359
2144
|
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
360
2145
|
};
|
|
361
2146
|
readonly _worldBounds: {
|
|
2147
|
+
readonly nonPersistent: true;
|
|
362
2148
|
readonly type: "object";
|
|
363
2149
|
readonly properties: {
|
|
364
2150
|
readonly min: {
|
|
@@ -391,24 +2177,250 @@ export declare const modelLoader: {
|
|
|
391
2177
|
readonly max: readonly [0, 0, 0];
|
|
392
2178
|
};
|
|
393
2179
|
};
|
|
394
|
-
} & {}
|
|
395
|
-
readonly
|
|
396
|
-
|
|
2180
|
+
} & {} & {
|
|
2181
|
+
readonly material: {
|
|
2182
|
+
readonly type: "integer";
|
|
2183
|
+
readonly minimum: -2147483648;
|
|
2184
|
+
readonly maximum: 2147483647;
|
|
2185
|
+
readonly default: number;
|
|
2186
|
+
};
|
|
2187
|
+
readonly name: {
|
|
2188
|
+
readonly type: "string";
|
|
2189
|
+
};
|
|
2190
|
+
readonly density: {
|
|
2191
|
+
readonly type: "number";
|
|
2192
|
+
readonly precision: 1;
|
|
2193
|
+
readonly default: number;
|
|
2194
|
+
};
|
|
2195
|
+
readonly restitution: {
|
|
2196
|
+
readonly type: "number";
|
|
2197
|
+
readonly precision: 1;
|
|
2198
|
+
readonly default: number;
|
|
2199
|
+
};
|
|
2200
|
+
readonly friction: {
|
|
2201
|
+
readonly type: "number";
|
|
2202
|
+
readonly precision: 1;
|
|
2203
|
+
readonly default: number;
|
|
2204
|
+
};
|
|
2205
|
+
readonly compliance: {
|
|
2206
|
+
readonly type: "number";
|
|
2207
|
+
readonly precision: 1;
|
|
2208
|
+
readonly default: number;
|
|
2209
|
+
};
|
|
2210
|
+
readonly heatCapacity: {
|
|
2211
|
+
readonly type: "number";
|
|
2212
|
+
readonly precision: 1;
|
|
2213
|
+
readonly default: number;
|
|
2214
|
+
};
|
|
2215
|
+
readonly viscosity: {
|
|
2216
|
+
readonly type: "number";
|
|
2217
|
+
readonly precision: 1;
|
|
2218
|
+
readonly default: number;
|
|
2219
|
+
};
|
|
2220
|
+
readonly thermalConductivity: {
|
|
2221
|
+
readonly type: "number";
|
|
2222
|
+
readonly precision: 1;
|
|
2223
|
+
readonly default: number;
|
|
2224
|
+
};
|
|
2225
|
+
readonly stressStrainCurve: {
|
|
2226
|
+
readonly type: "object";
|
|
2227
|
+
readonly layout: "packed";
|
|
2228
|
+
readonly properties: {
|
|
2229
|
+
readonly tensileYieldStrainStress: {
|
|
2230
|
+
readonly type: "array";
|
|
2231
|
+
readonly items: {
|
|
2232
|
+
readonly type: "number";
|
|
2233
|
+
readonly precision: 1;
|
|
2234
|
+
readonly default: number;
|
|
2235
|
+
};
|
|
2236
|
+
readonly minItems: 2;
|
|
2237
|
+
readonly maxItems: 2;
|
|
2238
|
+
readonly default: readonly [0, 0];
|
|
2239
|
+
};
|
|
2240
|
+
readonly tensileFractureStrainStress: {
|
|
2241
|
+
readonly type: "array";
|
|
2242
|
+
readonly items: {
|
|
2243
|
+
readonly type: "number";
|
|
2244
|
+
readonly precision: 1;
|
|
2245
|
+
readonly default: number;
|
|
2246
|
+
};
|
|
2247
|
+
readonly minItems: 2;
|
|
2248
|
+
readonly maxItems: 2;
|
|
2249
|
+
readonly default: readonly [0, 0];
|
|
2250
|
+
};
|
|
2251
|
+
readonly compressiveYieldStrainStress: {
|
|
2252
|
+
readonly type: "array";
|
|
2253
|
+
readonly items: {
|
|
2254
|
+
readonly type: "number";
|
|
2255
|
+
readonly precision: 1;
|
|
2256
|
+
readonly default: number;
|
|
2257
|
+
};
|
|
2258
|
+
readonly minItems: 2;
|
|
2259
|
+
readonly maxItems: 2;
|
|
2260
|
+
readonly default: readonly [0, 0];
|
|
2261
|
+
};
|
|
2262
|
+
readonly compressiveFractureStrainStress: {
|
|
2263
|
+
readonly type: "array";
|
|
2264
|
+
readonly items: {
|
|
2265
|
+
readonly type: "number";
|
|
2266
|
+
readonly precision: 1;
|
|
2267
|
+
readonly default: number;
|
|
2268
|
+
};
|
|
2269
|
+
readonly minItems: 2;
|
|
2270
|
+
readonly maxItems: 2;
|
|
2271
|
+
readonly default: readonly [0, 0];
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
2275
|
+
};
|
|
2276
|
+
readonly baseColorFactor: {
|
|
2277
|
+
readonly type: "array";
|
|
2278
|
+
readonly items: {
|
|
2279
|
+
readonly type: "number";
|
|
2280
|
+
readonly precision: 1;
|
|
2281
|
+
readonly default: number;
|
|
2282
|
+
};
|
|
2283
|
+
readonly minItems: 4;
|
|
2284
|
+
readonly maxItems: 4;
|
|
2285
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
2286
|
+
};
|
|
2287
|
+
readonly emissiveFactor: {
|
|
2288
|
+
readonly type: "array";
|
|
2289
|
+
readonly items: {
|
|
2290
|
+
readonly type: "number";
|
|
2291
|
+
readonly precision: 1;
|
|
2292
|
+
readonly default: number;
|
|
2293
|
+
};
|
|
2294
|
+
readonly minItems: 3;
|
|
2295
|
+
readonly maxItems: 3;
|
|
2296
|
+
readonly default: readonly [0, 0, 0];
|
|
2297
|
+
};
|
|
2298
|
+
readonly metallicFactor: {
|
|
2299
|
+
readonly type: "number";
|
|
2300
|
+
readonly precision: 1;
|
|
2301
|
+
readonly default: number;
|
|
2302
|
+
};
|
|
2303
|
+
readonly roughnessFactor: {
|
|
2304
|
+
readonly type: "number";
|
|
2305
|
+
readonly precision: 1;
|
|
2306
|
+
readonly default: number;
|
|
2307
|
+
};
|
|
2308
|
+
readonly normalScale: {
|
|
2309
|
+
readonly type: "number";
|
|
2310
|
+
readonly precision: 1;
|
|
2311
|
+
readonly default: number;
|
|
2312
|
+
};
|
|
2313
|
+
readonly occlusionStrength: {
|
|
2314
|
+
readonly type: "number";
|
|
2315
|
+
readonly precision: 1;
|
|
2316
|
+
readonly default: number;
|
|
2317
|
+
};
|
|
2318
|
+
readonly irReflectance: {
|
|
2319
|
+
readonly type: "number";
|
|
2320
|
+
readonly precision: 1;
|
|
2321
|
+
readonly default: number;
|
|
2322
|
+
};
|
|
2323
|
+
readonly irEmission: {
|
|
2324
|
+
readonly type: "number";
|
|
2325
|
+
readonly precision: 1;
|
|
2326
|
+
readonly default: number;
|
|
2327
|
+
};
|
|
2328
|
+
readonly emissionMode: {
|
|
2329
|
+
readonly type: "integer";
|
|
2330
|
+
readonly minimum: 0;
|
|
2331
|
+
readonly maximum: 4294967295;
|
|
2332
|
+
readonly default: number;
|
|
2333
|
+
};
|
|
2334
|
+
readonly baseColorUrl: {
|
|
2335
|
+
readonly type: "string";
|
|
2336
|
+
};
|
|
2337
|
+
readonly metallicRoughnessUrl: {
|
|
2338
|
+
readonly type: "string";
|
|
2339
|
+
};
|
|
2340
|
+
readonly normalUrl: {
|
|
2341
|
+
readonly type: "string";
|
|
2342
|
+
};
|
|
2343
|
+
readonly occlusionUrl: {
|
|
2344
|
+
readonly type: "string";
|
|
2345
|
+
};
|
|
2346
|
+
readonly emissiveUrl: {
|
|
2347
|
+
readonly type: "string";
|
|
2348
|
+
};
|
|
2349
|
+
}>, import("@adobe/data/schema").FromSchemas<{
|
|
2350
|
+
readonly _gltfMeshByUrl: {
|
|
2351
|
+
readonly default: Map<string, number> | null;
|
|
2352
|
+
readonly nonPersistent: true;
|
|
2353
|
+
};
|
|
2354
|
+
} & {}>, {
|
|
2355
|
+
readonly GltfMeshPending: readonly ["gltfUrl"];
|
|
2356
|
+
readonly ShapeMeshPending: readonly ["shapeSpec"];
|
|
2357
|
+
readonly StaticMesh: readonly ["localBounds"];
|
|
2358
|
+
readonly SkinnedMesh: readonly ["localBounds", "skinJointTemplate", "skinInverseBindMatrices", "animationClipRefs"];
|
|
2359
|
+
readonly MeshInstance: readonly ["mesh", "position", "rotation", "scale", "visible", "material"];
|
|
2360
|
+
readonly Model: readonly ["mesh", "position", "rotation", "scale", "visible", "parent"];
|
|
397
2361
|
} & {
|
|
398
2362
|
readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
|
|
399
|
-
} & {}
|
|
400
|
-
|
|
2363
|
+
} & {} & {
|
|
2364
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
2365
|
+
}, {} & {
|
|
2366
|
+
readonly nodeChildrenOf: {
|
|
2367
|
+
readonly key: "parent";
|
|
2368
|
+
readonly archetype: "Node";
|
|
2369
|
+
};
|
|
2370
|
+
} & {} & {
|
|
2371
|
+
readonly materialByName: {
|
|
2372
|
+
readonly key: "name";
|
|
2373
|
+
readonly unique: true;
|
|
2374
|
+
readonly archetype: "Material";
|
|
2375
|
+
};
|
|
2376
|
+
}>, args: {
|
|
2377
|
+
mesh: number;
|
|
2378
|
+
material: number;
|
|
2379
|
+
position?: import("@adobe/data/math").Vec3;
|
|
2380
|
+
rotation?: import("@adobe/data/math").Quat;
|
|
2381
|
+
scale?: import("@adobe/data/math").Vec3;
|
|
401
2382
|
}) => number;
|
|
402
2383
|
readonly insertModel: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
403
|
-
readonly
|
|
404
|
-
readonly type: "string";
|
|
405
|
-
};
|
|
406
|
-
readonly geometry: {
|
|
2384
|
+
readonly mesh: {
|
|
407
2385
|
readonly type: "integer";
|
|
408
2386
|
readonly minimum: -2147483648;
|
|
409
2387
|
readonly maximum: 2147483647;
|
|
410
2388
|
readonly default: number;
|
|
411
2389
|
};
|
|
2390
|
+
readonly gltfUrl: {
|
|
2391
|
+
readonly type: "string";
|
|
2392
|
+
};
|
|
2393
|
+
readonly shapeSpec: {
|
|
2394
|
+
readonly default: import("./shape/shape-spec.js").ShapeSpec | null;
|
|
2395
|
+
};
|
|
2396
|
+
readonly voxelVolumeSize: {
|
|
2397
|
+
readonly default: import("@adobe/data/math").Vec3 | null;
|
|
2398
|
+
};
|
|
2399
|
+
readonly localBounds: {
|
|
2400
|
+
readonly default: Aabb | null;
|
|
2401
|
+
};
|
|
2402
|
+
readonly skinJointTemplate: {
|
|
2403
|
+
readonly default: JointTemplate[];
|
|
2404
|
+
};
|
|
2405
|
+
readonly skinInverseBindMatrices: {
|
|
2406
|
+
readonly default: Float32Array | null;
|
|
2407
|
+
};
|
|
2408
|
+
readonly animationClipRefs: {
|
|
2409
|
+
readonly default: number[];
|
|
2410
|
+
};
|
|
2411
|
+
readonly cpuCollisionPositions: {
|
|
2412
|
+
readonly default: Float32Array | null;
|
|
2413
|
+
};
|
|
2414
|
+
readonly cpuCollisionIndices: {
|
|
2415
|
+
readonly default: Uint32Array | null;
|
|
2416
|
+
};
|
|
2417
|
+
readonly cpuSkin: {
|
|
2418
|
+
readonly default: {
|
|
2419
|
+
positions: Float32Array;
|
|
2420
|
+
joints: Uint32Array;
|
|
2421
|
+
weights: Float32Array;
|
|
2422
|
+
} | null;
|
|
2423
|
+
};
|
|
412
2424
|
} & {
|
|
413
2425
|
readonly visible: {
|
|
414
2426
|
readonly type: "boolean";
|
|
@@ -458,6 +2470,7 @@ export declare const modelLoader: {
|
|
|
458
2470
|
readonly default: number;
|
|
459
2471
|
};
|
|
460
2472
|
readonly _worldMatrix: {
|
|
2473
|
+
readonly nonPersistent: true;
|
|
461
2474
|
readonly type: "array";
|
|
462
2475
|
readonly items: {
|
|
463
2476
|
readonly type: "number";
|
|
@@ -469,6 +2482,7 @@ export declare const modelLoader: {
|
|
|
469
2482
|
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
470
2483
|
};
|
|
471
2484
|
readonly _worldBounds: {
|
|
2485
|
+
readonly nonPersistent: true;
|
|
472
2486
|
readonly type: "object";
|
|
473
2487
|
readonly properties: {
|
|
474
2488
|
readonly min: {
|
|
@@ -501,19 +2515,210 @@ export declare const modelLoader: {
|
|
|
501
2515
|
readonly max: readonly [0, 0, 0];
|
|
502
2516
|
};
|
|
503
2517
|
};
|
|
504
|
-
} & {}
|
|
505
|
-
readonly
|
|
506
|
-
|
|
2518
|
+
} & {} & {
|
|
2519
|
+
readonly material: {
|
|
2520
|
+
readonly type: "integer";
|
|
2521
|
+
readonly minimum: -2147483648;
|
|
2522
|
+
readonly maximum: 2147483647;
|
|
2523
|
+
readonly default: number;
|
|
2524
|
+
};
|
|
2525
|
+
readonly name: {
|
|
2526
|
+
readonly type: "string";
|
|
2527
|
+
};
|
|
2528
|
+
readonly density: {
|
|
2529
|
+
readonly type: "number";
|
|
2530
|
+
readonly precision: 1;
|
|
2531
|
+
readonly default: number;
|
|
2532
|
+
};
|
|
2533
|
+
readonly restitution: {
|
|
2534
|
+
readonly type: "number";
|
|
2535
|
+
readonly precision: 1;
|
|
2536
|
+
readonly default: number;
|
|
2537
|
+
};
|
|
2538
|
+
readonly friction: {
|
|
2539
|
+
readonly type: "number";
|
|
2540
|
+
readonly precision: 1;
|
|
2541
|
+
readonly default: number;
|
|
2542
|
+
};
|
|
2543
|
+
readonly compliance: {
|
|
2544
|
+
readonly type: "number";
|
|
2545
|
+
readonly precision: 1;
|
|
2546
|
+
readonly default: number;
|
|
2547
|
+
};
|
|
2548
|
+
readonly heatCapacity: {
|
|
2549
|
+
readonly type: "number";
|
|
2550
|
+
readonly precision: 1;
|
|
2551
|
+
readonly default: number;
|
|
2552
|
+
};
|
|
2553
|
+
readonly viscosity: {
|
|
2554
|
+
readonly type: "number";
|
|
2555
|
+
readonly precision: 1;
|
|
2556
|
+
readonly default: number;
|
|
2557
|
+
};
|
|
2558
|
+
readonly thermalConductivity: {
|
|
2559
|
+
readonly type: "number";
|
|
2560
|
+
readonly precision: 1;
|
|
2561
|
+
readonly default: number;
|
|
2562
|
+
};
|
|
2563
|
+
readonly stressStrainCurve: {
|
|
2564
|
+
readonly type: "object";
|
|
2565
|
+
readonly layout: "packed";
|
|
2566
|
+
readonly properties: {
|
|
2567
|
+
readonly tensileYieldStrainStress: {
|
|
2568
|
+
readonly type: "array";
|
|
2569
|
+
readonly items: {
|
|
2570
|
+
readonly type: "number";
|
|
2571
|
+
readonly precision: 1;
|
|
2572
|
+
readonly default: number;
|
|
2573
|
+
};
|
|
2574
|
+
readonly minItems: 2;
|
|
2575
|
+
readonly maxItems: 2;
|
|
2576
|
+
readonly default: readonly [0, 0];
|
|
2577
|
+
};
|
|
2578
|
+
readonly tensileFractureStrainStress: {
|
|
2579
|
+
readonly type: "array";
|
|
2580
|
+
readonly items: {
|
|
2581
|
+
readonly type: "number";
|
|
2582
|
+
readonly precision: 1;
|
|
2583
|
+
readonly default: number;
|
|
2584
|
+
};
|
|
2585
|
+
readonly minItems: 2;
|
|
2586
|
+
readonly maxItems: 2;
|
|
2587
|
+
readonly default: readonly [0, 0];
|
|
2588
|
+
};
|
|
2589
|
+
readonly compressiveYieldStrainStress: {
|
|
2590
|
+
readonly type: "array";
|
|
2591
|
+
readonly items: {
|
|
2592
|
+
readonly type: "number";
|
|
2593
|
+
readonly precision: 1;
|
|
2594
|
+
readonly default: number;
|
|
2595
|
+
};
|
|
2596
|
+
readonly minItems: 2;
|
|
2597
|
+
readonly maxItems: 2;
|
|
2598
|
+
readonly default: readonly [0, 0];
|
|
2599
|
+
};
|
|
2600
|
+
readonly compressiveFractureStrainStress: {
|
|
2601
|
+
readonly type: "array";
|
|
2602
|
+
readonly items: {
|
|
2603
|
+
readonly type: "number";
|
|
2604
|
+
readonly precision: 1;
|
|
2605
|
+
readonly default: number;
|
|
2606
|
+
};
|
|
2607
|
+
readonly minItems: 2;
|
|
2608
|
+
readonly maxItems: 2;
|
|
2609
|
+
readonly default: readonly [0, 0];
|
|
2610
|
+
};
|
|
2611
|
+
};
|
|
2612
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
2613
|
+
};
|
|
2614
|
+
readonly baseColorFactor: {
|
|
2615
|
+
readonly type: "array";
|
|
2616
|
+
readonly items: {
|
|
2617
|
+
readonly type: "number";
|
|
2618
|
+
readonly precision: 1;
|
|
2619
|
+
readonly default: number;
|
|
2620
|
+
};
|
|
2621
|
+
readonly minItems: 4;
|
|
2622
|
+
readonly maxItems: 4;
|
|
2623
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
2624
|
+
};
|
|
2625
|
+
readonly emissiveFactor: {
|
|
2626
|
+
readonly type: "array";
|
|
2627
|
+
readonly items: {
|
|
2628
|
+
readonly type: "number";
|
|
2629
|
+
readonly precision: 1;
|
|
2630
|
+
readonly default: number;
|
|
2631
|
+
};
|
|
2632
|
+
readonly minItems: 3;
|
|
2633
|
+
readonly maxItems: 3;
|
|
2634
|
+
readonly default: readonly [0, 0, 0];
|
|
2635
|
+
};
|
|
2636
|
+
readonly metallicFactor: {
|
|
2637
|
+
readonly type: "number";
|
|
2638
|
+
readonly precision: 1;
|
|
2639
|
+
readonly default: number;
|
|
2640
|
+
};
|
|
2641
|
+
readonly roughnessFactor: {
|
|
2642
|
+
readonly type: "number";
|
|
2643
|
+
readonly precision: 1;
|
|
2644
|
+
readonly default: number;
|
|
2645
|
+
};
|
|
2646
|
+
readonly normalScale: {
|
|
2647
|
+
readonly type: "number";
|
|
2648
|
+
readonly precision: 1;
|
|
2649
|
+
readonly default: number;
|
|
2650
|
+
};
|
|
2651
|
+
readonly occlusionStrength: {
|
|
2652
|
+
readonly type: "number";
|
|
2653
|
+
readonly precision: 1;
|
|
2654
|
+
readonly default: number;
|
|
2655
|
+
};
|
|
2656
|
+
readonly irReflectance: {
|
|
2657
|
+
readonly type: "number";
|
|
2658
|
+
readonly precision: 1;
|
|
2659
|
+
readonly default: number;
|
|
2660
|
+
};
|
|
2661
|
+
readonly irEmission: {
|
|
2662
|
+
readonly type: "number";
|
|
2663
|
+
readonly precision: 1;
|
|
2664
|
+
readonly default: number;
|
|
2665
|
+
};
|
|
2666
|
+
readonly emissionMode: {
|
|
2667
|
+
readonly type: "integer";
|
|
2668
|
+
readonly minimum: 0;
|
|
2669
|
+
readonly maximum: 4294967295;
|
|
2670
|
+
readonly default: number;
|
|
2671
|
+
};
|
|
2672
|
+
readonly baseColorUrl: {
|
|
2673
|
+
readonly type: "string";
|
|
2674
|
+
};
|
|
2675
|
+
readonly metallicRoughnessUrl: {
|
|
2676
|
+
readonly type: "string";
|
|
2677
|
+
};
|
|
2678
|
+
readonly normalUrl: {
|
|
2679
|
+
readonly type: "string";
|
|
2680
|
+
};
|
|
2681
|
+
readonly occlusionUrl: {
|
|
2682
|
+
readonly type: "string";
|
|
2683
|
+
};
|
|
2684
|
+
readonly emissiveUrl: {
|
|
2685
|
+
readonly type: "string";
|
|
2686
|
+
};
|
|
2687
|
+
}>, import("@adobe/data/schema").FromSchemas<{
|
|
2688
|
+
readonly _gltfMeshByUrl: {
|
|
2689
|
+
readonly default: Map<string, number> | null;
|
|
2690
|
+
readonly nonPersistent: true;
|
|
2691
|
+
};
|
|
2692
|
+
} & {}>, {
|
|
2693
|
+
readonly GltfMeshPending: readonly ["gltfUrl"];
|
|
2694
|
+
readonly ShapeMeshPending: readonly ["shapeSpec"];
|
|
2695
|
+
readonly StaticMesh: readonly ["localBounds"];
|
|
2696
|
+
readonly SkinnedMesh: readonly ["localBounds", "skinJointTemplate", "skinInverseBindMatrices", "animationClipRefs"];
|
|
2697
|
+
readonly MeshInstance: readonly ["mesh", "position", "rotation", "scale", "visible", "material"];
|
|
2698
|
+
readonly Model: readonly ["mesh", "position", "rotation", "scale", "visible", "parent"];
|
|
507
2699
|
} & {
|
|
508
2700
|
readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
|
|
509
|
-
} & {}
|
|
510
|
-
|
|
511
|
-
|
|
2701
|
+
} & {} & {
|
|
2702
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
2703
|
+
}, {} & {
|
|
2704
|
+
readonly nodeChildrenOf: {
|
|
2705
|
+
readonly key: "parent";
|
|
2706
|
+
readonly archetype: "Node";
|
|
2707
|
+
};
|
|
2708
|
+
} & {} & {
|
|
2709
|
+
readonly materialByName: {
|
|
2710
|
+
readonly key: "name";
|
|
2711
|
+
readonly unique: true;
|
|
2712
|
+
readonly archetype: "Material";
|
|
2713
|
+
};
|
|
2714
|
+
}>, args: {
|
|
2715
|
+
mesh: number;
|
|
2716
|
+
position?: import("@adobe/data/math").Vec3;
|
|
512
2717
|
rotation?: import("@adobe/data/math").Quat;
|
|
513
|
-
scale?:
|
|
2718
|
+
scale?: import("@adobe/data/math").Vec3;
|
|
514
2719
|
parent?: number;
|
|
515
2720
|
}) => number;
|
|
516
|
-
} & {} & {} & {} & {
|
|
2721
|
+
} & {} & {} & {} & {} & {
|
|
517
2722
|
readonly insertAnimationClip: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{} & {
|
|
518
2723
|
readonly animationClipTracks: {
|
|
519
2724
|
readonly default: import("../../animation/animation-track/public.js")[];
|
|
@@ -544,9 +2749,11 @@ export declare const modelLoader: {
|
|
|
544
2749
|
};
|
|
545
2750
|
readonly animationLoop: {
|
|
546
2751
|
readonly type: "boolean";
|
|
2752
|
+
readonly default: boolean;
|
|
547
2753
|
};
|
|
548
2754
|
readonly animationPlaying: {
|
|
549
2755
|
readonly type: "boolean";
|
|
2756
|
+
readonly default: boolean;
|
|
550
2757
|
};
|
|
551
2758
|
readonly animationObservable: {
|
|
552
2759
|
readonly type: "boolean";
|
|
@@ -591,9 +2798,11 @@ export declare const modelLoader: {
|
|
|
591
2798
|
};
|
|
592
2799
|
readonly animationLoop: {
|
|
593
2800
|
readonly type: "boolean";
|
|
2801
|
+
readonly default: boolean;
|
|
594
2802
|
};
|
|
595
2803
|
readonly animationPlaying: {
|
|
596
2804
|
readonly type: "boolean";
|
|
2805
|
+
readonly default: boolean;
|
|
597
2806
|
};
|
|
598
2807
|
readonly animationObservable: {
|
|
599
2808
|
readonly type: "boolean";
|
|
@@ -629,119 +2838,41 @@ export declare const modelLoader: {
|
|
|
629
2838
|
readonly default: number;
|
|
630
2839
|
};
|
|
631
2840
|
readonly animationTargets: {
|
|
632
|
-
readonly default: number[];
|
|
633
|
-
};
|
|
634
|
-
readonly animationTime: {
|
|
635
|
-
readonly type: "number";
|
|
636
|
-
readonly precision: 2;
|
|
637
|
-
readonly default: number;
|
|
638
|
-
};
|
|
639
|
-
readonly animationSpeed: {
|
|
640
|
-
readonly default: 1;
|
|
641
|
-
readonly type: "number";
|
|
642
|
-
readonly precision: 1;
|
|
643
|
-
};
|
|
644
|
-
readonly animationLoop: {
|
|
645
|
-
readonly type: "boolean";
|
|
646
|
-
};
|
|
647
|
-
readonly animationPlaying: {
|
|
648
|
-
readonly type: "boolean";
|
|
649
|
-
};
|
|
650
|
-
readonly animationObservable: {
|
|
651
|
-
readonly type: "boolean";
|
|
652
|
-
readonly const: true;
|
|
653
|
-
readonly default: true;
|
|
654
|
-
};
|
|
655
|
-
}>, import("@adobe/data/schema").FromSchemas<{}>, {
|
|
656
|
-
readonly AnimationClip: readonly ["animationClipTracks", "animationClipDuration"];
|
|
657
|
-
readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
|
|
658
|
-
readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
|
|
659
|
-
}, {}>, args: {
|
|
660
|
-
dt: number;
|
|
661
|
-
observable: boolean;
|
|
662
|
-
}) => void;
|
|
663
|
-
} & {} & {
|
|
664
|
-
readonly insertLoadedPrimitives: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{
|
|
665
|
-
readonly _bounds: {
|
|
666
|
-
readonly default: Aabb | null;
|
|
667
|
-
};
|
|
668
|
-
readonly _skinJointTemplate: {
|
|
669
|
-
readonly default: JointTemplate[];
|
|
670
|
-
};
|
|
671
|
-
readonly _skinInverseBindMatrices: {
|
|
672
|
-
readonly default: Float32Array | null;
|
|
673
|
-
};
|
|
674
|
-
readonly _animationClipRefs: {
|
|
675
|
-
readonly default: number[];
|
|
676
|
-
};
|
|
677
|
-
readonly _cpuPositions: {
|
|
678
|
-
readonly default: Float32Array | null;
|
|
679
|
-
};
|
|
680
|
-
readonly _cpuIndices: {
|
|
681
|
-
readonly default: Uint32Array | null;
|
|
682
|
-
};
|
|
683
|
-
readonly _cpuSkin: {
|
|
684
|
-
readonly default: {
|
|
685
|
-
positions: Float32Array;
|
|
686
|
-
joints: Uint32Array;
|
|
687
|
-
weights: Float32Array;
|
|
688
|
-
} | null;
|
|
689
|
-
};
|
|
690
|
-
} & {} & {
|
|
691
|
-
readonly _vertexBuffer: {
|
|
692
|
-
readonly default: GPUBuffer | null;
|
|
693
|
-
};
|
|
694
|
-
readonly _skinVertexBuffer: {
|
|
695
|
-
readonly default: GPUBuffer | null;
|
|
696
|
-
};
|
|
697
|
-
readonly _indexBuffer: {
|
|
698
|
-
readonly default: GPUBuffer | null;
|
|
699
|
-
};
|
|
700
|
-
readonly _indexCount: {
|
|
701
|
-
readonly type: "integer";
|
|
702
|
-
readonly minimum: 0;
|
|
703
|
-
readonly maximum: 4294967295;
|
|
704
|
-
readonly default: number;
|
|
705
|
-
};
|
|
706
|
-
readonly _indexFormat: {
|
|
707
|
-
readonly default: GPUIndexFormat;
|
|
708
|
-
};
|
|
709
|
-
readonly _materialBindGroup: {
|
|
710
|
-
readonly default: GPUBindGroup | null;
|
|
711
|
-
};
|
|
712
|
-
readonly _geometry: {
|
|
713
|
-
readonly type: "integer";
|
|
714
|
-
readonly minimum: -2147483648;
|
|
715
|
-
readonly maximum: 2147483647;
|
|
716
|
-
readonly default: number;
|
|
717
|
-
};
|
|
718
|
-
readonly _material: {
|
|
719
|
-
readonly type: "integer";
|
|
720
|
-
readonly minimum: -2147483648;
|
|
721
|
-
readonly maximum: 2147483647;
|
|
722
|
-
readonly default: number;
|
|
723
|
-
};
|
|
724
|
-
readonly _nodeLocalMatrix: {
|
|
725
|
-
readonly type: "array";
|
|
726
|
-
readonly items: {
|
|
727
|
-
readonly type: "number";
|
|
728
|
-
readonly precision: 1;
|
|
729
|
-
readonly default: number;
|
|
730
|
-
};
|
|
731
|
-
readonly minItems: 16;
|
|
732
|
-
readonly maxItems: 16;
|
|
733
|
-
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
734
|
-
};
|
|
735
|
-
readonly _skeletonModelRef: {
|
|
736
|
-
readonly type: "integer";
|
|
737
|
-
readonly minimum: -2147483648;
|
|
738
|
-
readonly maximum: 2147483647;
|
|
2841
|
+
readonly default: number[];
|
|
2842
|
+
};
|
|
2843
|
+
readonly animationTime: {
|
|
2844
|
+
readonly type: "number";
|
|
2845
|
+
readonly precision: 2;
|
|
739
2846
|
readonly default: number;
|
|
740
2847
|
};
|
|
741
|
-
readonly
|
|
742
|
-
readonly default:
|
|
2848
|
+
readonly animationSpeed: {
|
|
2849
|
+
readonly default: 1;
|
|
2850
|
+
readonly type: "number";
|
|
2851
|
+
readonly precision: 1;
|
|
743
2852
|
};
|
|
744
|
-
|
|
2853
|
+
readonly animationLoop: {
|
|
2854
|
+
readonly type: "boolean";
|
|
2855
|
+
readonly default: boolean;
|
|
2856
|
+
};
|
|
2857
|
+
readonly animationPlaying: {
|
|
2858
|
+
readonly type: "boolean";
|
|
2859
|
+
readonly default: boolean;
|
|
2860
|
+
};
|
|
2861
|
+
readonly animationObservable: {
|
|
2862
|
+
readonly type: "boolean";
|
|
2863
|
+
readonly const: true;
|
|
2864
|
+
readonly default: true;
|
|
2865
|
+
};
|
|
2866
|
+
}>, import("@adobe/data/schema").FromSchemas<{}>, {
|
|
2867
|
+
readonly AnimationClip: readonly ["animationClipTracks", "animationClipDuration"];
|
|
2868
|
+
readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
|
|
2869
|
+
readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
|
|
2870
|
+
}, {}>, args: {
|
|
2871
|
+
dt: number;
|
|
2872
|
+
observable: boolean;
|
|
2873
|
+
}) => void;
|
|
2874
|
+
} & {} & {
|
|
2875
|
+
readonly insertLoadedPrimitives: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{} & {
|
|
745
2876
|
readonly visible: {
|
|
746
2877
|
readonly type: "boolean";
|
|
747
2878
|
readonly const: true;
|
|
@@ -790,6 +2921,7 @@ export declare const modelLoader: {
|
|
|
790
2921
|
readonly default: number;
|
|
791
2922
|
};
|
|
792
2923
|
readonly _worldMatrix: {
|
|
2924
|
+
readonly nonPersistent: true;
|
|
793
2925
|
readonly type: "array";
|
|
794
2926
|
readonly items: {
|
|
795
2927
|
readonly type: "number";
|
|
@@ -801,6 +2933,7 @@ export declare const modelLoader: {
|
|
|
801
2933
|
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
802
2934
|
};
|
|
803
2935
|
readonly _worldBounds: {
|
|
2936
|
+
readonly nonPersistent: true;
|
|
804
2937
|
readonly type: "object";
|
|
805
2938
|
readonly properties: {
|
|
806
2939
|
readonly min: {
|
|
@@ -834,15 +2967,280 @@ export declare const modelLoader: {
|
|
|
834
2967
|
};
|
|
835
2968
|
};
|
|
836
2969
|
} & {
|
|
837
|
-
readonly
|
|
2970
|
+
readonly material: {
|
|
2971
|
+
readonly type: "integer";
|
|
2972
|
+
readonly minimum: -2147483648;
|
|
2973
|
+
readonly maximum: 2147483647;
|
|
2974
|
+
readonly default: number;
|
|
2975
|
+
};
|
|
2976
|
+
readonly name: {
|
|
2977
|
+
readonly type: "string";
|
|
2978
|
+
};
|
|
2979
|
+
readonly density: {
|
|
2980
|
+
readonly type: "number";
|
|
2981
|
+
readonly precision: 1;
|
|
2982
|
+
readonly default: number;
|
|
2983
|
+
};
|
|
2984
|
+
readonly restitution: {
|
|
2985
|
+
readonly type: "number";
|
|
2986
|
+
readonly precision: 1;
|
|
2987
|
+
readonly default: number;
|
|
2988
|
+
};
|
|
2989
|
+
readonly friction: {
|
|
2990
|
+
readonly type: "number";
|
|
2991
|
+
readonly precision: 1;
|
|
2992
|
+
readonly default: number;
|
|
2993
|
+
};
|
|
2994
|
+
readonly compliance: {
|
|
2995
|
+
readonly type: "number";
|
|
2996
|
+
readonly precision: 1;
|
|
2997
|
+
readonly default: number;
|
|
2998
|
+
};
|
|
2999
|
+
readonly heatCapacity: {
|
|
3000
|
+
readonly type: "number";
|
|
3001
|
+
readonly precision: 1;
|
|
3002
|
+
readonly default: number;
|
|
3003
|
+
};
|
|
3004
|
+
readonly viscosity: {
|
|
3005
|
+
readonly type: "number";
|
|
3006
|
+
readonly precision: 1;
|
|
3007
|
+
readonly default: number;
|
|
3008
|
+
};
|
|
3009
|
+
readonly thermalConductivity: {
|
|
3010
|
+
readonly type: "number";
|
|
3011
|
+
readonly precision: 1;
|
|
3012
|
+
readonly default: number;
|
|
3013
|
+
};
|
|
3014
|
+
readonly stressStrainCurve: {
|
|
3015
|
+
readonly type: "object";
|
|
3016
|
+
readonly layout: "packed";
|
|
3017
|
+
readonly properties: {
|
|
3018
|
+
readonly tensileYieldStrainStress: {
|
|
3019
|
+
readonly type: "array";
|
|
3020
|
+
readonly items: {
|
|
3021
|
+
readonly type: "number";
|
|
3022
|
+
readonly precision: 1;
|
|
3023
|
+
readonly default: number;
|
|
3024
|
+
};
|
|
3025
|
+
readonly minItems: 2;
|
|
3026
|
+
readonly maxItems: 2;
|
|
3027
|
+
readonly default: readonly [0, 0];
|
|
3028
|
+
};
|
|
3029
|
+
readonly tensileFractureStrainStress: {
|
|
3030
|
+
readonly type: "array";
|
|
3031
|
+
readonly items: {
|
|
3032
|
+
readonly type: "number";
|
|
3033
|
+
readonly precision: 1;
|
|
3034
|
+
readonly default: number;
|
|
3035
|
+
};
|
|
3036
|
+
readonly minItems: 2;
|
|
3037
|
+
readonly maxItems: 2;
|
|
3038
|
+
readonly default: readonly [0, 0];
|
|
3039
|
+
};
|
|
3040
|
+
readonly compressiveYieldStrainStress: {
|
|
3041
|
+
readonly type: "array";
|
|
3042
|
+
readonly items: {
|
|
3043
|
+
readonly type: "number";
|
|
3044
|
+
readonly precision: 1;
|
|
3045
|
+
readonly default: number;
|
|
3046
|
+
};
|
|
3047
|
+
readonly minItems: 2;
|
|
3048
|
+
readonly maxItems: 2;
|
|
3049
|
+
readonly default: readonly [0, 0];
|
|
3050
|
+
};
|
|
3051
|
+
readonly compressiveFractureStrainStress: {
|
|
3052
|
+
readonly type: "array";
|
|
3053
|
+
readonly items: {
|
|
3054
|
+
readonly type: "number";
|
|
3055
|
+
readonly precision: 1;
|
|
3056
|
+
readonly default: number;
|
|
3057
|
+
};
|
|
3058
|
+
readonly minItems: 2;
|
|
3059
|
+
readonly maxItems: 2;
|
|
3060
|
+
readonly default: readonly [0, 0];
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
readonly required: readonly ["tensileYieldStrainStress", "tensileFractureStrainStress", "compressiveYieldStrainStress", "compressiveFractureStrainStress"];
|
|
3064
|
+
};
|
|
3065
|
+
readonly baseColorFactor: {
|
|
3066
|
+
readonly type: "array";
|
|
3067
|
+
readonly items: {
|
|
3068
|
+
readonly type: "number";
|
|
3069
|
+
readonly precision: 1;
|
|
3070
|
+
readonly default: number;
|
|
3071
|
+
};
|
|
3072
|
+
readonly minItems: 4;
|
|
3073
|
+
readonly maxItems: 4;
|
|
3074
|
+
readonly default: readonly [0, 0, 0, 0];
|
|
3075
|
+
};
|
|
3076
|
+
readonly emissiveFactor: {
|
|
3077
|
+
readonly type: "array";
|
|
3078
|
+
readonly items: {
|
|
3079
|
+
readonly type: "number";
|
|
3080
|
+
readonly precision: 1;
|
|
3081
|
+
readonly default: number;
|
|
3082
|
+
};
|
|
3083
|
+
readonly minItems: 3;
|
|
3084
|
+
readonly maxItems: 3;
|
|
3085
|
+
readonly default: readonly [0, 0, 0];
|
|
3086
|
+
};
|
|
3087
|
+
readonly metallicFactor: {
|
|
3088
|
+
readonly type: "number";
|
|
3089
|
+
readonly precision: 1;
|
|
3090
|
+
readonly default: number;
|
|
3091
|
+
};
|
|
3092
|
+
readonly roughnessFactor: {
|
|
3093
|
+
readonly type: "number";
|
|
3094
|
+
readonly precision: 1;
|
|
3095
|
+
readonly default: number;
|
|
3096
|
+
};
|
|
3097
|
+
readonly normalScale: {
|
|
3098
|
+
readonly type: "number";
|
|
3099
|
+
readonly precision: 1;
|
|
3100
|
+
readonly default: number;
|
|
3101
|
+
};
|
|
3102
|
+
readonly occlusionStrength: {
|
|
3103
|
+
readonly type: "number";
|
|
3104
|
+
readonly precision: 1;
|
|
3105
|
+
readonly default: number;
|
|
3106
|
+
};
|
|
3107
|
+
readonly irReflectance: {
|
|
3108
|
+
readonly type: "number";
|
|
3109
|
+
readonly precision: 1;
|
|
3110
|
+
readonly default: number;
|
|
3111
|
+
};
|
|
3112
|
+
readonly irEmission: {
|
|
3113
|
+
readonly type: "number";
|
|
3114
|
+
readonly precision: 1;
|
|
3115
|
+
readonly default: number;
|
|
3116
|
+
};
|
|
3117
|
+
readonly emissionMode: {
|
|
3118
|
+
readonly type: "integer";
|
|
3119
|
+
readonly minimum: 0;
|
|
3120
|
+
readonly maximum: 4294967295;
|
|
3121
|
+
readonly default: number;
|
|
3122
|
+
};
|
|
3123
|
+
readonly baseColorUrl: {
|
|
3124
|
+
readonly type: "string";
|
|
3125
|
+
};
|
|
3126
|
+
readonly metallicRoughnessUrl: {
|
|
3127
|
+
readonly type: "string";
|
|
3128
|
+
};
|
|
3129
|
+
readonly normalUrl: {
|
|
3130
|
+
readonly type: "string";
|
|
3131
|
+
};
|
|
3132
|
+
readonly occlusionUrl: {
|
|
3133
|
+
readonly type: "string";
|
|
3134
|
+
};
|
|
3135
|
+
readonly emissiveUrl: {
|
|
3136
|
+
readonly type: "string";
|
|
3137
|
+
};
|
|
3138
|
+
} & {
|
|
3139
|
+
readonly mesh: {
|
|
3140
|
+
readonly type: "integer";
|
|
3141
|
+
readonly minimum: -2147483648;
|
|
3142
|
+
readonly maximum: 2147483647;
|
|
3143
|
+
readonly default: number;
|
|
3144
|
+
};
|
|
3145
|
+
readonly gltfUrl: {
|
|
838
3146
|
readonly type: "string";
|
|
839
3147
|
};
|
|
840
|
-
readonly
|
|
3148
|
+
readonly shapeSpec: {
|
|
3149
|
+
readonly default: import("./shape/shape-spec.js").ShapeSpec | null;
|
|
3150
|
+
};
|
|
3151
|
+
readonly voxelVolumeSize: {
|
|
3152
|
+
readonly default: import("@adobe/data/math").Vec3 | null;
|
|
3153
|
+
};
|
|
3154
|
+
readonly localBounds: {
|
|
3155
|
+
readonly default: Aabb | null;
|
|
3156
|
+
};
|
|
3157
|
+
readonly skinJointTemplate: {
|
|
3158
|
+
readonly default: JointTemplate[];
|
|
3159
|
+
};
|
|
3160
|
+
readonly skinInverseBindMatrices: {
|
|
3161
|
+
readonly default: Float32Array | null;
|
|
3162
|
+
};
|
|
3163
|
+
readonly animationClipRefs: {
|
|
3164
|
+
readonly default: number[];
|
|
3165
|
+
};
|
|
3166
|
+
readonly cpuCollisionPositions: {
|
|
3167
|
+
readonly default: Float32Array | null;
|
|
3168
|
+
};
|
|
3169
|
+
readonly cpuCollisionIndices: {
|
|
3170
|
+
readonly default: Uint32Array | null;
|
|
3171
|
+
};
|
|
3172
|
+
readonly cpuSkin: {
|
|
3173
|
+
readonly default: {
|
|
3174
|
+
positions: Float32Array;
|
|
3175
|
+
joints: Uint32Array;
|
|
3176
|
+
weights: Float32Array;
|
|
3177
|
+
} | null;
|
|
3178
|
+
};
|
|
3179
|
+
} & {
|
|
3180
|
+
readonly _vertexBuffer: {
|
|
3181
|
+
readonly default: GPUBuffer | null;
|
|
3182
|
+
readonly nonPersistent: true;
|
|
3183
|
+
};
|
|
3184
|
+
readonly _skinVertexBuffer: {
|
|
3185
|
+
readonly default: GPUBuffer | null;
|
|
3186
|
+
readonly nonPersistent: true;
|
|
3187
|
+
};
|
|
3188
|
+
readonly _indexBuffer: {
|
|
3189
|
+
readonly default: GPUBuffer | null;
|
|
3190
|
+
readonly nonPersistent: true;
|
|
3191
|
+
};
|
|
3192
|
+
readonly _indexCount: {
|
|
3193
|
+
readonly nonPersistent: true;
|
|
3194
|
+
readonly type: "integer";
|
|
3195
|
+
readonly minimum: 0;
|
|
3196
|
+
readonly maximum: 4294967295;
|
|
3197
|
+
readonly default: number;
|
|
3198
|
+
};
|
|
3199
|
+
readonly _indexFormat: {
|
|
3200
|
+
readonly default: GPUIndexFormat;
|
|
3201
|
+
readonly nonPersistent: true;
|
|
3202
|
+
};
|
|
3203
|
+
readonly _materialBindGroup: {
|
|
3204
|
+
readonly default: GPUBindGroup | null;
|
|
3205
|
+
readonly nonPersistent: true;
|
|
3206
|
+
};
|
|
3207
|
+
readonly _mesh: {
|
|
3208
|
+
readonly nonPersistent: true;
|
|
3209
|
+
readonly type: "integer";
|
|
3210
|
+
readonly minimum: -2147483648;
|
|
3211
|
+
readonly maximum: 2147483647;
|
|
3212
|
+
readonly default: number;
|
|
3213
|
+
};
|
|
3214
|
+
readonly _material: {
|
|
3215
|
+
readonly nonPersistent: true;
|
|
3216
|
+
readonly type: "integer";
|
|
3217
|
+
readonly minimum: -2147483648;
|
|
3218
|
+
readonly maximum: 2147483647;
|
|
3219
|
+
readonly default: number;
|
|
3220
|
+
};
|
|
3221
|
+
readonly _nodeLocalMatrix: {
|
|
3222
|
+
readonly nonPersistent: true;
|
|
3223
|
+
readonly type: "array";
|
|
3224
|
+
readonly items: {
|
|
3225
|
+
readonly type: "number";
|
|
3226
|
+
readonly precision: 1;
|
|
3227
|
+
readonly default: number;
|
|
3228
|
+
};
|
|
3229
|
+
readonly minItems: 16;
|
|
3230
|
+
readonly maxItems: 16;
|
|
3231
|
+
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
3232
|
+
};
|
|
3233
|
+
readonly _skeletonModelRef: {
|
|
3234
|
+
readonly nonPersistent: true;
|
|
841
3235
|
readonly type: "integer";
|
|
842
3236
|
readonly minimum: -2147483648;
|
|
843
3237
|
readonly maximum: 2147483647;
|
|
844
3238
|
readonly default: number;
|
|
845
3239
|
};
|
|
3240
|
+
readonly _skeletonJointMatrixBindGroup: {
|
|
3241
|
+
readonly default: GPUBindGroup | null;
|
|
3242
|
+
readonly nonPersistent: true;
|
|
3243
|
+
};
|
|
846
3244
|
} & {
|
|
847
3245
|
readonly animationClipTracks: {
|
|
848
3246
|
readonly default: import("../../animation/animation-track/public.js")[];
|
|
@@ -873,9 +3271,11 @@ export declare const modelLoader: {
|
|
|
873
3271
|
};
|
|
874
3272
|
readonly animationLoop: {
|
|
875
3273
|
readonly type: "boolean";
|
|
3274
|
+
readonly default: boolean;
|
|
876
3275
|
};
|
|
877
3276
|
readonly animationPlaying: {
|
|
878
3277
|
readonly type: "boolean";
|
|
3278
|
+
readonly default: boolean;
|
|
879
3279
|
};
|
|
880
3280
|
readonly animationObservable: {
|
|
881
3281
|
readonly type: "boolean";
|
|
@@ -883,6 +3283,11 @@ export declare const modelLoader: {
|
|
|
883
3283
|
readonly default: true;
|
|
884
3284
|
};
|
|
885
3285
|
}>, import("@adobe/data/schema").FromSchemas<{} & {
|
|
3286
|
+
readonly _gltfMeshByUrl: {
|
|
3287
|
+
readonly default: Map<string, number> | null;
|
|
3288
|
+
readonly nonPersistent: true;
|
|
3289
|
+
};
|
|
3290
|
+
} & {
|
|
886
3291
|
readonly frameTime: {
|
|
887
3292
|
readonly default: import("../../../core/frame-time/public.js");
|
|
888
3293
|
readonly nonPersistent: true;
|
|
@@ -901,22 +3306,50 @@ export declare const modelLoader: {
|
|
|
901
3306
|
readonly nonPersistent: true;
|
|
902
3307
|
};
|
|
903
3308
|
}>, {} & {} & {
|
|
904
|
-
readonly _VisibleMaterial: readonly ["ephemeral", "_materialBindGroup", "_geometry"];
|
|
905
|
-
readonly _PbrPrimitive: readonly ["ephemeral", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_geometry", "_nodeLocalMatrix"];
|
|
906
|
-
} & {
|
|
907
3309
|
readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
|
|
908
3310
|
} & {} & {
|
|
909
|
-
readonly
|
|
910
|
-
|
|
3311
|
+
readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
|
|
3312
|
+
} & {
|
|
3313
|
+
readonly GltfMeshPending: readonly ["gltfUrl"];
|
|
3314
|
+
readonly ShapeMeshPending: readonly ["shapeSpec"];
|
|
3315
|
+
readonly StaticMesh: readonly ["localBounds"];
|
|
3316
|
+
readonly SkinnedMesh: readonly ["localBounds", "skinJointTemplate", "skinInverseBindMatrices", "animationClipRefs"];
|
|
3317
|
+
readonly MeshInstance: readonly ["mesh", "position", "rotation", "scale", "visible", "material"];
|
|
3318
|
+
readonly Model: readonly ["mesh", "position", "rotation", "scale", "visible", "parent"];
|
|
3319
|
+
} & {
|
|
3320
|
+
readonly _VisibleMaterial: readonly ["nonPersistent", "_materialBindGroup", "_mesh"];
|
|
3321
|
+
readonly _PbrPrimitive: readonly ["nonPersistent", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_mesh", "_nodeLocalMatrix"];
|
|
911
3322
|
} & {
|
|
912
3323
|
readonly AnimationClip: readonly ["animationClipTracks", "animationClipDuration"];
|
|
913
3324
|
readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
|
|
914
3325
|
readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
|
|
915
|
-
} & {}, {} & {} & {
|
|
3326
|
+
} & {}, {} & {} & {
|
|
3327
|
+
readonly nodeChildrenOf: {
|
|
3328
|
+
readonly key: "parent";
|
|
3329
|
+
readonly archetype: "Node";
|
|
3330
|
+
};
|
|
3331
|
+
} & {} & {
|
|
3332
|
+
readonly materialByName: {
|
|
3333
|
+
readonly key: "name";
|
|
3334
|
+
readonly unique: true;
|
|
3335
|
+
readonly archetype: "Material";
|
|
3336
|
+
};
|
|
3337
|
+
} & {} & {} & {} & {} & {}>, args: LoadedArgs) => void;
|
|
916
3338
|
};
|
|
917
3339
|
readonly systems: import("@adobe/data/ecs").SystemDeclarations<"transformCreateWorldMatrix" | "transformSystem" | "update" | "_frameTime" | "schedulerSystem" | "input" | "preUpdate" | "postUpdate" | "physics" | "preRender" | "render" | "postRender" | "animationSampleSystem" | "modelLoadSystem">;
|
|
918
3340
|
readonly actions: {};
|
|
919
3341
|
readonly services: {};
|
|
920
3342
|
readonly computed: {};
|
|
921
|
-
readonly indexes: {} & {
|
|
3343
|
+
readonly indexes: {} & {
|
|
3344
|
+
readonly nodeChildrenOf: {
|
|
3345
|
+
readonly key: "parent";
|
|
3346
|
+
readonly archetype: "Node";
|
|
3347
|
+
};
|
|
3348
|
+
} & {} & {
|
|
3349
|
+
readonly materialByName: {
|
|
3350
|
+
readonly key: "name";
|
|
3351
|
+
readonly unique: true;
|
|
3352
|
+
readonly archetype: "Material";
|
|
3353
|
+
};
|
|
3354
|
+
} & {} & {} & {} & {} & {} & {};
|
|
922
3355
|
};
|