@luma.gl/engine 10.0.0-alpha.9 → 10.0.0-beta.2
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/LICENSE +4 -4
- package/THIRD-PARTY-NOTICES.md +185 -0
- package/dist/animation/deform-positions.d.ts +1 -1
- package/dist/animation/deform-positions.d.ts.map +1 -1
- package/dist/animation/node-animation-binding.cjs +10 -0
- package/dist/animation/node-animation-binding.d.ts +1 -1
- package/dist/animation/node-animation-binding.d.ts.map +1 -1
- package/dist/animation/node-animation-binding.js +10 -0
- package/dist/animation/node-animation-binding.js.map +1 -1
- package/dist/animation/skin.cjs +4 -4
- package/dist/animation/skin.d.ts +1 -1
- package/dist/animation/skin.d.ts.map +1 -1
- package/dist/animation/skin.js +1 -1
- package/dist/animation/skin.js.map +1 -1
- package/dist/animation/texture-transform.cjs +7 -7
- package/dist/animation/texture-transform.js +1 -1
- package/dist/animation/texture-transform.js.map +1 -1
- package/dist/arrow/arrow-mesh-types.d.ts +1 -1
- package/dist/arrow/arrow-mesh-types.d.ts.map +1 -1
- package/dist/arrow/index.cjs.map +2 -2
- package/dist/arrow/renderers/path/conversion/arrow-path-storage-gpu-vectors.cjs +2 -2
- package/dist/arrow/renderers/path/conversion/arrow-path-storage-gpu-vectors.d.ts +1 -1
- package/dist/arrow/renderers/path/conversion/arrow-path-storage-gpu-vectors.js +1 -1
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.cjs +14 -15
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.d.ts.map +1 -1
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.js +23 -18
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.js.map +1 -1
- package/dist/arrow/renderers/text/renderers/arrow-text-shaders.cjs +1 -1
- package/dist/arrow/renderers/text/renderers/arrow-text-shaders.js +1 -1
- package/dist/arrow/renderers/text/renderers/arrow-text-shaders.js.map +1 -1
- package/dist/audio/audio-controller.cjs +6 -6
- package/dist/audio/audio-controller.d.ts +1 -1
- package/dist/audio/audio-controller.d.ts.map +1 -1
- package/dist/audio/audio-controller.js +1 -1
- package/dist/audio/audio-controller.js.map +1 -1
- package/dist/audio/audio-environment.cjs +6 -6
- package/dist/audio/audio-environment.d.ts +1 -1
- package/dist/audio/audio-environment.d.ts.map +1 -1
- package/dist/audio/audio-environment.js +1 -1
- package/dist/audio/audio-environment.js.map +1 -1
- package/dist/compute/computation.cjs +1 -1
- package/dist/compute/computation.d.ts +1 -1
- package/dist/compute/computation.d.ts.map +1 -1
- package/dist/compute/computation.js +1 -1
- package/dist/compute/computation.js.map +1 -1
- package/dist/compute/swap.d.ts +2 -2
- package/dist/compute/swap.d.ts.map +1 -1
- package/dist/compute/swap.js.map +1 -1
- package/dist/debug/pixel-data-utils.d.ts +1 -1
- package/dist/debug/pixel-data-utils.d.ts.map +1 -1
- package/dist/dist.dev.js +1087 -570
- package/dist/dist.min.js +74 -67
- package/dist/dynamic-texture/video-texture.cjs +1 -1
- package/dist/dynamic-texture/video-texture.d.ts +3 -3
- package/dist/dynamic-texture/video-texture.d.ts.map +1 -1
- package/dist/dynamic-texture/video-texture.js +1 -1
- package/dist/dynamic-texture/video-texture.js.map +1 -1
- package/dist/effects/index.cjs.map +1 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.js +2 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/denoise.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/denoise.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/denoise.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/huesaturation.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/huesaturation.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/huesaturation.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vibrance.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vibrance.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/vibrance.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vignette.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vignette.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/vignette.js.map +1 -1
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.d.ts +1 -1
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.d.ts +1 -1
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/gtao.cjs +4 -4
- package/dist/effects/passes/screen-space/gtao.d.ts +1 -1
- package/dist/effects/passes/screen-space/gtao.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/gtao.js +1 -1
- package/dist/effects/passes/screen-space/gtao.js.map +1 -1
- package/dist/effects/passes/screen-space/height-fog.d.ts +1 -1
- package/dist/effects/passes/screen-space/height-fog.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-global-illumination.d.ts +1 -1
- package/dist/effects/passes/screen-space/screen-space-global-illumination.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/ssr-camera-temporal.d.ts +1 -1
- package/dist/effects/passes/screen-space/ssr-camera-temporal.d.ts.map +1 -1
- package/dist/experimental/controls/index.cjs +0 -3
- package/dist/experimental/controls/index.cjs.map +2 -2
- package/dist/experimental/controls/index.d.ts +0 -2
- package/dist/experimental/controls/index.d.ts.map +1 -1
- package/dist/experimental/controls/index.js +0 -1
- package/dist/experimental/controls/index.js.map +1 -1
- package/dist/experimental/webxr/webxr-input.d.ts +1 -1
- package/dist/experimental/webxr/webxr-input.d.ts.map +1 -1
- package/dist/experimental-controls.cjs +21 -0
- package/dist/experimental-controls.d.ts +2 -0
- package/dist/experimental-controls.d.ts.map +1 -0
- package/dist/experimental-controls.js +5 -0
- package/dist/experimental-controls.js.map +1 -0
- package/dist/experimental-materials.cjs +21 -0
- package/dist/experimental-materials.d.ts +2 -0
- package/dist/experimental-materials.d.ts.map +1 -0
- package/dist/experimental-materials.js +5 -0
- package/dist/experimental-materials.js.map +1 -0
- package/dist/experimental-textures.cjs +21 -0
- package/dist/experimental-textures.d.ts +2 -0
- package/dist/experimental-textures.d.ts.map +1 -0
- package/dist/experimental-textures.js +5 -0
- package/dist/experimental-textures.js.map +1 -0
- package/dist/{experimental/controls/orbit-controls.cjs → experimental-webxr.cjs} +5 -11
- package/dist/experimental-webxr.d.ts +2 -0
- package/dist/experimental-webxr.d.ts.map +1 -0
- package/dist/experimental-webxr.js +5 -0
- package/dist/experimental-webxr.js.map +1 -0
- package/dist/geometry/edge-geometry.d.ts +1 -1
- package/dist/geometry/edge-geometry.d.ts.map +1 -1
- package/dist/geometry/geometry-primitives.cjs +18 -17
- package/dist/geometry/geometry-primitives.d.ts +2 -2
- package/dist/geometry/geometry-primitives.d.ts.map +1 -1
- package/dist/geometry/geometry-primitives.js +3 -2
- package/dist/geometry/geometry-primitives.js.map +1 -1
- package/dist/geometry/geometry-table.d.ts +1 -1
- package/dist/geometry/geometry-table.d.ts.map +1 -1
- package/dist/geometry/geometry-utils.cjs +6 -6
- package/dist/geometry/geometry-utils.d.ts +2 -2
- package/dist/geometry/geometry-utils.d.ts.map +1 -1
- package/dist/geometry/geometry-utils.js +1 -1
- package/dist/geometry/geometry-utils.js.map +1 -1
- package/dist/geometry/geometry.cjs +2 -2
- package/dist/geometry/geometry.d.ts +4 -3
- package/dist/geometry/geometry.d.ts.map +1 -1
- package/dist/geometry/geometry.js +1 -1
- package/dist/geometry/geometry.js.map +1 -1
- package/dist/geometry/gpu-geometry.d.ts +1 -1
- package/dist/geometry/gpu-geometry.d.ts.map +1 -1
- package/dist/geometry/gpu-vector-geometry-adapter.d.ts +1 -1
- package/dist/geometry/gpu-vector-geometry-adapter.d.ts.map +1 -1
- package/dist/geometry/ring-geometry.cjs +6 -6
- package/dist/geometry/ring-geometry.d.ts +1 -1
- package/dist/geometry/ring-geometry.d.ts.map +1 -1
- package/dist/geometry/ring-geometry.js +2 -2
- package/dist/geometry/ring-geometry.js.map +1 -1
- package/dist/gltf/gltf/animations/animations.d.ts +1 -1
- package/dist/gltf/gltf/animations/animations.d.ts.map +1 -1
- package/dist/gltf/gltf/create-gltf-model.cjs +3 -0
- package/dist/gltf/gltf/create-gltf-model.d.ts +1 -1
- package/dist/gltf/gltf/create-gltf-model.d.ts.map +1 -1
- package/dist/gltf/gltf/create-gltf-model.js +4 -0
- package/dist/gltf/gltf/create-gltf-model.js.map +1 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.cjs +80 -12
- package/dist/gltf/gltf/create-scenegraph-from-gltf.d.ts +8 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.d.ts.map +1 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.js +82 -14
- package/dist/gltf/gltf/create-scenegraph-from-gltf.js.map +1 -1
- package/dist/gltf/gltf/gltf-animated-crowd.d.ts +2 -1
- package/dist/gltf/gltf/gltf-animated-crowd.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-animated-crowd.js.map +1 -1
- package/dist/gltf/gltf/gltf-billboard.cjs +6 -1
- package/dist/gltf/gltf/gltf-billboard.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-billboard.js +6 -1
- package/dist/gltf/gltf/gltf-billboard.js.map +1 -1
- package/dist/gltf/gltf/gltf-extension-support.cjs +2 -2
- package/dist/gltf/gltf/gltf-extension-support.js +2 -2
- package/dist/gltf/gltf/gltf-extension-support.js.map +1 -1
- package/dist/gltf/gltf/gltf-instancing.cjs +2 -2
- package/dist/gltf/gltf/gltf-instancing.d.ts +1 -1
- package/dist/gltf/gltf/gltf-instancing.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-instancing.js +1 -1
- package/dist/gltf/gltf/gltf-instancing.js.map +1 -1
- package/dist/gltf/gltf/gltf-lightmap.cjs +2 -2
- package/dist/gltf/gltf/gltf-lightmap.d.ts +1 -1
- package/dist/gltf/gltf/gltf-lightmap.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-lightmap.js +1 -1
- package/dist/gltf/gltf/gltf-lightmap.js.map +1 -1
- package/dist/gltf/index.cjs +2 -0
- package/dist/gltf/index.cjs.map +3 -3
- package/dist/gltf/index.d.ts +1 -1
- package/dist/gltf/index.d.ts.map +1 -1
- package/dist/gltf/index.js +1 -1
- package/dist/gltf/index.js.map +1 -1
- package/dist/gltf/parsers/parse-gltf-animations.cjs +8 -5
- package/dist/gltf/parsers/parse-gltf-animations.js +20 -5
- package/dist/gltf/parsers/parse-gltf-animations.js.map +1 -1
- package/dist/gltf/parsers/parse-gltf-lights.cjs +41 -77
- package/dist/gltf/parsers/parse-gltf-lights.d.ts +6 -2
- package/dist/gltf/parsers/parse-gltf-lights.d.ts.map +1 -1
- package/dist/gltf/parsers/parse-gltf-lights.js +35 -92
- package/dist/gltf/parsers/parse-gltf-lights.js.map +1 -1
- package/dist/gltf/parsers/parse-gltf-metadata.cjs +60 -0
- package/dist/gltf/parsers/parse-gltf-metadata.d.ts +5 -0
- package/dist/gltf/parsers/parse-gltf-metadata.d.ts.map +1 -0
- package/dist/gltf/parsers/parse-gltf-metadata.js +39 -0
- package/dist/gltf/parsers/parse-gltf-metadata.js.map +1 -0
- package/dist/gltf/parsers/parse-gltf.cjs +4 -1
- package/dist/gltf/parsers/parse-gltf.d.ts +10 -2
- package/dist/gltf/parsers/parse-gltf.d.ts.map +1 -1
- package/dist/gltf/parsers/parse-gltf.js +3 -0
- package/dist/gltf/parsers/parse-gltf.js.map +1 -1
- package/dist/gltf/parsers/parse-pbr-material.cjs +40 -30
- package/dist/gltf/parsers/parse-pbr-material.d.ts +7 -2
- package/dist/gltf/parsers/parse-pbr-material.d.ts.map +1 -1
- package/dist/gltf/parsers/parse-pbr-material.js +18 -6
- package/dist/gltf/parsers/parse-pbr-material.js.map +1 -1
- package/dist/gltf/pbr/pbr-environment.cjs +21 -3
- package/dist/gltf/pbr/pbr-environment.d.ts +3 -0
- package/dist/gltf/pbr/pbr-environment.d.ts.map +1 -1
- package/dist/gltf/pbr/pbr-environment.js +19 -1
- package/dist/gltf/pbr/pbr-environment.js.map +1 -1
- package/dist/gltf/pbr/pbr-material.d.ts +3 -3
- package/dist/gltf/pbr/pbr-material.d.ts.map +1 -1
- package/dist/gltf/physics/export-state.cjs +8 -8
- package/dist/gltf/physics/export-state.js +1 -1
- package/dist/gltf/physics/export-state.js.map +1 -1
- package/dist/gltf/physics/index.cjs.map +2 -2
- package/dist/gltf/physics/mesh-snapshot.cjs +3 -3
- package/dist/gltf/physics/mesh-snapshot.js +1 -1
- package/dist/gltf/physics/mesh-snapshot.js.map +1 -1
- package/dist/gltf/physics/node-collision-geometry.cjs +3 -3
- package/dist/gltf/physics/node-collision-geometry.js +1 -1
- package/dist/gltf/physics/node-collision-geometry.js.map +1 -1
- package/dist/gltf/physics/parse-gltf-physics.cjs +10 -10
- package/dist/gltf/physics/parse-gltf-physics.js +1 -1
- package/dist/gltf/physics/parse-gltf-physics.js.map +1 -1
- package/dist/gltf/physics/parse-physics-joints.cjs +3 -3
- package/dist/gltf/physics/parse-physics-joints.d.ts +1 -1
- package/dist/gltf/physics/parse-physics-joints.d.ts.map +1 -1
- package/dist/gltf/physics/parse-physics-joints.js +1 -1
- package/dist/gltf/physics/parse-physics-joints.js.map +1 -1
- package/dist/gltf/physics/property-bindings.cjs +4 -4
- package/dist/gltf/physics/property-bindings.js +1 -1
- package/dist/gltf/physics/property-bindings.js.map +1 -1
- package/dist/gltf/types/gltf-json-schema.d.ts.map +1 -1
- package/dist/gltf/types/gltf-json-schema.js +1 -0
- package/dist/gltf/types/gltf-json-schema.js.map +1 -1
- package/dist/gltf/types/gltf-postprocessed-schema.d.ts.map +1 -1
- package/dist/gltf/types/gltf-postprocessed-schema.js +1 -0
- package/dist/gltf/types/gltf-postprocessed-schema.js.map +1 -1
- package/dist/graph/models/index.cjs.map +2 -2
- package/dist/graph/models/path/path-attribute-model.cjs +4 -1
- package/dist/graph/models/path/path-attribute-model.d.ts +3 -1
- package/dist/graph/models/path/path-attribute-model.d.ts.map +1 -1
- package/dist/graph/models/path/path-attribute-model.js +6 -1
- package/dist/graph/models/path/path-attribute-model.js.map +1 -1
- package/dist/graph/models/path/path-storage-model.cjs +12 -9
- package/dist/graph/models/path/path-storage-model.d.ts +4 -2
- package/dist/graph/models/path/path-storage-model.d.ts.map +1 -1
- package/dist/graph/models/path/path-storage-model.js +8 -3
- package/dist/graph/models/path/path-storage-model.js.map +1 -1
- package/dist/graph/models/polygon/polygon-attribute-model.cjs +4 -4
- package/dist/graph/models/polygon/polygon-attribute-model.d.ts +1 -1
- package/dist/graph/models/polygon/polygon-attribute-model.js +1 -1
- package/dist/graph/models/polygon/polygon-shaders.d.ts +1 -1
- package/dist/graph/models/polygon/polygon-storage-model.cjs +4 -4
- package/dist/graph/models/polygon/polygon-storage-model.d.ts +1 -1
- package/dist/graph/models/polygon/polygon-storage-model.js +1 -1
- package/dist/graph/physics/index.cjs.map +2 -2
- package/dist/graph/physics/index.d.ts +1 -1
- package/dist/graph/physics/index.d.ts.map +1 -1
- package/dist/graph/physics/physics-controller-geometry.cjs +8 -8
- package/dist/graph/physics/physics-controller-geometry.js +2 -2
- package/dist/graph/physics/physics-controller-geometry.js.map +1 -1
- package/dist/graph/physics/physics-controller.cjs +106 -0
- package/dist/graph/physics/physics-controller.d.ts +41 -3
- package/dist/graph/physics/physics-controller.d.ts.map +1 -1
- package/dist/graph/physics/physics-controller.js +106 -0
- package/dist/graph/physics/physics-controller.js.map +1 -1
- package/dist/graph/physics/physics-scenegraph.cjs +4 -4
- package/dist/graph/physics/physics-scenegraph.d.ts +1 -1
- package/dist/graph/physics/physics-scenegraph.d.ts.map +1 -1
- package/dist/graph/physics/physics-scenegraph.js +1 -1
- package/dist/graph/physics/physics-scenegraph.js.map +1 -1
- package/dist/graph/physics/scenegraph-instance.cjs +16 -2
- package/dist/graph/physics/scenegraph-instance.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-instance.js +17 -1
- package/dist/graph/physics/scenegraph-instance.js.map +1 -1
- package/dist/graph/physics/scenegraph-motion.cjs +7 -7
- package/dist/graph/physics/scenegraph-motion.d.ts +1 -1
- package/dist/graph/physics/scenegraph-motion.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-motion.js +1 -1
- package/dist/graph/physics/scenegraph-motion.js.map +1 -1
- package/dist/graph/physics/scenegraph-properties.cjs +3 -3
- package/dist/graph/physics/scenegraph-properties.js +1 -1
- package/dist/graph/physics/scenegraph-properties.js.map +1 -1
- package/dist/graph/physics/scenegraph-publication.cjs +5 -5
- package/dist/graph/physics/scenegraph-publication.d.ts +1 -1
- package/dist/graph/physics/scenegraph-publication.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-publication.js +1 -1
- package/dist/graph/physics/scenegraph-publication.js.map +1 -1
- package/dist/graph/tables/gpu-table-model.cjs +2 -2
- package/dist/graph/tables/gpu-table-model.d.ts +2 -1
- package/dist/graph/tables/gpu-table-model.d.ts.map +1 -1
- package/dist/graph/tables/gpu-table-model.js +2 -2
- package/dist/graph/tables/gpu-table-model.js.map +1 -1
- package/dist/graph/tables/index.cjs.map +2 -2
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/lighting/ambient-occlusion-pass.cjs +126 -0
- package/dist/lighting/ambient-occlusion-pass.d.ts +32 -0
- package/dist/lighting/ambient-occlusion-pass.d.ts.map +1 -0
- package/dist/lighting/ambient-occlusion-pass.js +108 -0
- package/dist/lighting/ambient-occlusion-pass.js.map +1 -0
- package/dist/lighting/clustered-light-grid.cjs +378 -0
- package/dist/lighting/clustered-light-grid.d.ts +94 -0
- package/dist/lighting/clustered-light-grid.d.ts.map +1 -0
- package/dist/lighting/clustered-light-grid.js +370 -0
- package/dist/lighting/clustered-light-grid.js.map +1 -0
- package/dist/lighting/contact-shadow-composite.cjs +80 -0
- package/dist/lighting/contact-shadow-composite.d.ts +6 -0
- package/dist/lighting/contact-shadow-composite.d.ts.map +1 -0
- package/dist/lighting/contact-shadow-composite.js +59 -0
- package/dist/lighting/contact-shadow-composite.js.map +1 -0
- package/dist/lighting/contact-shadow-pass.cjs +102 -0
- package/dist/lighting/contact-shadow-pass.d.ts +24 -0
- package/dist/lighting/contact-shadow-pass.d.ts.map +1 -0
- package/dist/lighting/contact-shadow-pass.js +85 -0
- package/dist/lighting/contact-shadow-pass.js.map +1 -0
- package/dist/lighting/index.cjs +128 -0
- package/dist/lighting/index.cjs.map +6 -0
- package/dist/lighting/index.d.ts +35 -0
- package/dist/lighting/index.d.ts.map +1 -0
- package/dist/lighting/index.js +22 -0
- package/dist/lighting/index.js.map +1 -0
- package/dist/lighting/lightmap-atlas.cjs +246 -0
- package/dist/lighting/lightmap-atlas.d.ts +53 -0
- package/dist/lighting/lightmap-atlas.d.ts.map +1 -0
- package/dist/lighting/lightmap-atlas.js +279 -0
- package/dist/lighting/lightmap-atlas.js.map +1 -0
- package/dist/lighting/lightmap-baker.cjs +238 -0
- package/dist/lighting/lightmap-baker.d.ts +62 -0
- package/dist/lighting/lightmap-baker.d.ts.map +1 -0
- package/dist/lighting/lightmap-baker.js +236 -0
- package/dist/lighting/lightmap-baker.js.map +1 -0
- package/dist/lighting/lightmap-data.cjs +117 -0
- package/dist/lighting/lightmap-data.d.ts +20 -0
- package/dist/lighting/lightmap-data.d.ts.map +1 -0
- package/dist/lighting/lightmap-data.js +110 -0
- package/dist/lighting/lightmap-data.js.map +1 -0
- package/dist/lighting/lightmap-environment.cjs +61 -0
- package/dist/lighting/lightmap-environment.d.ts +18 -0
- package/dist/lighting/lightmap-environment.d.ts.map +1 -0
- package/dist/lighting/lightmap-environment.js +46 -0
- package/dist/lighting/lightmap-environment.js.map +1 -0
- package/dist/lighting/pbr-environment.cjs +45 -0
- package/dist/lighting/pbr-environment.d.ts +25 -0
- package/dist/lighting/pbr-environment.d.ts.map +1 -0
- package/dist/lighting/pbr-environment.js +30 -0
- package/dist/lighting/pbr-environment.js.map +1 -0
- package/dist/lighting/pbr-material.cjs +75 -0
- package/dist/lighting/pbr-material.d.ts +33 -0
- package/dist/lighting/pbr-material.d.ts.map +1 -0
- package/dist/lighting/pbr-material.js +52 -0
- package/dist/lighting/pbr-material.js.map +1 -0
- package/dist/lighting/pbr-model.cjs +579 -0
- package/dist/lighting/pbr-model.d.ts +45 -0
- package/dist/lighting/pbr-model.d.ts.map +1 -0
- package/dist/lighting/pbr-model.js +545 -0
- package/dist/lighting/pbr-model.js.map +1 -0
- package/dist/lighting/pbr-surface-pass.cjs +116 -0
- package/dist/lighting/pbr-surface-pass.d.ts +35 -0
- package/dist/lighting/pbr-surface-pass.d.ts.map +1 -0
- package/dist/lighting/pbr-surface-pass.js +98 -0
- package/dist/lighting/pbr-surface-pass.js.map +1 -0
- package/dist/lighting/prefiltered-environment.cjs +275 -0
- package/dist/lighting/prefiltered-environment.d.ts +56 -0
- package/dist/lighting/prefiltered-environment.d.ts.map +1 -0
- package/dist/lighting/prefiltered-environment.js +264 -0
- package/dist/lighting/prefiltered-environment.js.map +1 -0
- package/dist/lighting/reflection-probe.cjs +321 -0
- package/dist/lighting/reflection-probe.d.ts +78 -0
- package/dist/lighting/reflection-probe.d.ts.map +1 -0
- package/dist/lighting/reflection-probe.js +298 -0
- package/dist/lighting/reflection-probe.js.map +1 -0
- package/dist/lighting/shadow-map-renderer.cjs +631 -0
- package/dist/lighting/shadow-map-renderer.d.ts +92 -0
- package/dist/lighting/shadow-map-renderer.d.ts.map +1 -0
- package/dist/lighting/shadow-map-renderer.js +622 -0
- package/dist/lighting/shadow-map-renderer.js.map +1 -0
- package/dist/lighting/shadow-quality.cjs +58 -0
- package/dist/lighting/shadow-quality.d.ts +13 -0
- package/dist/lighting/shadow-quality.d.ts.map +1 -0
- package/dist/lighting/shadow-quality.js +37 -0
- package/dist/lighting/shadow-quality.js.map +1 -0
- package/dist/material/material.cjs +3 -0
- package/dist/material/material.d.ts +2 -0
- package/dist/material/material.d.ts.map +1 -1
- package/dist/material/material.js +3 -0
- package/dist/material/material.js.map +1 -1
- package/dist/model/gpu-vector-model.cjs +20 -3
- package/dist/model/gpu-vector-model.d.ts +20 -2
- package/dist/model/gpu-vector-model.d.ts.map +1 -1
- package/dist/model/gpu-vector-model.js +21 -3
- package/dist/model/gpu-vector-model.js.map +1 -1
- package/dist/model/model.d.ts +1 -1
- package/dist/model/model.d.ts.map +1 -1
- package/dist/models/light-model-utils.cjs +4 -4
- package/dist/models/light-model-utils.d.ts +3 -2
- package/dist/models/light-model-utils.d.ts.map +1 -1
- package/dist/models/light-model-utils.js +3 -3
- package/dist/models/light-model-utils.js.map +1 -1
- package/dist/modules/picking/color-picking.d.ts +1 -1
- package/dist/modules/picking/index-color-picking.d.ts +1 -1
- package/dist/modules/picking/index-picking.d.ts +1 -1
- package/dist/modules/picking/legacy-color-picking.d.ts +1 -1
- package/dist/modules/picking/picking-uniforms.d.ts +1 -1
- package/dist/modules/picking/picking-uniforms.d.ts.map +1 -1
- package/dist/modules/picking/picking.d.ts +1 -1
- package/dist/scenegraph/controllers/area-light-controller.cjs +11 -11
- package/dist/scenegraph/controllers/area-light-controller.js +1 -1
- package/dist/scenegraph/controllers/area-light-controller.js.map +1 -1
- package/dist/scenegraph/controllers/billboard-controller.cjs +28 -28
- package/dist/scenegraph/controllers/billboard-controller.d.ts +2 -1
- package/dist/scenegraph/controllers/billboard-controller.d.ts.map +1 -1
- package/dist/scenegraph/controllers/billboard-controller.js +1 -1
- package/dist/scenegraph/controllers/billboard-controller.js.map +1 -1
- package/dist/scenegraph/controllers/joint-controller.cjs +5 -5
- package/dist/scenegraph/controllers/joint-controller.js +1 -1
- package/dist/scenegraph/controllers/joint-controller.js.map +1 -1
- package/dist/scenegraph/controllers/punctual-light-controller.cjs +121 -0
- package/dist/scenegraph/controllers/punctual-light-controller.d.ts +31 -0
- package/dist/scenegraph/controllers/punctual-light-controller.d.ts.map +1 -0
- package/dist/scenegraph/controllers/punctual-light-controller.js +117 -0
- package/dist/scenegraph/controllers/punctual-light-controller.js.map +1 -0
- package/dist/scenegraph/controllers/skin-controller.cjs +2 -2
- package/dist/scenegraph/controllers/skin-controller.js +1 -1
- package/dist/scenegraph/controllers/skin-controller.js.map +1 -1
- package/dist/scenegraph/group-node.cjs +14 -14
- package/dist/scenegraph/group-node.d.ts +2 -2
- package/dist/scenegraph/group-node.d.ts.map +1 -1
- package/dist/scenegraph/group-node.js +1 -1
- package/dist/scenegraph/group-node.js.map +1 -1
- package/dist/scenegraph/model-node.d.ts +1 -1
- package/dist/scenegraph/model-node.d.ts.map +1 -1
- package/dist/scenegraph/physics-transforms.cjs +2 -2
- package/dist/scenegraph/physics-transforms.d.ts +1 -1
- package/dist/scenegraph/physics-transforms.d.ts.map +1 -1
- package/dist/scenegraph/physics-transforms.js +1 -1
- package/dist/scenegraph/physics-transforms.js.map +1 -1
- package/dist/scenegraph/scene-metadata.cjs +43 -0
- package/dist/scenegraph/scene-metadata.d.ts +9 -0
- package/dist/scenegraph/scene-metadata.d.ts.map +1 -0
- package/dist/scenegraph/scene-metadata.js +21 -0
- package/dist/scenegraph/scene-metadata.js.map +1 -0
- package/dist/scenegraph/scenegraph-bounds.cjs +3 -3
- package/dist/scenegraph/scenegraph-bounds.d.ts +1 -1
- package/dist/scenegraph/scenegraph-bounds.d.ts.map +1 -1
- package/dist/scenegraph/scenegraph-bounds.js +1 -1
- package/dist/scenegraph/scenegraph-bounds.js.map +1 -1
- package/dist/scenegraph/scenegraph-interaction.cjs +99 -0
- package/dist/scenegraph/scenegraph-interaction.d.ts +47 -0
- package/dist/scenegraph/scenegraph-interaction.d.ts.map +1 -0
- package/dist/scenegraph/scenegraph-interaction.js +79 -0
- package/dist/scenegraph/scenegraph-interaction.js.map +1 -0
- package/dist/scenegraph/scenegraph-node.cjs +17 -7
- package/dist/scenegraph/scenegraph-node.d.ts +12 -1
- package/dist/scenegraph/scenegraph-node.d.ts.map +1 -1
- package/dist/scenegraph/scenegraph-node.js +11 -1
- package/dist/scenegraph/scenegraph-node.js.map +1 -1
- package/dist/scenegraph/transform-source.d.ts +1 -1
- package/dist/scenegraph/transform-source.d.ts.map +1 -1
- package/dist/text/experimental.cjs.map +1 -1
- package/dist/text/fonts/atlas/text-utils.cjs +1 -1
- package/dist/text/fonts/atlas/text-utils.js +1 -1
- package/dist/text/fonts/atlas/text-utils.js.map +1 -1
- package/dist/text/fonts/index.cjs.map +1 -1
- package/dist/text/index.cjs +2 -0
- package/dist/text/index.cjs.map +2 -2
- package/dist/text/index.d.ts +1 -1
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.js +1 -1
- package/dist/text/index.js.map +1 -1
- package/dist/text/text-2d/index.cjs +3 -0
- package/dist/text/text-2d/index.d.ts +1 -0
- package/dist/text/text-2d/index.d.ts.map +1 -1
- package/dist/text/text-2d/index.js +1 -0
- package/dist/text/text-2d/index.js.map +1 -1
- package/dist/text/text-2d/model-utils/text-code-point-source.cjs +41 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.d.ts +8 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.d.ts.map +1 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.js +23 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.js.map +1 -0
- package/dist/text/text-2d/models/text-attribute-model.cjs +4 -1
- package/dist/text/text-2d/models/text-attribute-model.d.ts +3 -1
- package/dist/text/text-2d/models/text-attribute-model.d.ts.map +1 -1
- package/dist/text/text-2d/models/text-attribute-model.js +6 -1
- package/dist/text/text-2d/models/text-attribute-model.js.map +1 -1
- package/dist/text/text-2d/models/text-dictionary-model.cjs +4 -1
- package/dist/text/text-2d/models/text-dictionary-model.d.ts +3 -1
- package/dist/text/text-2d/models/text-dictionary-model.d.ts.map +1 -1
- package/dist/text/text-2d/models/text-dictionary-model.js +6 -1
- package/dist/text/text-2d/models/text-dictionary-model.js.map +1 -1
- package/dist/text/text-2d/models/text-storage-model.cjs +4 -1
- package/dist/text/text-2d/models/text-storage-model.d.ts +3 -1
- package/dist/text/text-2d/models/text-storage-model.d.ts.map +1 -1
- package/dist/text/text-2d/models/text-storage-model.js +6 -1
- package/dist/text/text-2d/models/text-storage-model.js.map +1 -1
- package/dist/text/text-3d/extrude.cjs +15 -15
- package/dist/text/text-3d/extrude.js +1 -1
- package/dist/text/text-3d/extrude.js.map +1 -1
- package/dist/text/text-3d/index.cjs.map +2 -2
- package/dist/text/text-3d/paths/curves.cjs +5 -5
- package/dist/text/text-3d/paths/curves.d.ts +1 -1
- package/dist/text/text-3d/paths/curves.d.ts.map +1 -1
- package/dist/text/text-3d/paths/curves.js +1 -1
- package/dist/text/text-3d/paths/curves.js.map +1 -1
- package/dist/text/text-3d/paths/path.cjs +5 -5
- package/dist/text/text-3d/paths/path.d.ts +1 -1
- package/dist/text/text-3d/paths/path.d.ts.map +1 -1
- package/dist/text/text-3d/paths/path.js +1 -1
- package/dist/text/text-3d/paths/path.js.map +1 -1
- package/dist/text/text-3d/paths/shape-path.d.ts +1 -1
- package/dist/text/text-3d/paths/shape-path.d.ts.map +1 -1
- package/dist/text/text-3d/paths/shape-utils.cjs +2 -2
- package/dist/text/text-3d/paths/shape-utils.d.ts +1 -1
- package/dist/text/text-3d/paths/shape-utils.d.ts.map +1 -1
- package/dist/text/text-3d/paths/shape-utils.js +1 -1
- package/dist/text/text-3d/paths/shape-utils.js.map +1 -1
- package/licenses/cesium.txt +207 -0
- package/licenses/deck-community.txt +19 -0
- package/licenses/deck.txt +19 -0
- package/licenses/glfx.txt +19 -0
- package/licenses/gltf-loader-ts.txt +21 -0
- package/licenses/magenta-font.txt +13 -0
- package/licenses/nvidia-fxaa.txt +25 -0
- package/licenses/philogl.txt +19 -0
- package/licenses/spark.txt +21 -0
- package/licenses/three.txt +21 -0
- package/package.json +21 -13
- package/src/animation/deform-positions.ts +1 -1
- package/src/animation/node-animation-binding.ts +18 -1
- package/src/animation/skin.ts +2 -1
- package/src/animation/texture-transform.ts +1 -1
- package/src/arrow/arrow-geometry.ts +1 -1
- package/src/arrow/arrow-mesh-types.ts +1 -1
- package/src/arrow/renderers/path/conversion/arrow-path-storage-gpu-vectors.ts +1 -1
- package/src/arrow/renderers/polygon/renderers/arrow-polygon-renderer.ts +1 -1
- package/src/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.ts +24 -20
- package/src/arrow/renderers/text/renderers/arrow-text-shaders.ts +1 -1
- package/src/audio/audio-controller.ts +1 -1
- package/src/audio/audio-environment.ts +1 -1
- package/src/compute/computation.ts +2 -2
- package/src/compute/swap.ts +2 -2
- package/src/debug/pixel-data-utils.ts +1 -1
- package/src/dynamic-texture/video-texture.ts +9 -3
- package/src/effects/passes/postprocessing/fxaa/fxaa.ts +2 -1
- package/src/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/denoise.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/huesaturation.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/noise.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/sepia.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/vibrance.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/vignette.ts +2 -0
- package/src/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.ts +1 -1
- package/src/effects/passes/screen-space/clustered-volumetric-lighting.ts +1 -1
- package/src/effects/passes/screen-space/gtao.ts +1 -1
- package/src/effects/passes/screen-space/height-fog.ts +1 -1
- package/src/effects/passes/screen-space/screen-space-global-illumination.ts +1 -1
- package/src/effects/passes/screen-space/screen-space-reflections.ts +1 -1
- package/src/effects/passes/screen-space/ssr-camera-temporal.ts +1 -1
- package/src/experimental/controls/index.ts +0 -2
- package/src/experimental/webxr/webxr-input.ts +1 -1
- package/{dist/experimental/controls/orbit-controls.js → src/experimental-controls.ts} +2 -2
- package/src/experimental-materials.ts +5 -0
- package/src/experimental-textures.ts +5 -0
- package/src/experimental-webxr.ts +5 -0
- package/src/geometry/edge-geometry.ts +2 -2
- package/src/geometry/geometry-primitives.ts +6 -3
- package/src/geometry/geometry-table.ts +1 -1
- package/src/geometry/geometry-utils.ts +3 -3
- package/src/geometry/geometry.ts +7 -7
- package/src/geometry/gpu-geometry.ts +1 -1
- package/src/geometry/gpu-vector-geometry-adapter.ts +1 -1
- package/src/geometry/ring-geometry.ts +2 -2
- package/src/gltf/gltf/animations/animations.ts +8 -1
- package/src/gltf/gltf/create-gltf-model.ts +5 -1
- package/src/gltf/gltf/create-scenegraph-from-gltf.ts +98 -17
- package/src/gltf/gltf/gltf-animated-crowd.ts +2 -1
- package/src/gltf/gltf/gltf-billboard.ts +6 -1
- package/src/gltf/gltf/gltf-extension-support.ts +2 -2
- package/src/gltf/gltf/gltf-instancing.ts +1 -1
- package/src/gltf/gltf/gltf-lightmap.ts +1 -1
- package/src/gltf/index.ts +1 -0
- package/src/gltf/parsers/parse-gltf-animations.ts +22 -8
- package/src/gltf/parsers/parse-gltf-lights.ts +43 -131
- package/src/gltf/parsers/parse-gltf-metadata.ts +40 -0
- package/src/gltf/parsers/parse-gltf.ts +11 -2
- package/src/gltf/parsers/parse-pbr-material.ts +36 -8
- package/src/gltf/pbr/pbr-environment.ts +27 -1
- package/src/gltf/pbr/pbr-material.ts +8 -3
- package/src/gltf/physics/export-state.ts +1 -1
- package/src/gltf/physics/mesh-snapshot.ts +1 -1
- package/src/gltf/physics/node-collision-geometry.ts +1 -1
- package/src/gltf/physics/parse-gltf-physics.ts +1 -1
- package/src/gltf/physics/parse-physics-joints.ts +1 -1
- package/src/gltf/physics/property-bindings.ts +1 -1
- package/src/gltf/types/gltf-json-schema.ts +1 -0
- package/src/gltf/types/gltf-postprocessed-schema.ts +1 -0
- package/src/graph/models/path/path-attribute-model.ts +10 -1
- package/src/graph/models/path/path-storage-model.ts +13 -4
- package/src/graph/models/polygon/polygon-attribute-model.ts +1 -1
- package/src/graph/models/polygon/polygon-storage-model.ts +1 -1
- package/src/graph/physics/index.ts +1 -0
- package/src/graph/physics/physics-controller-geometry.ts +2 -2
- package/src/graph/physics/physics-controller.ts +155 -2
- package/src/graph/physics/physics-scenegraph.ts +1 -1
- package/src/graph/physics/scenegraph-instance.ts +27 -1
- package/src/graph/physics/scenegraph-motion.ts +1 -1
- package/src/graph/physics/scenegraph-properties.ts +1 -1
- package/src/graph/physics/scenegraph-publication.ts +1 -1
- package/src/graph/tables/gpu-table-model.ts +3 -2
- package/src/index.ts +17 -0
- package/src/lighting/ambient-occlusion-pass.ts +131 -0
- package/src/lighting/clustered-light-grid.ts +481 -0
- package/src/lighting/contact-shadow-composite.ts +67 -0
- package/src/lighting/contact-shadow-pass.ts +108 -0
- package/src/lighting/index.ts +125 -0
- package/src/lighting/lightmap-atlas.ts +348 -0
- package/src/lighting/lightmap-baker.ts +306 -0
- package/src/lighting/lightmap-data.ts +138 -0
- package/src/lighting/lightmap-environment.ts +70 -0
- package/src/lighting/pbr-environment.ts +55 -0
- package/src/lighting/pbr-material.ts +85 -0
- package/src/lighting/pbr-model.ts +608 -0
- package/src/lighting/pbr-surface-pass.ts +122 -0
- package/src/lighting/prefiltered-environment.ts +354 -0
- package/src/lighting/reflection-probe.ts +361 -0
- package/src/lighting/shadow-map-renderer.ts +918 -0
- package/src/lighting/shadow-quality.ts +50 -0
- package/src/material/material.ts +3 -0
- package/src/model/gpu-vector-model.ts +42 -4
- package/src/model/model.ts +1 -1
- package/src/models/light-model-utils.ts +5 -3
- package/src/modules/picking/legacy-picking-manager.ts +1 -1
- package/src/modules/picking/picking-uniforms.ts +1 -1
- package/src/scenegraph/controllers/area-light-controller.ts +1 -1
- package/src/scenegraph/controllers/billboard-controller.ts +2 -1
- package/src/scenegraph/controllers/joint-controller.ts +1 -1
- package/src/scenegraph/controllers/punctual-light-controller.ts +172 -0
- package/src/scenegraph/controllers/skin-controller.ts +1 -1
- package/src/scenegraph/group-node.ts +2 -2
- package/src/scenegraph/model-node.ts +1 -1
- package/src/scenegraph/physics-transforms.ts +1 -1
- package/src/scenegraph/scene-metadata.ts +23 -0
- package/src/scenegraph/scenegraph-bounds.ts +2 -2
- package/src/scenegraph/scenegraph-interaction.ts +131 -0
- package/src/scenegraph/scenegraph-node.ts +14 -1
- package/src/scenegraph/transform-source.ts +1 -1
- package/src/splats/README.md +1 -1
- package/src/text/fonts/atlas/text-utils.ts +1 -1
- package/src/text/index.ts +1 -0
- package/src/text/text-2d/index.ts +1 -0
- package/src/text/text-2d/model-utils/text-code-point-source.ts +34 -0
- package/src/text/text-2d/models/text-attribute-model.ts +10 -1
- package/src/text/text-2d/models/text-dictionary-model.ts +10 -1
- package/src/text/text-2d/models/text-storage-model.ts +10 -1
- package/src/text/text-3d/extrude.ts +1 -1
- package/src/text/text-3d/font.ts +1 -1
- package/src/text/text-3d/paths/curves.ts +1 -1
- package/src/text/text-3d/paths/path.ts +1 -1
- package/src/text/text-3d/paths/shape-path.ts +1 -1
- package/src/text/text-3d/paths/shape-utils.ts +2 -2
- package/dist/experimental/controls/orbit-controls.d.ts +0 -3
- package/dist/experimental/controls/orbit-controls.d.ts.map +0 -1
- package/dist/experimental/controls/orbit-controls.js.map +0 -1
- package/src/experimental/controls/orbit-controls.ts +0 -6
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {Device} from '@luma.gl/core';
|
|
6
6
|
import {GroupNode} from '@luma.gl/engine';
|
|
7
|
-
import {Matrix4} from '@math.gl/core';
|
|
7
|
+
import {Matrix4} from '@math.gl/core/matrix';
|
|
8
8
|
import {getGLTFNodeInstancing} from '../../../../gltf/gltf/gltf-instancing';
|
|
9
9
|
import {makeVector} from 'apache-arrow';
|
|
10
10
|
import type {GLTFPostprocessed} from '@luma.gl/engine/gltf';
|
|
@@ -65,23 +65,27 @@ export async function makeGPUSplatDataFromGLTFScene(
|
|
|
65
65
|
) {
|
|
66
66
|
throw new Error('Unsupported decoded glTF Gaussian splat primitive');
|
|
67
67
|
}
|
|
68
|
+
const result = descriptor.decoded;
|
|
69
|
+
const table =
|
|
70
|
+
result &&
|
|
71
|
+
typeof result === 'object' &&
|
|
72
|
+
'shape' in result &&
|
|
73
|
+
result.shape === 'arrow-table' &&
|
|
74
|
+
'data' in result
|
|
75
|
+
? result.data
|
|
76
|
+
: result;
|
|
68
77
|
if (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
!('
|
|
72
|
-
!(
|
|
73
|
-
|
|
78
|
+
!table ||
|
|
79
|
+
typeof table !== 'object' ||
|
|
80
|
+
!('batches' in table) ||
|
|
81
|
+
!Array.isArray(table.batches) ||
|
|
82
|
+
!('getChild' in table) ||
|
|
83
|
+
typeof table.getChild !== 'function'
|
|
74
84
|
) {
|
|
75
85
|
throw new Error('Decoded glTF splats require a Mesh Arrow table');
|
|
76
86
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
data: GPUSplatArrowTableLike;
|
|
80
|
-
};
|
|
81
|
-
if (!decoded.data || !Array.isArray(decoded.data.batches)) {
|
|
82
|
-
throw new Error('Decoded glTF splats require a Mesh Arrow table');
|
|
83
|
-
}
|
|
84
|
-
consumedSourceBatches = decoded.data.batches.length;
|
|
87
|
+
const decoded = table as GPUSplatArrowTableLike;
|
|
88
|
+
consumedSourceBatches = decoded.batches.length;
|
|
85
89
|
const declaredFeature = primitive.extensions?.EXT_mesh_features?.featureIds?.find(
|
|
86
90
|
(feature: {attribute?: number}) => feature.attribute !== undefined
|
|
87
91
|
);
|
|
@@ -102,11 +106,11 @@ export async function makeGPUSplatDataFromGLTFScene(
|
|
|
102
106
|
) {
|
|
103
107
|
throw new Error('glTF Gaussian splat feature IDs must be unsigned integers');
|
|
104
108
|
}
|
|
105
|
-
if (values.length !== decoded.
|
|
109
|
+
if (values.length !== decoded.numRows) {
|
|
106
110
|
throw new Error('glTF Gaussian splat feature-ID count does not match decoded splats');
|
|
107
111
|
}
|
|
108
112
|
let offset = 0;
|
|
109
|
-
const recordBatches = decoded.
|
|
113
|
+
const recordBatches = decoded.batches.map(recordBatch => {
|
|
110
114
|
const ids = values.subarray(offset, offset + recordBatch.numRows);
|
|
111
115
|
offset += recordBatch.numRows;
|
|
112
116
|
const vector = makeVector(ids);
|
|
@@ -118,12 +122,12 @@ export async function makeGPUSplatDataFromGLTFScene(
|
|
|
118
122
|
};
|
|
119
123
|
});
|
|
120
124
|
const table = {
|
|
121
|
-
numRows: decoded.
|
|
122
|
-
schema: decoded.
|
|
125
|
+
numRows: decoded.numRows,
|
|
126
|
+
schema: decoded.schema,
|
|
123
127
|
batches: recordBatches,
|
|
124
|
-
getChild: (name: string) => decoded.
|
|
128
|
+
getChild: (name: string) => decoded.getChild(name)
|
|
125
129
|
};
|
|
126
|
-
source =
|
|
130
|
+
source = table;
|
|
127
131
|
}
|
|
128
132
|
batches = makeGPUSplatDataFromArrow(device, source, {
|
|
129
133
|
sourceBatchIndex,
|
|
@@ -47,7 +47,7 @@ export function configureArrowTextShaderAssembler<ShaderAssemblerType extends Sh
|
|
|
47
47
|
return shaderAssembler;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
shaderAssembler.
|
|
50
|
+
shaderAssembler.addShaderInjectionTarget({
|
|
51
51
|
name: 'TEXT_ATTRIBUTE_VERTEX_TRANSFORM',
|
|
52
52
|
stage: 'vertex',
|
|
53
53
|
glsl: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import {assert} from '@luma.gl/core';
|
|
6
|
-
import {Matrix4, Vector3} from '@math.gl/core';
|
|
6
|
+
import {Matrix4, Vector3} from '@math.gl/core/matrix';
|
|
7
7
|
import type {GroupNode} from '../scenegraph/group-node';
|
|
8
8
|
import {AudioGraph, type AudioGraphDefinition} from './audio-graph';
|
|
9
9
|
import {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {Matrix4} from '@math.gl/core';
|
|
5
|
+
import {Matrix4} from '@math.gl/core/matrix';
|
|
6
6
|
import {assert} from '@luma.gl/core';
|
|
7
7
|
|
|
8
8
|
export type AudioEnvironmentZone = {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
ShaderAssembler
|
|
27
27
|
} from '@luma.gl/shaders';
|
|
28
28
|
import {WGSLShaderAssembler} from '@luma.gl/shaders/wgsl';
|
|
29
|
-
import type {TypedArray} from '@math.gl/core';
|
|
29
|
+
import type {TypedArray} from '@math.gl/core/types';
|
|
30
30
|
import {isUniformValue} from '../model/split-uniforms-and-bindings';
|
|
31
31
|
import {ShaderInputs} from '../shader-inputs';
|
|
32
32
|
import {
|
|
@@ -185,7 +185,7 @@ export class Computation {
|
|
|
185
185
|
|
|
186
186
|
const platformInfo = getPlatformInfo(device);
|
|
187
187
|
const resolvedPlugins = resolveShaderPlugins(this.props.plugins, platformInfo.shaderLanguage);
|
|
188
|
-
if (resolvedPlugins.
|
|
188
|
+
if (resolvedPlugins.injectionTargets.length > 0) {
|
|
189
189
|
throw new Error('Computation does not support ShaderPlugin render hooks');
|
|
190
190
|
}
|
|
191
191
|
if (
|
package/src/compute/swap.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import type {BufferProps, FramebufferProps} from '@luma.gl/core';
|
|
6
|
-
import {Device,
|
|
6
|
+
import {Device, DeviceResource, Buffer, Framebuffer, Texture} from '@luma.gl/core';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Helper class for working with repeated transformations / computations
|
|
@@ -11,7 +11,7 @@ import {Device, Resource, Buffer, Framebuffer, Texture} from '@luma.gl/core';
|
|
|
11
11
|
* @note the two resources are expected to be structurally identical (same size, length, format, etc)
|
|
12
12
|
* @note the two resources can be destroyed by calling `destroy()`
|
|
13
13
|
*/
|
|
14
|
-
export class Swap<T extends
|
|
14
|
+
export class Swap<T extends DeviceResource<any>> {
|
|
15
15
|
id: string;
|
|
16
16
|
|
|
17
17
|
/** The current resource - usually the source for renders or computations */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {TypedArray} from '@math.gl/core';
|
|
5
|
+
import {TypedArray} from '@math.gl/core/types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Flip rows (can be used on arrays returned from `Framebuffer.readPixels`)
|
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
Device,
|
|
7
|
+
ExternalTexture,
|
|
8
|
+
DeviceResourceProps,
|
|
9
|
+
Sampler,
|
|
10
|
+
SamplerProps
|
|
11
|
+
} from '@luma.gl/core';
|
|
6
12
|
import {Texture, assert} from '@luma.gl/core';
|
|
7
13
|
import {uid} from '../utils/uid';
|
|
8
14
|
import type {TextureBindingLayout, TextureBindingSource} from '@luma.gl/core/dynamic';
|
|
9
15
|
|
|
10
16
|
/** Properties for a live video binding source. */
|
|
11
|
-
export type VideoTextureProps = Pick<
|
|
17
|
+
export type VideoTextureProps = Pick<DeviceResourceProps, 'id'> & {
|
|
12
18
|
/** Caller-owned live video source followed by this binding source. */
|
|
13
19
|
source: HTMLVideoElement | VideoFrame;
|
|
14
20
|
/** Color space requested for copied or imported video data. */
|
|
@@ -62,7 +68,7 @@ export class VideoTexture implements TextureBindingSource {
|
|
|
62
68
|
return this._updateTimestamp;
|
|
63
69
|
}
|
|
64
70
|
|
|
65
|
-
/**
|
|
71
|
+
/** DeviceResource label used by debug output. */
|
|
66
72
|
get [Symbol.toStringTag]() {
|
|
67
73
|
return 'VideoTexture';
|
|
68
74
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
|
-
// Copyright (c) vis.gl contributors
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
|
|
4
5
|
|
|
5
6
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
7
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (C) 2011 by Evan Wallace
|
|
5
|
+
// Classic filter adapted from glfx.js; see the package THIRD-PARTY-NOTICES.md.
|
|
4
6
|
|
|
5
7
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (C) 2011 by Evan Wallace
|
|
5
|
+
// Classic filter adapted from glfx.js; see the package THIRD-PARTY-NOTICES.md.
|
|
4
6
|
|
|
5
7
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (C) 2011 by Evan Wallace
|
|
5
|
+
// Classic filter adapted from glfx.js; see the package THIRD-PARTY-NOTICES.md.
|
|
4
6
|
|
|
5
7
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (C) 2011 by Evan Wallace
|
|
5
|
+
// Classic filter adapted from glfx.js; see the package THIRD-PARTY-NOTICES.md.
|
|
4
6
|
|
|
5
7
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (C) 2011 by Evan Wallace
|
|
5
|
+
// Classic filter adapted from glfx.js; see the package THIRD-PARTY-NOTICES.md.
|
|
4
6
|
|
|
5
7
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (C) 2011 by Evan Wallace
|
|
5
|
+
// Classic filter adapted from glfx.js; see the package THIRD-PARTY-NOTICES.md.
|
|
4
6
|
|
|
5
7
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (C) 2011 by Evan Wallace
|
|
5
|
+
// Classic filter adapted from glfx.js; see the package THIRD-PARTY-NOTICES.md.
|
|
4
6
|
|
|
5
7
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
6
8
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {Texture} from '@luma.gl/core';
|
|
6
6
|
import type {ShaderPass, CompositeShaderPass} from '@luma.gl/shaders';
|
|
7
|
-
import type {NumberArray16} from '@math.gl/core';
|
|
7
|
+
import type {NumberArray16} from '@math.gl/core/types';
|
|
8
8
|
import {copyPass} from './copy-pass';
|
|
9
9
|
import {temporalHelpers} from './screen-space-shader-helpers';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {Buffer, Texture} from '@luma.gl/core';
|
|
6
6
|
import type {ShaderPass, CompositeShaderPass} from '@luma.gl/shaders';
|
|
7
|
-
import type {NumberArray3, NumberArray16} from '@math.gl/core';
|
|
7
|
+
import type {NumberArray3, NumberArray16} from '@math.gl/core/types';
|
|
8
8
|
import {depthAwareBlur} from './depth-aware-blur';
|
|
9
9
|
|
|
10
10
|
/** Construction options for clustered participating-media integration. */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {Texture} from '@luma.gl/core';
|
|
6
6
|
import type {ShaderPass, CompositeShaderPass} from '@luma.gl/shaders';
|
|
7
|
-
import {Matrix4} from '@math.gl/core';
|
|
7
|
+
import {Matrix4} from '@math.gl/core/matrix';
|
|
8
8
|
import {depthAwareBlur} from './depth-aware-blur';
|
|
9
9
|
|
|
10
10
|
/** Construction options for the horizon-based GTAO pipeline. */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {Texture} from '@luma.gl/core';
|
|
6
6
|
import type {ShaderPass, CompositeShaderPass} from '@luma.gl/shaders';
|
|
7
|
-
import type {NumberArray16} from '@math.gl/core';
|
|
7
|
+
import type {NumberArray16} from '@math.gl/core/types';
|
|
8
8
|
|
|
9
9
|
/** Construction options for temporally stabilized diffuse screen-space global illumination. */
|
|
10
10
|
export type SSGICompositeShaderPassOptions = {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {Texture} from '@luma.gl/core';
|
|
6
6
|
import type {ShaderPass, CompositeShaderPass} from '@luma.gl/shaders';
|
|
7
|
-
import type {NumberArray16} from '@math.gl/core';
|
|
7
|
+
import type {NumberArray16} from '@math.gl/core/types';
|
|
8
8
|
import {temporalHelpers} from './screen-space-shader-helpers';
|
|
9
9
|
import {
|
|
10
10
|
ssrCameraTemporal,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {Texture} from '@luma.gl/core';
|
|
6
6
|
import type {ShaderPass} from '@luma.gl/shaders';
|
|
7
|
-
import type {NumberArray16} from '@math.gl/core';
|
|
7
|
+
import type {NumberArray16} from '@math.gl/core/types';
|
|
8
8
|
import {temporalHelpers} from './screen-space-shader-helpers';
|
|
9
9
|
|
|
10
10
|
export type SSRCameraTemporalUniforms = {
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
export type {ComparisonSplitterProps} from './comparison-splitter';
|
|
6
6
|
export {ComparisonSplitter} from './comparison-splitter';
|
|
7
|
-
export type {OrbitControlsProps, OrbitPosition} from './orbit-controls';
|
|
8
|
-
export {OrbitControls} from './orbit-controls';
|
|
9
7
|
export type {
|
|
10
8
|
FlatControllerPick,
|
|
11
9
|
FlatControllerProps,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {NumberArray3} from '@math.gl/core';
|
|
5
|
+
import type {NumberArray3} from '@math.gl/core/types';
|
|
6
6
|
import type {WebXRInputState} from './webxr-manager';
|
|
7
7
|
|
|
8
8
|
/** Experimental v10 world-space target ray derived from one WebXR input source. */
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import {assert} from '@luma.gl/core';
|
|
6
|
-
import type {TypedArray} from '@math.gl/core';
|
|
7
|
-
import type {Geometry as MathGeometry} from '@math.gl/geometry';
|
|
6
|
+
import type {TypedArray} from '@math.gl/core/types';
|
|
7
|
+
import type {Geometry as MathGeometry} from '@math.gl/geometry/primitives';
|
|
8
8
|
import {Geometry, type GeometryAttribute} from './geometry';
|
|
9
9
|
|
|
10
10
|
export type MakeEdgeGeometryOptions = {
|
|
@@ -8,14 +8,17 @@ import {
|
|
|
8
8
|
IcoSphereGeometry as MathIcoSphereGeometry,
|
|
9
9
|
PlaneGeometry as MathPlaneGeometry,
|
|
10
10
|
TruncatedConeGeometry as MathTruncatedConeGeometry,
|
|
11
|
-
unpackIndexedGeometry,
|
|
12
11
|
type Geometry as MathGeometry,
|
|
13
12
|
type GeometryAttributeInput,
|
|
14
13
|
type SphereGeometryProps,
|
|
15
14
|
type IcoSphereGeometryProps,
|
|
16
15
|
type TruncatedConeGeometryProps
|
|
17
|
-
} from '@math.gl/geometry';
|
|
18
|
-
import {
|
|
16
|
+
} from '@math.gl/geometry/primitives';
|
|
17
|
+
import {unpackIndexedGeometry} from '@math.gl/geometry/processing';
|
|
18
|
+
import {
|
|
19
|
+
TorusGeometry as MathTorusGeometry,
|
|
20
|
+
type TorusGeometryProps
|
|
21
|
+
} from '@math.gl/geometry/primitives';
|
|
19
22
|
import {Geometry} from './geometry';
|
|
20
23
|
|
|
21
24
|
export type {TorusGeometryProps};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {TypedArray} from '@math.gl/core';
|
|
5
|
+
import type {TypedArray} from '@math.gl/core/types';
|
|
6
6
|
import type {VertexFormat} from '@luma.gl/core';
|
|
7
7
|
|
|
8
8
|
/** Holds one geometry */
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import type {BufferLayout, VertexFormat} from '@luma.gl/core';
|
|
6
6
|
import {vertexFormatDecoder} from '@luma.gl/core';
|
|
7
|
-
import type {TypedArray} from '@math.gl/core';
|
|
8
|
-
import type {Geometry as MathGeometry} from '@math.gl/geometry';
|
|
9
|
-
export {unpackIndexedGeometry} from '@math.gl/geometry';
|
|
7
|
+
import type {TypedArray} from '@math.gl/core/types';
|
|
8
|
+
import type {Geometry as MathGeometry} from '@math.gl/geometry/primitives';
|
|
9
|
+
export {unpackIndexedGeometry} from '@math.gl/geometry/processing';
|
|
10
10
|
import {Geometry, getGeometryShaderAttributeName, type GeometryAttribute} from './geometry';
|
|
11
11
|
|
|
12
12
|
type TypedArrayConstructor = {
|
package/src/geometry/geometry.ts
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Geometry as MathGeometry,
|
|
7
|
+
type GeometryProps as MathGeometryProps
|
|
8
|
+
} from '@math.gl/geometry/primitives';
|
|
6
9
|
import type {BufferLayout} from '@luma.gl/core';
|
|
7
10
|
import {vertexFormatDecoder} from '@luma.gl/core';
|
|
8
|
-
import type {GeometryAttribute} from '@math.gl/geometry';
|
|
11
|
+
import type {GeometryAttribute} from '@math.gl/geometry/primitives';
|
|
9
12
|
|
|
10
|
-
export type {
|
|
11
|
-
|
|
12
|
-
GeometryAttributeInput,
|
|
13
|
-
GeometryAttributes
|
|
14
|
-
} from '@math.gl/geometry';
|
|
13
|
+
export type {GeometryAttribute} from '@math.gl/geometry/primitives';
|
|
14
|
+
export type {GeometryAttributeInput, GeometryAttributes} from '@math.gl/geometry/primitives';
|
|
15
15
|
|
|
16
16
|
/** Legacy engine geometry properties, including caller-owned shader layout metadata. */
|
|
17
17
|
export type GeometryProps = MathGeometryProps & {bufferLayout?: BufferLayout[]};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type {PrimitiveTopology, BufferLayout} from '@luma.gl/core';
|
|
6
6
|
import {Device, Buffer} from '@luma.gl/core';
|
|
7
|
-
import type {Geometry} from '@math.gl/geometry';
|
|
7
|
+
import type {Geometry} from '@math.gl/geometry/primitives';
|
|
8
8
|
import {getBufferLayoutFromGeometryAttributes, getGeometryShaderAttributeName} from './geometry';
|
|
9
9
|
import {makeInterleavedGeometry} from './geometry-utils';
|
|
10
10
|
import {uid} from '../utils/uid';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import type {Device} from '@luma.gl/core';
|
|
6
|
-
import type {Geometry} from '@math.gl/geometry';
|
|
6
|
+
import type {Geometry} from '@math.gl/geometry/primitives';
|
|
7
7
|
import {vertexFormatDecoder} from '@luma.gl/core';
|
|
8
8
|
import type {GPUVectorModelInput} from '../model/gpu-vector-model-batches';
|
|
9
9
|
import {GPUGeometry, makeGPUGeometry} from './gpu-geometry';
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
PlaneGeometry as MathPlaneGeometry,
|
|
7
7
|
type Geometry as MathGeometry,
|
|
8
8
|
type GeometryAttributeInput
|
|
9
|
-
} from '@math.gl/geometry';
|
|
10
|
-
import {LatheGeometry} from '@math.gl/geometry';
|
|
9
|
+
} from '@math.gl/geometry/primitives';
|
|
10
|
+
import {LatheGeometry} from '@math.gl/geometry/primitives';
|
|
11
11
|
import {Geometry} from './geometry';
|
|
12
12
|
|
|
13
13
|
export type RingGeometryProps = {
|
|
@@ -13,7 +13,14 @@ export type GLTFAnimation = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/** Supported glTF animation target paths. */
|
|
16
|
-
export type GLTFAnimationPath =
|
|
16
|
+
export type GLTFAnimationPath =
|
|
17
|
+
| 'translation'
|
|
18
|
+
| 'rotation'
|
|
19
|
+
| 'scale'
|
|
20
|
+
| 'weights'
|
|
21
|
+
| 'visibility'
|
|
22
|
+
| 'selectable'
|
|
23
|
+
| 'hoverable';
|
|
17
24
|
|
|
18
25
|
/** Parsed glTF animation channel that targets a scenegraph node. */
|
|
19
26
|
export type GLTFNodeAnimationChannel = {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from '@luma.gl/engine';
|
|
27
27
|
import {DynamicTexture} from '@luma.gl/core/dynamic';
|
|
28
28
|
import {gpuAnimation, pbrMaterial, skin} from '@luma.gl/shaders';
|
|
29
|
-
import type {NumericArray} from '@math.gl/core';
|
|
29
|
+
import type {NumericArray} from '@math.gl/core/types';
|
|
30
30
|
import {type ParsedPBRMaterial} from '../pbr/pbr-material';
|
|
31
31
|
import type {GLTFCrowdGPUAnimationLayout} from './gltf-gpu-animation';
|
|
32
32
|
|
|
@@ -549,6 +549,10 @@ export function createGLTFMaterial(device: Device, options: CreateGLTFMaterialOp
|
|
|
549
549
|
|
|
550
550
|
const pbrMaterialProps = {...options.parsedPPBRMaterial.uniforms};
|
|
551
551
|
delete pbrMaterialProps.camera;
|
|
552
|
+
// Environment controls belong to the scene uniforms of each model, not to the material.
|
|
553
|
+
delete pbrMaterialProps.environmentIntensity;
|
|
554
|
+
delete pbrMaterialProps.environmentRotation;
|
|
555
|
+
delete pbrMaterialProps.environmentMipCount;
|
|
552
556
|
const materialBindings = Object.fromEntries(
|
|
553
557
|
Object.entries({
|
|
554
558
|
...pbrMaterialProps,
|