@luma.gl/engine 10.0.0-rc.1 → 10.0.0-rc.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/THIRD-PARTY-NOTICES.md +82 -0
- package/dist/animation/animation-track.d.ts +7 -0
- package/dist/animation/animation-track.d.ts.map +1 -1
- package/dist/animation/animation-track.js.map +1 -1
- package/dist/animation/node-animation-binding.cjs +1 -0
- package/dist/animation/node-animation-binding.d.ts +2 -1
- package/dist/animation/node-animation-binding.d.ts.map +1 -1
- package/dist/animation/node-animation-binding.js +6 -0
- package/dist/animation/node-animation-binding.js.map +1 -1
- package/dist/animation/scenegraph-gpu-animation-layout.cjs +99 -0
- package/dist/animation/scenegraph-gpu-animation-layout.d.ts +69 -0
- package/dist/animation/scenegraph-gpu-animation-layout.d.ts.map +1 -0
- package/dist/animation/scenegraph-gpu-animation-layout.js +90 -0
- package/dist/animation/scenegraph-gpu-animation-layout.js.map +1 -0
- package/dist/animation/scenegraph-gpu-animation.cjs +281 -0
- package/dist/animation/scenegraph-gpu-animation.d.ts +54 -0
- package/dist/animation/scenegraph-gpu-animation.d.ts.map +1 -0
- package/dist/animation/scenegraph-gpu-animation.js +274 -0
- package/dist/animation/scenegraph-gpu-animation.js.map +1 -0
- package/dist/arrow/arrow-picking.cjs +4 -3
- package/dist/arrow/arrow-picking.d.ts +15 -5
- package/dist/arrow/arrow-picking.d.ts.map +1 -1
- package/dist/arrow/arrow-picking.js +16 -5
- package/dist/arrow/arrow-picking.js.map +1 -1
- package/dist/arrow/index.cjs.map +1 -1
- package/dist/dist.dev.js +1671 -1105
- package/dist/dist.min.js +69 -70
- package/dist/effects/glfx-effects.cjs +261 -0
- package/dist/effects/glfx-effects.d.ts +959 -0
- package/dist/effects/glfx-effects.d.ts.map +1 -0
- package/dist/effects/glfx-effects.js +200 -0
- package/dist/effects/glfx-effects.js.map +1 -0
- package/dist/effects/graph/gpu-effect-operation.cjs +402 -0
- package/dist/effects/graph/gpu-effect-operation.d.ts +101 -0
- package/dist/effects/graph/gpu-effect-operation.d.ts.map +1 -0
- package/dist/effects/graph/gpu-effect-operation.js +410 -0
- package/dist/effects/graph/gpu-effect-operation.js.map +1 -0
- package/dist/effects/graph/temporal-graph-history.cjs +48 -0
- package/dist/effects/graph/temporal-graph-history.d.ts +17 -0
- package/dist/effects/graph/temporal-graph-history.d.ts.map +1 -0
- package/dist/effects/graph/temporal-graph-history.js +30 -0
- package/dist/effects/graph/temporal-graph-history.js.map +1 -0
- package/dist/effects/index.cjs +117 -30
- package/dist/effects/index.cjs.map +3 -3
- package/dist/effects/index.d.ts +34 -18
- package/dist/effects/index.d.ts.map +1 -1
- package/dist/effects/index.js +31 -18
- package/dist/effects/index.js.map +1 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.cjs +9 -2
- package/dist/effects/passes/postprocessing/fxaa/fxaa.d.ts +19 -0
- package/dist/effects/passes/postprocessing/fxaa/fxaa.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.js +6 -0
- package/dist/effects/passes/postprocessing/fxaa/fxaa.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/tone-mapping.cjs +9 -2
- package/dist/effects/passes/postprocessing/image-adjust-filters/tone-mapping.d.ts +41 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/tone-mapping.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/tone-mapping.js +6 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/tone-mapping.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.cjs +200 -13
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.d.ts +992 -6
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.js +199 -10
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-compute-pyramid.d.ts +3 -3
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-compute-pyramid.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-compute-pyramid.js.map +1 -1
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.cjs +41 -40
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.d.ts +116 -8
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.js +38 -37
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.js.map +1 -1
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.cjs +83 -66
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.d.ts +470 -2
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.js +80 -62
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.js.map +1 -1
- package/dist/effects/passes/screen-space/copy-pass.cjs +7 -0
- package/dist/effects/passes/screen-space/copy-pass.d.ts +1 -0
- package/dist/effects/passes/screen-space/copy-pass.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/copy-pass.js +4 -0
- package/dist/effects/passes/screen-space/copy-pass.js.map +1 -1
- package/dist/effects/passes/screen-space/depth-aware-blur.cjs +14 -5
- package/dist/effects/passes/screen-space/depth-aware-blur.d.ts +125 -17
- package/dist/effects/passes/screen-space/depth-aware-blur.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/depth-aware-blur.js +11 -3
- package/dist/effects/passes/screen-space/depth-aware-blur.js.map +1 -1
- package/dist/effects/passes/screen-space/dof.cjs +19 -3
- package/dist/effects/passes/screen-space/dof.d.ts +181 -0
- package/dist/effects/passes/screen-space/dof.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/dof.js +17 -3
- package/dist/effects/passes/screen-space/dof.js.map +1 -1
- package/dist/effects/passes/screen-space/gtao.cjs +82 -62
- package/dist/effects/passes/screen-space/gtao.d.ts +608 -3
- package/dist/effects/passes/screen-space/gtao.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/gtao.js +83 -60
- package/dist/effects/passes/screen-space/gtao.js.map +1 -1
- package/dist/effects/passes/screen-space/hdr-auto-exposure.cjs +103 -79
- package/dist/effects/passes/screen-space/hdr-auto-exposure.d.ts +225 -3
- package/dist/effects/passes/screen-space/hdr-auto-exposure.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/hdr-auto-exposure.js +102 -77
- package/dist/effects/passes/screen-space/hdr-auto-exposure.js.map +1 -1
- package/dist/effects/passes/screen-space/height-fog.cjs +14 -0
- package/dist/effects/passes/screen-space/height-fog.d.ts +71 -0
- package/dist/effects/passes/screen-space/height-fog.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/height-fog.js +16 -3
- package/dist/effects/passes/screen-space/height-fog.js.map +1 -1
- package/dist/effects/passes/screen-space/motion-blur.cjs +7 -8
- package/dist/effects/passes/screen-space/motion-blur.d.ts +41 -2
- package/dist/effects/passes/screen-space/motion-blur.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/motion-blur.js +6 -6
- package/dist/effects/passes/screen-space/motion-blur.js.map +1 -1
- package/dist/effects/passes/screen-space/outlines.cjs +143 -18
- package/dist/effects/passes/screen-space/outlines.d.ts +162 -3
- package/dist/effects/passes/screen-space/outlines.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/outlines.js +137 -15
- package/dist/effects/passes/screen-space/outlines.js.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-global-illumination.cjs +70 -61
- package/dist/effects/passes/screen-space/screen-space-global-illumination.d.ts +309 -2
- package/dist/effects/passes/screen-space/screen-space-global-illumination.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-global-illumination.js +69 -59
- package/dist/effects/passes/screen-space/screen-space-global-illumination.js.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.cjs +151 -83
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts +778 -7
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.js +148 -79
- package/dist/effects/passes/screen-space/screen-space-reflections.js.map +1 -1
- package/dist/effects/passes/screen-space/selection-outline.cjs +12 -2
- package/dist/effects/passes/screen-space/selection-outline.d.ts +44 -0
- package/dist/effects/passes/screen-space/selection-outline.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/selection-outline.js +9 -0
- package/dist/effects/passes/screen-space/selection-outline.js.map +1 -1
- package/dist/effects/passes/screen-space/ssao.cjs +66 -43
- package/dist/effects/passes/screen-space/ssao.d.ts +647 -2
- package/dist/effects/passes/screen-space/ssao.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/ssao.js +64 -41
- package/dist/effects/passes/screen-space/ssao.js.map +1 -1
- package/dist/effects/passes/screen-space/temporal-antialiasing.cjs +42 -30
- package/dist/effects/passes/screen-space/temporal-antialiasing.d.ts +107 -6
- package/dist/effects/passes/screen-space/temporal-antialiasing.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/temporal-antialiasing.js +40 -27
- package/dist/effects/passes/screen-space/temporal-antialiasing.js.map +1 -1
- package/dist/effects/passes/screen-space/temporal-frame.cjs +34 -0
- package/dist/effects/passes/screen-space/temporal-frame.d.ts +23 -0
- package/dist/effects/passes/screen-space/temporal-frame.d.ts.map +1 -0
- package/dist/effects/passes/screen-space/temporal-frame.js +16 -0
- package/dist/effects/passes/screen-space/temporal-frame.js.map +1 -0
- package/dist/effects/passes/screen-space/volumetric-fog.cjs +25 -22
- package/dist/effects/passes/screen-space/volumetric-fog.d.ts +161 -2
- package/dist/effects/passes/screen-space/volumetric-fog.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/volumetric-fog.js +27 -21
- package/dist/effects/passes/screen-space/volumetric-fog.js.map +1 -1
- package/dist/effects/temporal-upscale/index.cjs +40 -0
- package/dist/effects/temporal-upscale/index.d.ts +5 -0
- package/dist/effects/temporal-upscale/index.d.ts.map +1 -0
- package/dist/effects/temporal-upscale/index.js +6 -0
- package/dist/effects/temporal-upscale/index.js.map +1 -0
- package/dist/effects/temporal-upscale/temporal-math.cjs +202 -0
- package/dist/effects/temporal-upscale/temporal-math.d.ts +101 -0
- package/dist/effects/temporal-upscale/temporal-math.d.ts.map +1 -0
- package/dist/effects/temporal-upscale/temporal-math.js +202 -0
- package/dist/effects/temporal-upscale/temporal-math.js.map +1 -0
- package/dist/effects/temporal-upscale/temporal-upscale-shaders.cjs +353 -0
- package/dist/effects/temporal-upscale/temporal-upscale-shaders.d.ts +7 -0
- package/dist/effects/temporal-upscale/temporal-upscale-shaders.d.ts.map +1 -0
- package/dist/effects/temporal-upscale/temporal-upscale-shaders.js +321 -0
- package/dist/effects/temporal-upscale/temporal-upscale-shaders.js.map +1 -0
- package/dist/effects/temporal-upscale/temporal-upscaler.cjs +392 -0
- package/dist/effects/temporal-upscale/temporal-upscaler.d.ts +143 -0
- package/dist/effects/temporal-upscale/temporal-upscaler.d.ts.map +1 -0
- package/dist/effects/temporal-upscale/temporal-upscaler.js +385 -0
- package/dist/effects/temporal-upscale/temporal-upscaler.js.map +1 -0
- package/dist/gltf/gltf/create-gltf-model.cjs +34 -71
- package/dist/gltf/gltf/create-gltf-model.d.ts +3 -0
- package/dist/gltf/gltf/create-gltf-model.d.ts.map +1 -1
- package/dist/gltf/gltf/create-gltf-model.js +40 -74
- package/dist/gltf/gltf/create-gltf-model.js.map +1 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.cjs +46 -4
- package/dist/gltf/gltf/create-scenegraph-from-gltf.d.ts +9 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.d.ts.map +1 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.js +54 -4
- package/dist/gltf/gltf/create-scenegraph-from-gltf.js.map +1 -1
- package/dist/gltf/gltf/gltf-animated-crowd.cjs +25 -136
- package/dist/gltf/gltf/gltf-animated-crowd.d.ts +4 -8
- package/dist/gltf/gltf/gltf-animated-crowd.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-animated-crowd.js +27 -139
- package/dist/gltf/gltf/gltf-animated-crowd.js.map +1 -1
- package/dist/gltf/gltf/gltf-animation-nodes.cjs +84 -0
- package/dist/gltf/gltf/gltf-animation-nodes.d.ts +11 -0
- package/dist/gltf/gltf/gltf-animation-nodes.d.ts.map +1 -0
- package/dist/gltf/gltf/gltf-animation-nodes.js +62 -0
- package/dist/gltf/gltf/gltf-animation-nodes.js.map +1 -0
- package/dist/gltf/gltf/gltf-animator.cjs +8 -2
- package/dist/gltf/gltf/gltf-animator.d.ts +6 -1
- package/dist/gltf/gltf/gltf-animator.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-animator.js +10 -2
- package/dist/gltf/gltf/gltf-animator.js.map +1 -1
- package/dist/gltf/gltf/gltf-gpu-animation-controller.cjs +81 -0
- package/dist/gltf/gltf/gltf-gpu-animation-controller.d.ts +9 -0
- package/dist/gltf/gltf/gltf-gpu-animation-controller.d.ts.map +1 -0
- package/dist/gltf/gltf/gltf-gpu-animation-controller.js +67 -0
- package/dist/gltf/gltf/gltf-gpu-animation-controller.js.map +1 -0
- package/dist/gltf/gltf/gltf-gpu-animation.cjs +33 -28
- package/dist/gltf/gltf/gltf-gpu-animation.d.ts +7 -26
- package/dist/gltf/gltf/gltf-gpu-animation.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-gpu-animation.js +29 -28
- package/dist/gltf/gltf/gltf-gpu-animation.js.map +1 -1
- package/dist/gltf/index.cjs.map +3 -3
- package/dist/gltf/index.d.ts +2 -2
- package/dist/gltf/index.d.ts.map +1 -1
- package/dist/gltf/index.js.map +1 -1
- package/dist/gltf/parsers/parse-gltf.cjs +4 -2
- package/dist/gltf/parsers/parse-gltf.d.ts +3 -0
- package/dist/gltf/parsers/parse-gltf.d.ts.map +1 -1
- package/dist/gltf/parsers/parse-gltf.js +7 -2
- package/dist/gltf/parsers/parse-gltf.js.map +1 -1
- package/dist/graph/models/index.cjs.map +2 -2
- package/dist/graph/physics/index.cjs +5 -0
- package/dist/graph/physics/index.cjs.map +3 -3
- package/dist/graph/physics/index.d.ts +1 -0
- package/dist/graph/physics/index.d.ts.map +1 -1
- package/dist/graph/physics/index.js +1 -0
- package/dist/graph/physics/index.js.map +1 -1
- package/dist/graph/physics/physics-controller-geometry.cjs +21 -0
- package/dist/graph/physics/physics-controller-geometry.d.ts +8 -1
- package/dist/graph/physics/physics-controller-geometry.d.ts.map +1 -1
- package/dist/graph/physics/physics-controller-geometry.js +22 -0
- package/dist/graph/physics/physics-controller-geometry.js.map +1 -1
- package/dist/graph/physics/scenegraph-session.d.ts +1 -1
- package/dist/graph/physics/scenegraph-session.d.ts.map +1 -1
- package/dist/graph/tables/index.cjs.map +2 -2
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lighting/ambient-occlusion-pass.cjs +47 -28
- package/dist/lighting/ambient-occlusion-pass.d.ts +12 -0
- package/dist/lighting/ambient-occlusion-pass.d.ts.map +1 -1
- package/dist/lighting/ambient-occlusion-pass.js +45 -26
- package/dist/lighting/ambient-occlusion-pass.js.map +1 -1
- package/dist/lighting/clustered-light-grid.cjs +71 -20
- package/dist/lighting/clustered-light-grid.d.ts +37 -0
- package/dist/lighting/clustered-light-grid.d.ts.map +1 -1
- package/dist/lighting/clustered-light-grid.js +68 -18
- package/dist/lighting/clustered-light-grid.js.map +1 -1
- package/dist/lighting/contact-shadow-composite.cjs +72 -51
- package/dist/lighting/contact-shadow-composite.d.ts +274 -3
- package/dist/lighting/contact-shadow-composite.d.ts.map +1 -1
- package/dist/lighting/contact-shadow-composite.js +72 -50
- package/dist/lighting/contact-shadow-composite.js.map +1 -1
- package/dist/lighting/contact-shadow-pass.cjs +50 -39
- package/dist/lighting/contact-shadow-pass.d.ts +8 -0
- package/dist/lighting/contact-shadow-pass.d.ts.map +1 -1
- package/dist/lighting/contact-shadow-pass.js +47 -37
- package/dist/lighting/contact-shadow-pass.js.map +1 -1
- package/dist/lighting/cortao/cortao-occluder-lookup-table.cjs +96 -0
- package/dist/lighting/cortao/cortao-occluder-lookup-table.d.ts +41 -0
- package/dist/lighting/cortao/cortao-occluder-lookup-table.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-occluder-lookup-table.js +94 -0
- package/dist/lighting/cortao/cortao-occluder-lookup-table.js.map +1 -0
- package/dist/lighting/cortao/cortao-parameters.cjs +127 -0
- package/dist/lighting/cortao/cortao-parameters.d.ts +95 -0
- package/dist/lighting/cortao/cortao-parameters.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-parameters.js +122 -0
- package/dist/lighting/cortao/cortao-parameters.js.map +1 -0
- package/dist/lighting/cortao/cortao-pass.cjs +100 -0
- package/dist/lighting/cortao/cortao-pass.d.ts +33 -0
- package/dist/lighting/cortao/cortao-pass.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-pass.js +84 -0
- package/dist/lighting/cortao/cortao-pass.js.map +1 -0
- package/dist/lighting/cortao/cortao-passes.cjs +42 -0
- package/dist/lighting/cortao/cortao-passes.d.ts +38 -0
- package/dist/lighting/cortao/cortao-passes.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-passes.js +19 -0
- package/dist/lighting/cortao/cortao-passes.js.map +1 -0
- package/dist/lighting/cortao/cortao-shaders-wgsl.cjs +606 -0
- package/dist/lighting/cortao/cortao-shaders-wgsl.d.ts +49 -0
- package/dist/lighting/cortao/cortao-shaders-wgsl.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-shaders-wgsl.js +610 -0
- package/dist/lighting/cortao/cortao-shaders-wgsl.js.map +1 -0
- package/dist/lighting/cortao/cortao-shaders.cjs +667 -0
- package/dist/lighting/cortao/cortao-shaders.d.ts +118 -0
- package/dist/lighting/cortao/cortao-shaders.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-shaders.js +657 -0
- package/dist/lighting/cortao/cortao-shaders.js.map +1 -0
- package/dist/lighting/cortao/cortao-upsample.cjs +191 -0
- package/dist/lighting/cortao/cortao-upsample.d.ts +16 -0
- package/dist/lighting/cortao/cortao-upsample.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-upsample.js +159 -0
- package/dist/lighting/cortao/cortao-upsample.js.map +1 -0
- package/dist/lighting/cortao/cortao-webgl-passes.cjs +229 -0
- package/dist/lighting/cortao/cortao-webgl-passes.d.ts +28 -0
- package/dist/lighting/cortao/cortao-webgl-passes.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-webgl-passes.js +212 -0
- package/dist/lighting/cortao/cortao-webgl-passes.js.map +1 -0
- package/dist/lighting/cortao/cortao-webgpu-passes.cjs +348 -0
- package/dist/lighting/cortao/cortao-webgpu-passes.d.ts +31 -0
- package/dist/lighting/cortao/cortao-webgpu-passes.d.ts.map +1 -0
- package/dist/lighting/cortao/cortao-webgpu-passes.js +335 -0
- package/dist/lighting/cortao/cortao-webgpu-passes.js.map +1 -0
- package/dist/lighting/index.cjs +13 -2
- package/dist/lighting/index.cjs.map +3 -3
- package/dist/lighting/index.d.ts +11 -6
- package/dist/lighting/index.d.ts.map +1 -1
- package/dist/lighting/index.js +6 -5
- package/dist/lighting/index.js.map +1 -1
- package/dist/lighting/shadow-map-renderer.cjs +40 -37
- package/dist/lighting/shadow-map-renderer.d.ts +15 -0
- package/dist/lighting/shadow-map-renderer.d.ts.map +1 -1
- package/dist/lighting/shadow-map-renderer.js +37 -35
- package/dist/lighting/shadow-map-renderer.js.map +1 -1
- package/dist/model/gpu-vector-model.cjs +39 -16
- package/dist/model/gpu-vector-model.d.ts +8 -0
- package/dist/model/gpu-vector-model.d.ts.map +1 -1
- package/dist/model/gpu-vector-model.js +46 -18
- package/dist/model/gpu-vector-model.js.map +1 -1
- package/dist/passes/effect-renderer.cjs +155 -0
- package/dist/passes/effect-renderer.d.ts +158 -0
- package/dist/passes/effect-renderer.d.ts.map +1 -0
- package/dist/passes/effect-renderer.js +143 -0
- package/dist/passes/effect-renderer.js.map +1 -0
- package/dist/passes/scene-capture-pass.cjs +42 -0
- package/dist/passes/scene-capture-pass.d.ts +29 -0
- package/dist/passes/scene-capture-pass.d.ts.map +1 -0
- package/dist/passes/scene-capture-pass.js +21 -0
- package/dist/passes/scene-capture-pass.js.map +1 -0
- package/dist/passes/shader-pass-renderer.cjs +94 -68
- package/dist/passes/shader-pass-renderer.d.ts +32 -15
- package/dist/passes/shader-pass-renderer.d.ts.map +1 -1
- package/dist/passes/shader-pass-renderer.js +104 -76
- package/dist/passes/shader-pass-renderer.js.map +1 -1
- package/dist/scenegraph/model-node.cjs +2 -0
- package/dist/scenegraph/model-node.d.ts +4 -0
- package/dist/scenegraph/model-node.d.ts.map +1 -1
- package/dist/scenegraph/model-node.js +2 -0
- package/dist/scenegraph/model-node.js.map +1 -1
- package/dist/splats/gpu-paged-splat-renderer.cjs +52 -8
- package/dist/splats/gpu-paged-splat-renderer.d.ts +16 -3
- package/dist/splats/gpu-paged-splat-renderer.d.ts.map +1 -1
- package/dist/splats/gpu-paged-splat-renderer.js +55 -9
- package/dist/splats/gpu-paged-splat-renderer.js.map +1 -1
- package/dist/splats/gpu-paged-splat-shaders.cjs +3 -1
- package/dist/splats/gpu-paged-splat-shaders.d.ts.map +1 -1
- package/dist/splats/gpu-paged-splat-shaders.js +3 -1
- package/dist/splats/gpu-paged-splat-shaders.js.map +1 -1
- package/dist/splats/index.cjs.map +2 -2
- package/dist/text/fonts/atlas/browser-font-atlas.cjs +10 -1
- package/dist/text/fonts/atlas/browser-font-atlas.d.ts +3 -1
- package/dist/text/fonts/atlas/browser-font-atlas.d.ts.map +1 -1
- package/dist/text/fonts/atlas/browser-font-atlas.js +10 -2
- package/dist/text/fonts/atlas/browser-font-atlas.js.map +1 -1
- package/dist/text/fonts/atlas/lru-cache.cjs +4 -0
- package/dist/text/fonts/atlas/lru-cache.d.ts +3 -1
- package/dist/text/fonts/atlas/lru-cache.d.ts.map +1 -1
- package/dist/text/fonts/atlas/lru-cache.js +4 -0
- package/dist/text/fonts/atlas/lru-cache.js.map +1 -1
- package/dist/text/fonts/index.cjs +2 -0
- package/dist/text/fonts/index.cjs.map +1 -1
- package/dist/text/fonts/index.d.ts +1 -1
- package/dist/text/fonts/index.d.ts.map +1 -1
- package/dist/text/fonts/index.js +1 -1
- package/dist/text/fonts/index.js.map +1 -1
- package/dist/text/index.cjs.map +1 -1
- package/package.json +8 -8
- package/src/animation/animation-track.ts +5 -0
- package/src/animation/node-animation-binding.ts +9 -8
- package/src/animation/scenegraph-gpu-animation-layout.ts +195 -0
- package/src/animation/scenegraph-gpu-animation.ts +340 -0
- package/src/arrow/arrow-picking.ts +23 -11
- package/src/effects/README.md +38 -14
- package/src/effects/glfx-effects.ts +227 -0
- package/src/effects/graph/gpu-effect-operation.ts +601 -0
- package/src/effects/graph/temporal-graph-history.ts +46 -0
- package/src/effects/index.ts +81 -19
- package/src/effects/passes/postprocessing/fxaa/fxaa.ts +8 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/tone-mapping.ts +8 -0
- package/src/effects/passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.ts +219 -19
- package/src/effects/passes/postprocessing/image-blur-filters/bloom-compute-pyramid.ts +6 -6
- package/src/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.ts +45 -45
- package/src/effects/passes/screen-space/clustered-volumetric-lighting.ts +88 -68
- package/src/effects/passes/screen-space/copy-pass.ts +4 -0
- package/src/effects/passes/screen-space/depth-aware-blur.ts +13 -3
- package/src/effects/passes/screen-space/dof.ts +20 -3
- package/src/effects/passes/screen-space/gtao.ts +91 -65
- package/src/effects/passes/screen-space/hdr-auto-exposure.ts +109 -84
- package/src/effects/passes/screen-space/height-fog.ts +18 -3
- package/src/effects/passes/screen-space/motion-blur.ts +8 -7
- package/src/effects/passes/screen-space/outlines.ts +143 -17
- package/src/effects/passes/screen-space/screen-space-global-illumination.ts +75 -64
- package/src/effects/passes/screen-space/screen-space-reflections.ts +158 -95
- package/src/effects/passes/screen-space/selection-outline.ts +11 -0
- package/src/effects/passes/screen-space/ssao.ts +76 -45
- package/src/effects/passes/screen-space/temporal-antialiasing.ts +43 -33
- package/src/effects/passes/screen-space/temporal-frame.ts +33 -0
- package/src/effects/passes/screen-space/volumetric-fog.ts +30 -24
- package/src/effects/temporal-upscale/index.ts +20 -0
- package/src/effects/temporal-upscale/temporal-math.ts +308 -0
- package/src/effects/temporal-upscale/temporal-upscale-shaders.ts +326 -0
- package/src/effects/temporal-upscale/temporal-upscaler.ts +538 -0
- package/src/gltf/gltf/create-gltf-model.ts +59 -90
- package/src/gltf/gltf/create-scenegraph-from-gltf.ts +71 -5
- package/src/gltf/gltf/gltf-animated-crowd.ts +30 -177
- package/src/gltf/gltf/gltf-animation-nodes.ts +82 -0
- package/src/gltf/gltf/gltf-animator.ts +15 -4
- package/src/gltf/gltf/gltf-gpu-animation-controller.ts +88 -0
- package/src/gltf/gltf/gltf-gpu-animation.ts +53 -60
- package/src/gltf/index.ts +5 -0
- package/src/gltf/parsers/parse-gltf.ts +12 -2
- package/src/graph/physics/index.ts +4 -0
- package/src/graph/physics/physics-controller-geometry.ts +33 -1
- package/src/index.ts +25 -0
- package/src/lighting/ambient-occlusion-pass.ts +62 -28
- package/src/lighting/clustered-light-grid.ts +87 -30
- package/src/lighting/contact-shadow-composite.ts +80 -52
- package/src/lighting/contact-shadow-pass.ts +59 -39
- package/src/lighting/cortao/cortao-occluder-lookup-table.ts +138 -0
- package/src/lighting/cortao/cortao-parameters.ts +218 -0
- package/src/lighting/cortao/cortao-pass.ts +136 -0
- package/src/lighting/cortao/cortao-passes.ts +50 -0
- package/src/lighting/cortao/cortao-shaders-wgsl.ts +633 -0
- package/src/lighting/cortao/cortao-shaders.ts +674 -0
- package/src/lighting/cortao/cortao-upsample.ts +177 -0
- package/src/lighting/cortao/cortao-webgl-passes.ts +284 -0
- package/src/lighting/cortao/cortao-webgpu-passes.ts +430 -0
- package/src/lighting/index.ts +12 -3
- package/src/lighting/shadow-map-renderer.ts +57 -43
- package/src/model/gpu-vector-model.ts +47 -18
- package/src/passes/effect-renderer.ts +332 -0
- package/src/passes/scene-capture-pass.ts +51 -0
- package/src/passes/shader-pass-renderer.ts +164 -115
- package/src/scenegraph/model-node.ts +5 -0
- package/src/splats/gpu-paged-splat-renderer.ts +77 -9
- package/src/splats/gpu-paged-splat-shaders.ts +7 -1
- package/src/text/fonts/atlas/browser-font-atlas.ts +12 -2
- package/src/text/fonts/atlas/lru-cache.ts +6 -1
- package/src/text/fonts/index.ts +1 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var temporal_upscaler_exports = {};
|
|
19
|
+
__export(temporal_upscaler_exports, {
|
|
20
|
+
TemporalUpscaler: () => TemporalUpscaler
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(temporal_upscaler_exports);
|
|
23
|
+
var import_core = require("@luma.gl/core");
|
|
24
|
+
var import_scene_capture_pass = require("../../passes/scene-capture-pass.cjs");
|
|
25
|
+
var import_temporal_math = require("./temporal-math.cjs");
|
|
26
|
+
var import_temporal_upscale_shaders = require("./temporal-upscale-shaders.cjs");
|
|
27
|
+
const temporalUpscaleAccumulationPass = {
|
|
28
|
+
name: "temporal-upscale-accumulation",
|
|
29
|
+
target: "history",
|
|
30
|
+
pass: { clearColor: false, clearDepth: false, clearStencil: false },
|
|
31
|
+
getPassProps: ({ outputSize }) => ({ parameters: { viewport: [0, 0, ...outputSize] } }),
|
|
32
|
+
draw: (renderPass, { pipeline, bindings }) => {
|
|
33
|
+
renderPass.setPipeline(pipeline);
|
|
34
|
+
renderPass.setBindings(bindings);
|
|
35
|
+
renderPass.draw({ vertexCount: 3 });
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const temporalUpscaleSharpenPass = {
|
|
39
|
+
name: "temporal-upscale-sharpen",
|
|
40
|
+
target: "output",
|
|
41
|
+
pass: { clearDepth: false, clearStencil: false },
|
|
42
|
+
getPassProps: ({ outputSize, clear }) => ({
|
|
43
|
+
parameters: { viewport: [0, 0, ...outputSize] },
|
|
44
|
+
clearColor: clear === false ? false : [0, 0, 0, 0]
|
|
45
|
+
}),
|
|
46
|
+
draw: temporalUpscaleAccumulationPass.draw
|
|
47
|
+
};
|
|
48
|
+
class TemporalUpscaler {
|
|
49
|
+
/** Device owning all resources. */
|
|
50
|
+
device;
|
|
51
|
+
/** Resource label prefix. */
|
|
52
|
+
id;
|
|
53
|
+
/** Current input dimensions. */
|
|
54
|
+
renderSize;
|
|
55
|
+
/** Current output dimensions. */
|
|
56
|
+
outputSize;
|
|
57
|
+
/** Hand-packed four-vec4 uniform block. */
|
|
58
|
+
uniformBuffer;
|
|
59
|
+
/** Clamped bilinear history sampler. */
|
|
60
|
+
sampler;
|
|
61
|
+
/** Owned shader modules. */
|
|
62
|
+
shaders;
|
|
63
|
+
/** Accumulation pipeline with two color attachments. */
|
|
64
|
+
accumulatePipeline;
|
|
65
|
+
/** Final single-target pipelines, one for each attachment state of a target. */
|
|
66
|
+
sharpenPipelines = /* @__PURE__ */ new Map();
|
|
67
|
+
/** Binding layout of the final pass. */
|
|
68
|
+
sharpenShaderLayout;
|
|
69
|
+
/** Color format of a `null` target. */
|
|
70
|
+
outputFormat;
|
|
71
|
+
/** Ping-pong history pair. */
|
|
72
|
+
histories = [];
|
|
73
|
+
/** Index of the most recently accumulated frame. */
|
|
74
|
+
historyIndex = 0;
|
|
75
|
+
/** Whether the next frame must start from current color. */
|
|
76
|
+
needsReset = true;
|
|
77
|
+
/** Whether owned resources have been released. */
|
|
78
|
+
destroyed = false;
|
|
79
|
+
/** Returns true for WebGPU devices; no WebGL implementation is provided. */
|
|
80
|
+
static isSupported(device) {
|
|
81
|
+
return device.info.type === "webgpu";
|
|
82
|
+
}
|
|
83
|
+
/** Allocates pipelines. Direct rendering allocates its private history on first use. */
|
|
84
|
+
constructor(device, props) {
|
|
85
|
+
if (!TemporalUpscaler.isSupported(device))
|
|
86
|
+
throw new Error("WebGPU required");
|
|
87
|
+
this.device = device;
|
|
88
|
+
this.id = props.id ?? "temporal-upscaler";
|
|
89
|
+
this.renderSize = [...props.renderSize];
|
|
90
|
+
this.outputSize = [...props.outputSize];
|
|
91
|
+
this.uniformBuffer = device.createBuffer({
|
|
92
|
+
id: `${this.id}-settings`,
|
|
93
|
+
byteLength: 64,
|
|
94
|
+
usage: import_core.Buffer.UNIFORM | import_core.Buffer.COPY_DST
|
|
95
|
+
});
|
|
96
|
+
this.sampler = device.createSampler({
|
|
97
|
+
minFilter: "linear",
|
|
98
|
+
magFilter: "linear",
|
|
99
|
+
addressModeU: "clamp-to-edge",
|
|
100
|
+
addressModeV: "clamp-to-edge"
|
|
101
|
+
});
|
|
102
|
+
this.shaders = [
|
|
103
|
+
device.createShader({
|
|
104
|
+
id: `${this.id}-vertex`,
|
|
105
|
+
stage: "vertex",
|
|
106
|
+
source: import_temporal_upscale_shaders.temporalUpscaleVertex
|
|
107
|
+
}),
|
|
108
|
+
device.createShader({
|
|
109
|
+
id: `${this.id}-accumulate`,
|
|
110
|
+
stage: "fragment",
|
|
111
|
+
source: import_temporal_upscale_shaders.temporalUpscaleAccumulate
|
|
112
|
+
}),
|
|
113
|
+
device.createShader({
|
|
114
|
+
id: `${this.id}-sharpen`,
|
|
115
|
+
stage: "fragment",
|
|
116
|
+
source: import_temporal_upscale_shaders.temporalUpscaleSharpen
|
|
117
|
+
})
|
|
118
|
+
];
|
|
119
|
+
const bindings = [
|
|
120
|
+
{ name: "settings", type: "uniform", group: 0, location: 0, minBindingSize: 64 },
|
|
121
|
+
{ name: "colorTexture", type: "texture", group: 0, location: 1, sampleType: "float" },
|
|
122
|
+
{ name: "depthTexture", type: "texture", group: 0, location: 2, sampleType: "depth" },
|
|
123
|
+
{ name: "velocityTexture", type: "texture", group: 0, location: 3, sampleType: "float" },
|
|
124
|
+
{ name: "historyColor", type: "texture", group: 0, location: 4, sampleType: "float" },
|
|
125
|
+
{ name: "historyAux", type: "texture", group: 0, location: 5, sampleType: "float" },
|
|
126
|
+
{ name: "linearSampler", type: "sampler", group: 0, location: 6, samplerType: "filtering" }
|
|
127
|
+
];
|
|
128
|
+
this.accumulatePipeline = device.createRenderPipeline({
|
|
129
|
+
id: `${this.id}-accumulate`,
|
|
130
|
+
vs: this.shaders[0],
|
|
131
|
+
fs: this.shaders[1],
|
|
132
|
+
topology: "triangle-list",
|
|
133
|
+
shaderLayout: { attributes: [], bindings },
|
|
134
|
+
colorAttachmentFormats: ["rgba16float", "rg16float"]
|
|
135
|
+
});
|
|
136
|
+
this.sharpenShaderLayout = {
|
|
137
|
+
attributes: [],
|
|
138
|
+
bindings: [
|
|
139
|
+
...bindings,
|
|
140
|
+
{ name: "resolvedColor", type: "texture", group: 0, location: 7, sampleType: "float" }
|
|
141
|
+
]
|
|
142
|
+
};
|
|
143
|
+
this.outputFormat = props.outputFormat ?? "rgba8unorm";
|
|
144
|
+
}
|
|
145
|
+
/** Releases direct-render histories and resets accumulation. Submit pending work first. */
|
|
146
|
+
setSize(renderSize, outputSize) {
|
|
147
|
+
this.destroyHistories();
|
|
148
|
+
this.renderSize = [...renderSize];
|
|
149
|
+
this.outputSize = [...outputSize];
|
|
150
|
+
this.historyIndex = 0;
|
|
151
|
+
this.resetHistory();
|
|
152
|
+
}
|
|
153
|
+
ensureHistories() {
|
|
154
|
+
(0, import_core.assert)(!this.destroyed);
|
|
155
|
+
if (this.histories.length)
|
|
156
|
+
return;
|
|
157
|
+
const outputSize = this.outputSize;
|
|
158
|
+
this.histories = [0, 1].map((index) => {
|
|
159
|
+
const common = {
|
|
160
|
+
width: outputSize[0],
|
|
161
|
+
height: outputSize[1],
|
|
162
|
+
usage: import_core.Texture.TEXTURE | import_core.Texture.RENDER_ATTACHMENT
|
|
163
|
+
};
|
|
164
|
+
const color = this.device.createTexture({
|
|
165
|
+
...common,
|
|
166
|
+
id: `${this.id}-color-${index}`,
|
|
167
|
+
format: "rgba16float"
|
|
168
|
+
});
|
|
169
|
+
const auxiliary = this.device.createTexture({
|
|
170
|
+
...common,
|
|
171
|
+
id: `${this.id}-auxiliary-${index}`,
|
|
172
|
+
format: "rg16float"
|
|
173
|
+
});
|
|
174
|
+
const framebuffer = this.device.createFramebuffer({
|
|
175
|
+
id: `${this.id}-history-${index}`,
|
|
176
|
+
width: outputSize[0],
|
|
177
|
+
height: outputSize[1],
|
|
178
|
+
colorAttachments: [color, auxiliary]
|
|
179
|
+
});
|
|
180
|
+
return { color, auxiliary, framebuffer };
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Encodes accumulation then sharpening. The caller must submit before the next render,
|
|
185
|
+
* resize or destruction (uniform writes use the device queue). No submission occurs here.
|
|
186
|
+
* Each pass ends before a sampled texture becomes an attachment in a later frame;
|
|
187
|
+
* separate WebGPU render-pass usage scopes need no intermediate submission.
|
|
188
|
+
*/
|
|
189
|
+
render(options) {
|
|
190
|
+
this.ensureHistories();
|
|
191
|
+
const previous = this.histories[this.historyIndex];
|
|
192
|
+
const nextIndex = 1 - this.historyIndex;
|
|
193
|
+
const next = this.histories[nextIndex];
|
|
194
|
+
this.uniformBuffer.write(this.getUniforms(options, this.needsReset || Boolean(options.resetHistory)));
|
|
195
|
+
const bindings = {
|
|
196
|
+
settings: this.uniformBuffer,
|
|
197
|
+
colorTexture: options.colorTexture,
|
|
198
|
+
depthTexture: options.depthTexture,
|
|
199
|
+
velocityTexture: options.velocityTexture,
|
|
200
|
+
historyColor: previous.color,
|
|
201
|
+
historyAux: previous.auxiliary,
|
|
202
|
+
linearSampler: this.sampler
|
|
203
|
+
};
|
|
204
|
+
const commandEncoder = this.device.commandEncoder;
|
|
205
|
+
(0, import_scene_capture_pass.encodeSceneCapturePass)(temporalUpscaleAccumulationPass, {
|
|
206
|
+
commandEncoder,
|
|
207
|
+
framebuffers: { history: next.framebuffer },
|
|
208
|
+
frame: { pipeline: this.accumulatePipeline, outputSize: this.outputSize, bindings }
|
|
209
|
+
});
|
|
210
|
+
const target = options.target ?? this.device.getDefaultCanvasContext().getCurrentFramebuffer({ depthStencilFormat: false });
|
|
211
|
+
const colorTarget = target.depthStencilAttachment || target.colorAttachments.length > 1 ? this.device.createFramebuffer({
|
|
212
|
+
width: this.outputSize[0],
|
|
213
|
+
height: this.outputSize[1],
|
|
214
|
+
colorAttachments: [target.colorAttachments[0]]
|
|
215
|
+
}) : target;
|
|
216
|
+
try {
|
|
217
|
+
(0, import_scene_capture_pass.encodeSceneCapturePass)(temporalUpscaleSharpenPass, {
|
|
218
|
+
commandEncoder,
|
|
219
|
+
framebuffers: { output: colorTarget },
|
|
220
|
+
frame: {
|
|
221
|
+
pipeline: this.getSharpenPipeline(colorTarget),
|
|
222
|
+
outputSize: this.outputSize,
|
|
223
|
+
bindings: { ...bindings, resolvedColor: next.color },
|
|
224
|
+
clear: options.clear
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
} finally {
|
|
228
|
+
if (colorTarget !== target)
|
|
229
|
+
colorTarget.destroy();
|
|
230
|
+
}
|
|
231
|
+
this.historyIndex = nextIndex;
|
|
232
|
+
this.needsReset = false;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Appends accumulation and sharpening to a WebGPU command graph. The compiled graph
|
|
236
|
+
* borrows this upscaler's pipelines and the supplied history roles. Set resetHistory
|
|
237
|
+
* on the first frame and camera cuts. Bind and advance both history pairs together
|
|
238
|
+
* after submission. Rebuild the graph after setSize and destroy it before the upscaler.
|
|
239
|
+
*/
|
|
240
|
+
addToGraph(graph, views) {
|
|
241
|
+
const { color, depth, velocity, colorHistory, auxiliaryHistory, output } = views;
|
|
242
|
+
const inputs = [color, depth, velocity];
|
|
243
|
+
const outputs = [
|
|
244
|
+
colorHistory.previous,
|
|
245
|
+
colorHistory.current,
|
|
246
|
+
auxiliaryHistory.previous,
|
|
247
|
+
auxiliaryHistory.current,
|
|
248
|
+
output
|
|
249
|
+
];
|
|
250
|
+
(0, import_core.assert)(graph.device === this.device && inputs.every((view) => view.width === this.renderSize[0] && view.height === this.renderSize[1]));
|
|
251
|
+
(0, import_core.assert)(outputs.every((view) => view.width === this.outputSize[0] && view.height === this.outputSize[1]));
|
|
252
|
+
const sampled = [...inputs, colorHistory.previous, auxiliaryHistory.previous].map((texture) => ({
|
|
253
|
+
texture,
|
|
254
|
+
usage: "sampled"
|
|
255
|
+
}));
|
|
256
|
+
const getBindings = (getTextureView) => ({
|
|
257
|
+
settings: this.uniformBuffer,
|
|
258
|
+
colorTexture: getTextureView(color),
|
|
259
|
+
depthTexture: getTextureView(depth),
|
|
260
|
+
velocityTexture: getTextureView(velocity),
|
|
261
|
+
historyColor: getTextureView(colorHistory.previous),
|
|
262
|
+
historyAux: getTextureView(auxiliaryHistory.previous),
|
|
263
|
+
linearSampler: this.sampler
|
|
264
|
+
});
|
|
265
|
+
graph.addRenderPass({
|
|
266
|
+
id: this.id + "/accumulate",
|
|
267
|
+
resources: sampled,
|
|
268
|
+
attachments: { colorAttachments: [colorHistory.current, auxiliaryHistory.current] },
|
|
269
|
+
compile: () => ({
|
|
270
|
+
prepare: ({ commandEncoder, parameters }) => {
|
|
271
|
+
this.device.writeBufferViaCommandEncoder(commandEncoder, this.uniformBuffer, this.getUniforms(parameters, Boolean(parameters.resetHistory)));
|
|
272
|
+
},
|
|
273
|
+
getRenderPassProps: () => temporalUpscaleAccumulationPass.pass,
|
|
274
|
+
encode: ({ renderPass, getTextureView }) => temporalUpscaleAccumulationPass.draw(renderPass, {
|
|
275
|
+
pipeline: this.accumulatePipeline,
|
|
276
|
+
outputSize: this.outputSize,
|
|
277
|
+
bindings: getBindings(getTextureView)
|
|
278
|
+
})
|
|
279
|
+
})
|
|
280
|
+
});
|
|
281
|
+
graph.addRenderPass({
|
|
282
|
+
id: this.id + "/sharpen",
|
|
283
|
+
resources: [...sampled, { texture: colorHistory.current, usage: "sampled" }],
|
|
284
|
+
attachments: { colorAttachments: [output] },
|
|
285
|
+
compile: () => {
|
|
286
|
+
const pipeline = this.getSharpenPipelineForFormat(output.format);
|
|
287
|
+
return {
|
|
288
|
+
getRenderPassProps: ({ parameters }) => ({
|
|
289
|
+
...temporalUpscaleSharpenPass.pass,
|
|
290
|
+
clearColor: parameters.clear === false ? false : [0, 0, 0, 0]
|
|
291
|
+
}),
|
|
292
|
+
encode: ({ renderPass, getTextureView }) => temporalUpscaleSharpenPass.draw(renderPass, {
|
|
293
|
+
pipeline,
|
|
294
|
+
outputSize: this.outputSize,
|
|
295
|
+
bindings: {
|
|
296
|
+
...getBindings(getTextureView),
|
|
297
|
+
resolvedColor: getTextureView(colorHistory.current)
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
getUniforms(options, reset) {
|
|
305
|
+
const debugMode = { none: 0, velocity: 1, disocclusion: 2, "history-weight": 3 }[options.debugView ?? "none"];
|
|
306
|
+
return new Float32Array([
|
|
307
|
+
...this.renderSize,
|
|
308
|
+
...this.outputSize,
|
|
309
|
+
options.currentJitter[0] * this.renderSize[0],
|
|
310
|
+
options.currentJitter[1] * this.renderSize[1],
|
|
311
|
+
Number(reset),
|
|
312
|
+
options.sharpness ?? 0,
|
|
313
|
+
options.historyWeightMax ?? 0.95,
|
|
314
|
+
debugMode,
|
|
315
|
+
Number(options.sampleValidation ?? true),
|
|
316
|
+
options.kernelSharpness ?? import_temporal_math.DEFAULT_KERNEL_SHARPNESS,
|
|
317
|
+
options.responsiveness ?? import_temporal_math.DEFAULT_RESPONSIVENESS,
|
|
318
|
+
0,
|
|
319
|
+
0,
|
|
320
|
+
0
|
|
321
|
+
]);
|
|
322
|
+
}
|
|
323
|
+
/** Discards history on the next render, without GPU work or clearing textures. */
|
|
324
|
+
resetHistory() {
|
|
325
|
+
this.needsReset = true;
|
|
326
|
+
}
|
|
327
|
+
/** Latest unsharpened output-sized rgba16float history; borrowed, never destroy it externally. */
|
|
328
|
+
get historyTexture() {
|
|
329
|
+
this.ensureHistories();
|
|
330
|
+
return this.histories[this.historyIndex].color;
|
|
331
|
+
}
|
|
332
|
+
/** Releases all owned GPU resources; call after submitting pending rendering. Idempotent. */
|
|
333
|
+
destroy() {
|
|
334
|
+
if (this.destroyed)
|
|
335
|
+
return;
|
|
336
|
+
this.destroyed = true;
|
|
337
|
+
this.destroyHistories();
|
|
338
|
+
this.accumulatePipeline.destroy();
|
|
339
|
+
for (const pipeline of this.sharpenPipelines.values())
|
|
340
|
+
pipeline.destroy();
|
|
341
|
+
this.sharpenPipelines.clear();
|
|
342
|
+
for (const shader of this.shaders)
|
|
343
|
+
shader.destroy();
|
|
344
|
+
this.sampler.destroy();
|
|
345
|
+
this.uniformBuffer.destroy();
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Gets the final pipeline for the attachment state of a target. A WebGPU pipeline must name
|
|
349
|
+
* the color format and the depth-stencil format of the render pass. A canvas framebuffer has
|
|
350
|
+
* a depth-stencil attachment, and an offscreen target usually has none.
|
|
351
|
+
*/
|
|
352
|
+
getSharpenPipeline(target) {
|
|
353
|
+
var _a;
|
|
354
|
+
const colorAttachment = target == null ? void 0 : target.colorAttachments[0];
|
|
355
|
+
const colorFormat = (colorAttachment == null ? void 0 : colorAttachment.props.format) ?? (colorAttachment == null ? void 0 : colorAttachment.texture.props.format) ?? this.outputFormat;
|
|
356
|
+
const depthFormat = target ? (_a = target.depthStencilAttachment) == null ? void 0 : _a.texture.props.format : this.device.preferredDepthFormat;
|
|
357
|
+
return this.getSharpenPipelineForFormat(colorFormat, depthFormat);
|
|
358
|
+
}
|
|
359
|
+
getSharpenPipelineForFormat(colorFormat, depthFormat) {
|
|
360
|
+
const key = `${colorFormat}/${depthFormat ?? "none"}`;
|
|
361
|
+
let pipeline = this.sharpenPipelines.get(key);
|
|
362
|
+
if (!pipeline) {
|
|
363
|
+
pipeline = this.device.createRenderPipeline({
|
|
364
|
+
id: `${this.id}-sharpen-${key}`,
|
|
365
|
+
vs: this.shaders[0],
|
|
366
|
+
fs: this.shaders[2],
|
|
367
|
+
topology: "triangle-list",
|
|
368
|
+
shaderLayout: this.sharpenShaderLayout,
|
|
369
|
+
colorAttachmentFormats: [colorFormat],
|
|
370
|
+
...depthFormat ? {
|
|
371
|
+
depthStencilAttachmentFormat: depthFormat,
|
|
372
|
+
parameters: { depthWriteEnabled: false, depthCompare: "always" }
|
|
373
|
+
} : {}
|
|
374
|
+
});
|
|
375
|
+
this.sharpenPipelines.set(key, pipeline);
|
|
376
|
+
}
|
|
377
|
+
return pipeline;
|
|
378
|
+
}
|
|
379
|
+
/** Releases framebuffers and their explicitly owned attachments. */
|
|
380
|
+
destroyHistories() {
|
|
381
|
+
for (const history of this.histories) {
|
|
382
|
+
history.framebuffer.destroy();
|
|
383
|
+
history.color.destroy();
|
|
384
|
+
history.auxiliary.destroy();
|
|
385
|
+
}
|
|
386
|
+
this.histories = [];
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
390
|
+
0 && (module.exports = {
|
|
391
|
+
TemporalUpscaler
|
|
392
|
+
});
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Texture } from '@luma.gl/core';
|
|
2
|
+
import type { Device, Framebuffer, TextureFormat, TextureFormatColor } from '@luma.gl/core';
|
|
3
|
+
import type { GPUCommandGraph, GraphTextureView } from '@luma.gl/graph/gpu-core';
|
|
4
|
+
import type { TemporalGraphHistory } from "../graph/temporal-graph-history.js";
|
|
5
|
+
import type { TemporalFrame } from "../passes/screen-space/temporal-frame.js";
|
|
6
|
+
import type { TemporalVector2 } from "./temporal-math.js";
|
|
7
|
+
/** Construction settings for the independent two-pass temporal upscaler. */
|
|
8
|
+
export type TemporalUpscalerProps = {
|
|
9
|
+
/** Resource label prefix. */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Low-resolution input dimensions. */
|
|
12
|
+
renderSize: [number, number];
|
|
13
|
+
/** Accumulation and target dimensions. */
|
|
14
|
+
outputSize: [number, number];
|
|
15
|
+
/** Target color format, default rgba8unorm; must be a renderable color format. */
|
|
16
|
+
outputFormat?: TextureFormat;
|
|
17
|
+
};
|
|
18
|
+
/** Per-frame inputs, all single-sampled, with top-left UVs and standard (not reversed) depth. */
|
|
19
|
+
export type TemporalUpscalerRenderOptions = Pick<TemporalFrame, 'currentJitter' | 'resetHistory'> & {
|
|
20
|
+
/** Jittered render-sized premultiplied RGBA, filterable float/unorm. */
|
|
21
|
+
colorTexture: Texture;
|
|
22
|
+
/** Render-sized device depth, zero near and one far. */
|
|
23
|
+
depthTexture: Texture;
|
|
24
|
+
/**
|
|
25
|
+
* Render-sized rgba16float: xy = unjittered current UV minus previous UV, z = 1 - expected previous
|
|
26
|
+
* device depth, w = validity.
|
|
27
|
+
*/
|
|
28
|
+
velocityTexture: Texture;
|
|
29
|
+
/** Output-sized framebuffer, or the current canvas framebuffer. Must not alias inputs/history. */
|
|
30
|
+
target: Framebuffer | null;
|
|
31
|
+
/** Sharpening strength in [0,1]; zero is an exact history copy (default). */
|
|
32
|
+
sharpness?: number;
|
|
33
|
+
/** Accumulation kernel sharpness in [0.5,1], clamped; default 0.85. Larger values narrow the kernel. */
|
|
34
|
+
kernelSharpness?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Forget a history whose luminance is outside the current neighbourhood range, in [0,1],
|
|
37
|
+
* clamped. Only a frame with a sample close to the output pixel forgets. Default 0.5. 0 keeps the
|
|
38
|
+
* plain accumulation. A higher value removes stale features sooner, and it keeps less of the
|
|
39
|
+
* detail that is smaller than a render pixel.
|
|
40
|
+
*/
|
|
41
|
+
responsiveness?: number;
|
|
42
|
+
/** Maximum history contribution of a full-weight sample, default 0.95. */
|
|
43
|
+
historyWeightMax?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Keep the fine detail of a history that explains the nearest sample of the current frame,
|
|
46
|
+
* and clip only an inconsistent history. Default true. `false` clips the history of each
|
|
47
|
+
* pixel to the low-resolution neighbourhood (the usual TAA rule), which removes detail
|
|
48
|
+
* smaller than a render pixel.
|
|
49
|
+
*/
|
|
50
|
+
sampleValidation?: boolean;
|
|
51
|
+
/** Diagnostic target output; accumulated history remains unchanged. */
|
|
52
|
+
debugView?: 'none' | 'velocity' | 'disocclusion' | 'history-weight';
|
|
53
|
+
/** Clear the final target before drawing, default true. */
|
|
54
|
+
clear?: boolean;
|
|
55
|
+
};
|
|
56
|
+
/** Per-encoding tuning and shared temporal frame inputs. */
|
|
57
|
+
export type TemporalUpscalerGraphFrame = Omit<TemporalUpscalerRenderOptions, 'colorTexture' | 'depthTexture' | 'velocityTexture' | 'target'>;
|
|
58
|
+
/** Logical texture views for the two upscaling passes. */
|
|
59
|
+
export type TemporalUpscalerGraphViews = {
|
|
60
|
+
/** Jittered, render-resolution color. */
|
|
61
|
+
color: GraphTextureView;
|
|
62
|
+
/** Render-resolution device depth. */
|
|
63
|
+
depth: GraphTextureView;
|
|
64
|
+
/** Motion, expected previous depth and validity, at render resolution. */
|
|
65
|
+
velocity: GraphTextureView<'rgba16float'>;
|
|
66
|
+
/** Borrowed output-resolution color history roles. */
|
|
67
|
+
colorHistory: TemporalGraphHistory<'rgba16float'>;
|
|
68
|
+
/** Borrowed output-resolution depth and weight history roles. */
|
|
69
|
+
auxiliaryHistory: TemporalGraphHistory<'rg16float'>;
|
|
70
|
+
/** Final output-resolution color attachment. */
|
|
71
|
+
output: GraphTextureView<TextureFormatColor>;
|
|
72
|
+
};
|
|
73
|
+
/** Raw-core WebGPU implementation inspired by AMD FSR 2; independently authored, non-neural. */
|
|
74
|
+
export declare class TemporalUpscaler {
|
|
75
|
+
/** Device owning all resources. */
|
|
76
|
+
private readonly device;
|
|
77
|
+
/** Resource label prefix. */
|
|
78
|
+
private readonly id;
|
|
79
|
+
/** Current input dimensions. */
|
|
80
|
+
private renderSize;
|
|
81
|
+
/** Current output dimensions. */
|
|
82
|
+
private outputSize;
|
|
83
|
+
/** Hand-packed four-vec4 uniform block. */
|
|
84
|
+
private readonly uniformBuffer;
|
|
85
|
+
/** Clamped bilinear history sampler. */
|
|
86
|
+
private readonly sampler;
|
|
87
|
+
/** Owned shader modules. */
|
|
88
|
+
private readonly shaders;
|
|
89
|
+
/** Accumulation pipeline with two color attachments. */
|
|
90
|
+
private readonly accumulatePipeline;
|
|
91
|
+
/** Final single-target pipelines, one for each attachment state of a target. */
|
|
92
|
+
private readonly sharpenPipelines;
|
|
93
|
+
/** Binding layout of the final pass. */
|
|
94
|
+
private readonly sharpenShaderLayout;
|
|
95
|
+
/** Color format of a `null` target. */
|
|
96
|
+
private readonly outputFormat;
|
|
97
|
+
/** Ping-pong history pair. */
|
|
98
|
+
private histories;
|
|
99
|
+
/** Index of the most recently accumulated frame. */
|
|
100
|
+
private historyIndex;
|
|
101
|
+
/** Whether the next frame must start from current color. */
|
|
102
|
+
private needsReset;
|
|
103
|
+
/** Whether owned resources have been released. */
|
|
104
|
+
private destroyed;
|
|
105
|
+
/** Returns true for WebGPU devices; no WebGL implementation is provided. */
|
|
106
|
+
static isSupported(device: Device): boolean;
|
|
107
|
+
/** Allocates pipelines. Direct rendering allocates its private history on first use. */
|
|
108
|
+
constructor(device: Device, props: TemporalUpscalerProps);
|
|
109
|
+
/** Releases direct-render histories and resets accumulation. Submit pending work first. */
|
|
110
|
+
setSize(renderSize: TemporalVector2, outputSize: TemporalVector2): void;
|
|
111
|
+
private ensureHistories;
|
|
112
|
+
/**
|
|
113
|
+
* Encodes accumulation then sharpening. The caller must submit before the next render,
|
|
114
|
+
* resize or destruction (uniform writes use the device queue). No submission occurs here.
|
|
115
|
+
* Each pass ends before a sampled texture becomes an attachment in a later frame;
|
|
116
|
+
* separate WebGPU render-pass usage scopes need no intermediate submission.
|
|
117
|
+
*/
|
|
118
|
+
render(options: TemporalUpscalerRenderOptions): void;
|
|
119
|
+
/**
|
|
120
|
+
* Appends accumulation and sharpening to a WebGPU command graph. The compiled graph
|
|
121
|
+
* borrows this upscaler's pipelines and the supplied history roles. Set resetHistory
|
|
122
|
+
* on the first frame and camera cuts. Bind and advance both history pairs together
|
|
123
|
+
* after submission. Rebuild the graph after setSize and destroy it before the upscaler.
|
|
124
|
+
*/
|
|
125
|
+
addToGraph<Frame extends TemporalUpscalerGraphFrame>(graph: GPUCommandGraph<Frame>, views: TemporalUpscalerGraphViews): void;
|
|
126
|
+
private getUniforms;
|
|
127
|
+
/** Discards history on the next render, without GPU work or clearing textures. */
|
|
128
|
+
resetHistory(): void;
|
|
129
|
+
/** Latest unsharpened output-sized rgba16float history; borrowed, never destroy it externally. */
|
|
130
|
+
get historyTexture(): Texture;
|
|
131
|
+
/** Releases all owned GPU resources; call after submitting pending rendering. Idempotent. */
|
|
132
|
+
destroy(): void;
|
|
133
|
+
/**
|
|
134
|
+
* Gets the final pipeline for the attachment state of a target. A WebGPU pipeline must name
|
|
135
|
+
* the color format and the depth-stencil format of the render pass. A canvas framebuffer has
|
|
136
|
+
* a depth-stencil attachment, and an offscreen target usually has none.
|
|
137
|
+
*/
|
|
138
|
+
private getSharpenPipeline;
|
|
139
|
+
private getSharpenPipelineForFormat;
|
|
140
|
+
/** Releases framebuffers and their explicitly owned attachments. */
|
|
141
|
+
private destroyHistories;
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=temporal-upscaler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-upscaler.d.ts","sourceRoot":"","sources":["../../../src/effects/temporal-upscale/temporal-upscaler.ts"],"names":[],"mappings":"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"}
|