@luma.gl/engine 10.0.0-rc.1 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +89 -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 +1735 -1100
- 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 +461 -0
- package/dist/effects/graph/gpu-effect-operation.d.ts +127 -0
- package/dist/effects/graph/gpu-effect-operation.d.ts.map +1 -0
- package/dist/effects/graph/gpu-effect-operation.js +474 -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 +179 -34
- package/dist/effects/index.cjs.map +3 -3
- package/dist/effects/index.d.ts +64 -27
- package/dist/effects/index.d.ts.map +1 -1
- package/dist/effects/index.js +51 -18
- package/dist/effects/index.js.map +1 -1
- package/dist/effects/passes/postprocessing/detail/detail-blur.cjs +95 -0
- package/dist/effects/passes/postprocessing/detail/detail-blur.d.ts +126 -0
- package/dist/effects/passes/postprocessing/detail/detail-blur.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/detail/detail-blur.js +63 -0
- package/dist/effects/passes/postprocessing/detail/detail-blur.js.map +1 -0
- package/dist/effects/passes/postprocessing/detail/high-pass.cjs +80 -0
- package/dist/effects/passes/postprocessing/detail/high-pass.d.ts +183 -0
- package/dist/effects/passes/postprocessing/detail/high-pass.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/detail/high-pass.js +59 -0
- package/dist/effects/passes/postprocessing/detail/high-pass.js.map +1 -0
- package/dist/effects/passes/postprocessing/detail/local-contrast.cjs +81 -0
- package/dist/effects/passes/postprocessing/detail/local-contrast.d.ts +163 -0
- package/dist/effects/passes/postprocessing/detail/local-contrast.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/detail/local-contrast.js +57 -0
- package/dist/effects/passes/postprocessing/detail/local-contrast.js.map +1 -0
- package/dist/effects/passes/postprocessing/detail/unsharp-mask.cjs +73 -0
- package/dist/effects/passes/postprocessing/detail/unsharp-mask.d.ts +43 -0
- package/dist/effects/passes/postprocessing/detail/unsharp-mask.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/detail/unsharp-mask.js +46 -0
- package/dist/effects/passes/postprocessing/detail/unsharp-mask.js.map +1 -0
- 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/grading/curves.cjs +91 -0
- package/dist/effects/passes/postprocessing/grading/curves.d.ts +54 -0
- package/dist/effects/passes/postprocessing/grading/curves.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/grading/curves.js +73 -0
- package/dist/effects/passes/postprocessing/grading/curves.js.map +1 -0
- package/dist/effects/passes/postprocessing/grading/lift-gamma-gain.cjs +71 -0
- package/dist/effects/passes/postprocessing/grading/lift-gamma-gain.d.ts +76 -0
- package/dist/effects/passes/postprocessing/grading/lift-gamma-gain.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/grading/lift-gamma-gain.js +50 -0
- package/dist/effects/passes/postprocessing/grading/lift-gamma-gain.js.map +1 -0
- package/dist/effects/passes/postprocessing/grading/shadows-highlights.cjs +160 -0
- package/dist/effects/passes/postprocessing/grading/shadows-highlights.d.ts +232 -0
- package/dist/effects/passes/postprocessing/grading/shadows-highlights.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/grading/shadows-highlights.js +138 -0
- package/dist/effects/passes/postprocessing/grading/shadows-highlights.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/chromatic-aberration.cjs +84 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/chromatic-aberration.d.ts +36 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/chromatic-aberration.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/chromatic-aberration.js +58 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/chromatic-aberration.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/denoise.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/levels.cjs +106 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/levels.d.ts +105 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/levels.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/levels.js +89 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/levels.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/lut-color-grading.cjs +327 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/lut-color-grading.d.ts +201 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/lut-color-grading.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/lut-color-grading.js +296 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/lut-color-grading.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/output-dithering.cjs +85 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/output-dithering.d.ts +36 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/output-dithering.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/output-dithering.js +59 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/output-dithering.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/pack-color-lut.cjs +58 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/pack-color-lut.d.ts +27 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/pack-color-lut.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/pack-color-lut.js +45 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/pack-color-lut.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/persistence.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/persistence.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/posterize.cjs +64 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/posterize.d.ts +48 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/posterize.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/posterize.js +42 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/posterize.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/sharpen.cjs +110 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/sharpen.d.ts +214 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/sharpen.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/sharpen.js +89 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/sharpen.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/threshold.cjs +62 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/threshold.d.ts +47 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/threshold.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/threshold.js +40 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/threshold.js.map +1 -0
- 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-adjust-filters/vibrance.d.ts.map +1 -1
- 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.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 +993 -7
- 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 +4 -4
- 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/postprocessing/image-blur-filters/bloom-lens-effects.cjs +8 -6
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-lens-effects.d.ts +7 -7
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-lens-effects.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-lens-effects.js +8 -6
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-lens-effects.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/gaussianblur.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/gaussianblur.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/tiltshift.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/tiltshift.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/triangleblur.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/triangleblur.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/zoomblur.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/zoomblur.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/colorhalftone.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/colorhalftone.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/dotscreen.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/dotscreen.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/edgework.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/edgework.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/hexagonalpixelate.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/hexagonalpixelate.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/ink.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/ink.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/magnify.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-fun-filters/magnify.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-warp-filters/bulgepinch.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-warp-filters/bulgepinch.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-warp-filters/displacement-map.cjs +79 -0
- package/dist/effects/passes/postprocessing/image-warp-filters/displacement-map.d.ts +59 -0
- package/dist/effects/passes/postprocessing/image-warp-filters/displacement-map.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/image-warp-filters/displacement-map.js +63 -0
- package/dist/effects/passes/postprocessing/image-warp-filters/displacement-map.js.map +1 -0
- package/dist/effects/passes/postprocessing/image-warp-filters/swirl.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-warp-filters/swirl.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-warp-filters/warp.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-warp-filters/warp.js.map +1 -1
- package/dist/effects/passes/postprocessing/layer-styles/bevel.cjs +100 -0
- package/dist/effects/passes/postprocessing/layer-styles/bevel.d.ts +73 -0
- package/dist/effects/passes/postprocessing/layer-styles/bevel.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/layer-styles/bevel.js +78 -0
- package/dist/effects/passes/postprocessing/layer-styles/bevel.js.map +1 -0
- package/dist/effects/passes/postprocessing/layer-styles/drop-shadow.cjs +180 -0
- package/dist/effects/passes/postprocessing/layer-styles/drop-shadow.d.ts +152 -0
- package/dist/effects/passes/postprocessing/layer-styles/drop-shadow.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/layer-styles/drop-shadow.js +157 -0
- package/dist/effects/passes/postprocessing/layer-styles/drop-shadow.js.map +1 -0
- package/dist/effects/passes/postprocessing/optical/lens-flare.cjs +67 -0
- package/dist/effects/passes/postprocessing/optical/lens-flare.d.ts +181 -0
- package/dist/effects/passes/postprocessing/optical/lens-flare.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/optical/lens-flare.js +52 -0
- package/dist/effects/passes/postprocessing/optical/lens-flare.js.map +1 -0
- package/dist/effects/passes/postprocessing/optical/light-shafts.cjs +138 -0
- package/dist/effects/passes/postprocessing/optical/light-shafts.d.ts +138 -0
- package/dist/effects/passes/postprocessing/optical/light-shafts.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/optical/light-shafts.js +119 -0
- package/dist/effects/passes/postprocessing/optical/light-shafts.js.map +1 -0
- package/dist/effects/passes/postprocessing/optical/optical-textures.cjs +104 -0
- package/dist/effects/passes/postprocessing/optical/optical-textures.d.ts +43 -0
- package/dist/effects/passes/postprocessing/optical/optical-textures.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/optical/optical-textures.js +69 -0
- package/dist/effects/passes/postprocessing/optical/optical-textures.js.map +1 -0
- package/dist/effects/passes/postprocessing/optical/selective-glow.cjs +64 -0
- package/dist/effects/passes/postprocessing/optical/selective-glow.d.ts +190 -0
- package/dist/effects/passes/postprocessing/optical/selective-glow.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/optical/selective-glow.js +49 -0
- package/dist/effects/passes/postprocessing/optical/selective-glow.js.map +1 -0
- package/dist/effects/passes/postprocessing/smaa.cjs +279 -0
- package/dist/effects/passes/postprocessing/smaa.d.ts +95 -0
- package/dist/effects/passes/postprocessing/smaa.d.ts.map +1 -0
- package/dist/effects/passes/postprocessing/smaa.js +253 -0
- package/dist/effects/passes/postprocessing/smaa.js.map +1 -0
- 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 +101 -70
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.d.ts +496 -5
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.js +97 -65
- 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 +7 -5
- package/dist/effects/passes/screen-space/depth-aware-blur.d.ts +21 -19
- package/dist/effects/passes/screen-space/depth-aware-blur.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/depth-aware-blur.js +5 -3
- package/dist/effects/passes/screen-space/depth-aware-blur.js.map +1 -1
- package/dist/effects/passes/screen-space/dof.cjs +16 -7
- package/dist/effects/passes/screen-space/dof.d.ts +63 -4
- package/dist/effects/passes/screen-space/dof.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/dof.js +12 -4
- package/dist/effects/passes/screen-space/dof.js.map +1 -1
- package/dist/effects/passes/screen-space/gtao.cjs +93 -64
- package/dist/effects/passes/screen-space/gtao.d.ts +642 -6
- package/dist/effects/passes/screen-space/gtao.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/gtao.js +94 -62
- 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 +226 -4
- 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 +163 -4
- 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 +82 -63
- package/dist/effects/passes/screen-space/screen-space-global-illumination.d.ts +333 -5
- 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 +81 -61
- package/dist/effects/passes/screen-space/screen-space-global-illumination.js.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.cjs +165 -85
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts +802 -10
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.js +162 -81
- 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 +648 -3
- 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/ssr-camera-temporal.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/ssr-camera-temporal.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 +162 -3
- 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/scene-effect-attachments.cjs +15 -0
- package/dist/effects/scene-effect-attachments.d.ts +23 -0
- package/dist/effects/scene-effect-attachments.d.ts.map +1 -0
- package/dist/effects/scene-effect-attachments.js +5 -0
- package/dist/effects/scene-effect-attachments.js.map +1 -0
- 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 -3
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- 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 +73 -26
- package/dist/lighting/clustered-light-grid.d.ts +38 -5
- package/dist/lighting/clustered-light-grid.d.ts.map +1 -1
- package/dist/lighting/clustered-light-grid.js +70 -24
- 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 +262 -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 +12 -7
- 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 +190 -0
- package/dist/passes/effect-renderer.d.ts +182 -0
- package/dist/passes/effect-renderer.d.ts.map +1 -0
- package/dist/passes/effect-renderer.js +182 -0
- package/dist/passes/effect-renderer.js.map +1 -0
- package/dist/passes/{shader-pass-renderer.cjs → fullscreen-effect-executor.cjs} +131 -94
- package/dist/passes/fullscreen-effect-executor.d.ts +188 -0
- package/dist/passes/fullscreen-effect-executor.d.ts.map +1 -0
- package/dist/passes/{shader-pass-renderer.js → fullscreen-effect-executor.js} +132 -100
- package/dist/passes/fullscreen-effect-executor.js.map +1 -0
- package/dist/passes/fullscreen-effect-module.cjs +15 -0
- package/dist/passes/fullscreen-effect-module.d.ts +47 -0
- package/dist/passes/fullscreen-effect-module.d.ts.map +1 -0
- package/dist/passes/fullscreen-effect-module.js +5 -0
- package/dist/passes/fullscreen-effect-module.js.map +1 -0
- package/dist/passes/fullscreen-effect-plan.cjs +15 -0
- package/dist/passes/fullscreen-effect-plan.d.ts +49 -0
- package/dist/passes/fullscreen-effect-plan.d.ts.map +1 -0
- package/dist/passes/fullscreen-effect-plan.js +5 -0
- package/dist/passes/fullscreen-effect-plan.js.map +1 -0
- package/dist/passes/get-fragment-shader.cjs +3 -0
- package/dist/passes/get-fragment-shader.d.ts +2 -2
- package/dist/passes/get-fragment-shader.d.ts.map +1 -1
- package/dist/passes/get-fragment-shader.js +3 -0
- package/dist/passes/get-fragment-shader.js.map +1 -1
- 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/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/shader-inputs.cjs +1 -1
- package/dist/shader-inputs.d.ts +1 -1
- package/dist/shader-inputs.js +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 +4 -1
- package/dist/text/fonts/atlas/browser-font-atlas.d.ts.map +1 -1
- package/dist/text/fonts/atlas/browser-font-atlas.js +11 -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/build-sdf-font-atlas.cjs +1 -1
- package/dist/text/fonts/build-sdf-font-atlas.d.ts.map +1 -1
- package/dist/text/fonts/build-sdf-font-atlas.js +4 -2
- package/dist/text/fonts/build-sdf-font-atlas.js.map +1 -1
- package/dist/text/fonts/index.cjs +4 -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/dist/utils/shader-module-utils.cjs +3 -0
- package/dist/utils/shader-module-utils.d.ts.map +1 -1
- package/dist/utils/shader-module-utils.js +3 -0
- package/dist/utils/shader-module-utils.js.map +1 -1
- package/licenses/smaa.txt +24 -0
- 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 +40 -16
- package/src/effects/glfx-effects.ts +227 -0
- package/src/effects/graph/gpu-effect-operation.ts +720 -0
- package/src/effects/graph/temporal-graph-history.ts +46 -0
- package/src/effects/index.ts +161 -28
- package/src/effects/passes/postprocessing/detail/detail-blur.ts +77 -0
- package/src/effects/passes/postprocessing/detail/high-pass.ts +86 -0
- package/src/effects/passes/postprocessing/detail/local-contrast.ts +79 -0
- package/src/effects/passes/postprocessing/detail/unsharp-mask.ts +56 -0
- package/src/effects/passes/postprocessing/fxaa/fxaa.ts +10 -2
- package/src/effects/passes/postprocessing/grading/curves.ts +83 -0
- package/src/effects/passes/postprocessing/grading/lift-gamma-gain.ts +68 -0
- package/src/effects/passes/postprocessing/grading/shadows-highlights.ts +169 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.ts +2 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/chromatic-aberration.ts +68 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/denoise.ts +2 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/huesaturation.ts +2 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/levels.ts +111 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/lut-color-grading.ts +347 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/noise.ts +2 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/output-dithering.ts +69 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/pack-color-lut.ts +67 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/persistence.ts +2 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/posterize.ts +52 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/sepia.ts +2 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/sharpen.ts +112 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/threshold.ts +50 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/tone-mapping.ts +10 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/vibrance.ts +2 -2
- package/src/effects/passes/postprocessing/image-adjust-filters/vignette.ts +2 -2
- package/src/effects/passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.ts +233 -29
- package/src/effects/passes/postprocessing/image-blur-filters/bloom-compute-pyramid.ts +7 -7
- package/src/effects/passes/postprocessing/image-blur-filters/bloom-lens-effects.ts +13 -11
- package/src/effects/passes/postprocessing/image-blur-filters/bloom.ts +2 -2
- package/src/effects/passes/postprocessing/image-blur-filters/gaussianblur.ts +2 -2
- package/src/effects/passes/postprocessing/image-blur-filters/tiltshift.ts +2 -2
- package/src/effects/passes/postprocessing/image-blur-filters/triangleblur.ts +2 -2
- package/src/effects/passes/postprocessing/image-blur-filters/zoomblur.ts +2 -2
- package/src/effects/passes/postprocessing/image-fun-filters/colorhalftone.ts +2 -2
- package/src/effects/passes/postprocessing/image-fun-filters/dotscreen.ts +2 -2
- package/src/effects/passes/postprocessing/image-fun-filters/edgework.ts +2 -2
- package/src/effects/passes/postprocessing/image-fun-filters/hexagonalpixelate.ts +2 -2
- package/src/effects/passes/postprocessing/image-fun-filters/ink.ts +2 -2
- package/src/effects/passes/postprocessing/image-fun-filters/magnify.ts +2 -2
- package/src/effects/passes/postprocessing/image-warp-filters/bulgepinch.ts +2 -2
- package/src/effects/passes/postprocessing/image-warp-filters/displacement-map.ts +74 -0
- package/src/effects/passes/postprocessing/image-warp-filters/swirl.ts +2 -2
- package/src/effects/passes/postprocessing/image-warp-filters/warp.ts +2 -2
- package/src/effects/passes/postprocessing/layer-styles/bevel.ts +92 -0
- package/src/effects/passes/postprocessing/layer-styles/drop-shadow.ts +176 -0
- package/src/effects/passes/postprocessing/optical/lens-flare.ts +64 -0
- package/src/effects/passes/postprocessing/optical/light-shafts.ts +139 -0
- package/src/effects/passes/postprocessing/optical/optical-textures.ts +74 -0
- package/src/effects/passes/postprocessing/optical/selective-glow.ts +62 -0
- package/src/effects/passes/postprocessing/smaa.ts +265 -0
- package/src/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.ts +47 -47
- package/src/effects/passes/screen-space/clustered-volumetric-lighting.ts +113 -77
- package/src/effects/passes/screen-space/copy-pass.ts +6 -2
- package/src/effects/passes/screen-space/depth-aware-blur.ts +9 -6
- package/src/effects/passes/screen-space/dof.ts +26 -8
- package/src/effects/passes/screen-space/gtao.ts +110 -74
- package/src/effects/passes/screen-space/hdr-auto-exposure.ts +114 -89
- package/src/effects/passes/screen-space/height-fog.ts +21 -6
- package/src/effects/passes/screen-space/motion-blur.ts +9 -8
- package/src/effects/passes/screen-space/outlines.ts +145 -19
- package/src/effects/passes/screen-space/screen-space-global-illumination.ts +95 -73
- package/src/effects/passes/screen-space/screen-space-reflections.ts +179 -104
- package/src/effects/passes/screen-space/selection-outline.ts +13 -2
- package/src/effects/passes/screen-space/ssao.ts +79 -48
- package/src/effects/passes/screen-space/ssr-camera-temporal.ts +4 -4
- package/src/effects/passes/screen-space/temporal-antialiasing.ts +45 -35
- package/src/effects/passes/screen-space/temporal-frame.ts +33 -0
- package/src/effects/passes/screen-space/volumetric-fog.ts +32 -26
- package/src/effects/scene-effect-attachments.ts +26 -0
- 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 +28 -6
- package/src/lighting/ambient-occlusion-pass.ts +62 -28
- package/src/lighting/clustered-light-grid.ts +89 -40
- 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 +13 -5
- package/src/lighting/shadow-map-renderer.ts +57 -43
- package/src/model/gpu-vector-model.ts +47 -18
- package/src/passes/effect-renderer.ts +404 -0
- package/src/passes/{shader-pass-renderer.ts → fullscreen-effect-executor.ts} +270 -181
- package/src/passes/fullscreen-effect-module.ts +71 -0
- package/src/passes/fullscreen-effect-plan.ts +59 -0
- package/src/passes/get-fragment-shader.ts +7 -2
- package/src/passes/scene-capture-pass.ts +51 -0
- package/src/scenegraph/model-node.ts +5 -0
- package/src/shader-inputs.ts +1 -1
- 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 +13 -2
- package/src/text/fonts/atlas/lru-cache.ts +6 -1
- package/src/text/fonts/build-sdf-font-atlas.ts +4 -2
- package/src/text/fonts/index.ts +2 -0
- package/src/utils/shader-module-utils.ts +3 -0
- package/dist/passes/shader-pass-renderer.d.ts +0 -160
- package/dist/passes/shader-pass-renderer.d.ts.map +0 -1
- package/dist/passes/shader-pass-renderer.js.map +0 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import type {SamplerProps, TextureFormat} from '@luma.gl/shaders/types';
|
|
6
|
+
import type {ShaderModule, ShaderModuleUniformValue} from '@luma.gl/shaders';
|
|
7
|
+
|
|
8
|
+
export type EffectResource = {
|
|
9
|
+
/** Width and height scale relative to the renderer output size. */
|
|
10
|
+
scale?: [number, number];
|
|
11
|
+
/** Render target format. Defaults to the color chain format. */
|
|
12
|
+
format?: TextureFormat;
|
|
13
|
+
/** Optional sampling behavior when later passes read this target. */
|
|
14
|
+
sampler?: SamplerProps;
|
|
15
|
+
/** Reuse an earlier transient target with an identical size, format, and sampler. */
|
|
16
|
+
aliasFor?: string;
|
|
17
|
+
/** Allow WebGPU compute shaders to write this target as a storage texture. */
|
|
18
|
+
storage?: boolean;
|
|
19
|
+
/** Resource lifetime. History targets retain their last successfully rendered value. */
|
|
20
|
+
lifetime?: 'transient' | 'history';
|
|
21
|
+
/** Initial value used after construction, resize, or an explicit history reset. */
|
|
22
|
+
initialize?: 'original' | {clearColor: [number, number, number, number]};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type EffectInputSource<TargetNameT extends string = string> =
|
|
26
|
+
| 'original'
|
|
27
|
+
| 'previous'
|
|
28
|
+
| TargetNameT;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A FullscreenEffectModule is a ShaderModule that can be run "standalone" (e.g. post processing effects)
|
|
32
|
+
* It adds additional information on how to run the module.
|
|
33
|
+
* A FullscreenEffectModule can require one or more sub passes.
|
|
34
|
+
*/
|
|
35
|
+
export type FullscreenEffectModule<
|
|
36
|
+
PropsT extends Record<string, any> = Record<string, any>,
|
|
37
|
+
UniformsT extends Record<string, ShaderModuleUniformValue> = NonNullable<
|
|
38
|
+
ShaderModule<PropsT>['uniforms']
|
|
39
|
+
>,
|
|
40
|
+
BindingsT extends Record<string, unknown> = NonNullable<ShaderModule<PropsT>['bindings']>,
|
|
41
|
+
RenderTargetNameT extends string = never
|
|
42
|
+
> = ShaderModule<PropsT, UniformsT, BindingsT> & {
|
|
43
|
+
/** A shader pass can run multiple sub passes */
|
|
44
|
+
passes?: FullscreenEffectDraw<UniformsT, Extract<keyof BindingsT, string>, RenderTargetNameT>[];
|
|
45
|
+
// TODO better name
|
|
46
|
+
// subPasses?: FullscreenEffectDraw[];
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** Information on how to run a specific sub pass */
|
|
50
|
+
export type FullscreenEffectDraw<
|
|
51
|
+
UniformsT extends Record<string, ShaderModuleUniformValue> = Record<
|
|
52
|
+
string,
|
|
53
|
+
ShaderModuleUniformValue
|
|
54
|
+
>,
|
|
55
|
+
BindingNameT extends string = string,
|
|
56
|
+
RenderTargetNameT extends string = string
|
|
57
|
+
> = {
|
|
58
|
+
/**
|
|
59
|
+
* Action indicates whether this pass:
|
|
60
|
+
* - filters the color in each pixel (provides a `<pass.name>_filterColor()` shader function)
|
|
61
|
+
* - performs its own sampling (provides a `<pass.name>_sampleColor()` shader function)
|
|
62
|
+
*/
|
|
63
|
+
action?: 'filter' | 'sample';
|
|
64
|
+
sampler?: boolean;
|
|
65
|
+
filter?: boolean;
|
|
66
|
+
uniforms?: UniformsT;
|
|
67
|
+
/** Mapping from shader binding name to the logical texture source. */
|
|
68
|
+
inputs?: Partial<Record<BindingNameT | 'sourceTexture', EffectInputSource<RenderTargetNameT>>>;
|
|
69
|
+
/** Output target for this sub pass. Defaults to the shared "previous" chain. */
|
|
70
|
+
output?: 'previous' | RenderTargetNameT;
|
|
71
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import type {ShaderModuleUniformValue} from '@luma.gl/shaders';
|
|
6
|
+
import type {
|
|
7
|
+
FullscreenEffectModule,
|
|
8
|
+
EffectInputSource,
|
|
9
|
+
EffectResource
|
|
10
|
+
} from './fullscreen-effect-module';
|
|
11
|
+
|
|
12
|
+
/** One ordered step in a {@link FullscreenEffectPlan}. */
|
|
13
|
+
export type FullscreenEffectStep<TargetNameT extends string = string> = {
|
|
14
|
+
shaderPass: FullscreenEffectModule<any, any, any, any>;
|
|
15
|
+
inputs?: Record<string, EffectInputSource<TargetNameT>>;
|
|
16
|
+
output?: 'previous' | TargetNameT;
|
|
17
|
+
uniforms?: Record<string, ShaderModuleUniformValue>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** Optional WebGPU compute stage that replaces equivalent fragment-only fallback passes. */
|
|
21
|
+
export type FullscreenEffectComputeStage<TargetNameT extends string = string> = {
|
|
22
|
+
/** Stable identifier used for compute resources and command labels. */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Complete WGSL compute entry point with explicit binding locations. */
|
|
25
|
+
source: string;
|
|
26
|
+
/** Existing fragment module that owns the scalar runtime uniforms. */
|
|
27
|
+
uniformModule: string;
|
|
28
|
+
/** Explicit WGSL uniform-buffer binding name used by the compute entry point. */
|
|
29
|
+
uniformBinding: string;
|
|
30
|
+
/** Scalar uniform packing order used by the compute shader. */
|
|
31
|
+
uniformNames: readonly string[];
|
|
32
|
+
/** Composite-pass scalar defaults layered below per-frame runtime overrides. */
|
|
33
|
+
uniforms: Record<string, number>;
|
|
34
|
+
/** Logical source image consumed by the fused compute dispatch. */
|
|
35
|
+
input: EffectInputSource<TargetNameT>;
|
|
36
|
+
/** Mapping from compute storage-texture names to owned render targets. */
|
|
37
|
+
outputs: Record<string, TargetNameT>;
|
|
38
|
+
/** Fragment pass names removed when the WebGPU optimization is supported. */
|
|
39
|
+
replacedPasses: readonly string[];
|
|
40
|
+
/** Compute workgroup width and height in highest-resolution output texels. */
|
|
41
|
+
workgroupSize: readonly [number, number];
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Composition format accepted by FullscreenEffectExecutor. Use EffectDefinition from
|
|
46
|
+
* @luma.gl/engine to author new fullscreen effect chains.
|
|
47
|
+
*/
|
|
48
|
+
export type FullscreenEffectPlan<TargetNameT extends string = string> = {
|
|
49
|
+
name: string;
|
|
50
|
+
renderTargets?: Record<TargetNameT, EffectResource>;
|
|
51
|
+
/** Selects an implementation for the initial stage before running shared steps. */
|
|
52
|
+
initialPasses?: {
|
|
53
|
+
compute?: Omit<FullscreenEffectComputeStage<TargetNameT>, 'replacedPasses'>;
|
|
54
|
+
fragment: FullscreenEffectStep<TargetNameT>[];
|
|
55
|
+
};
|
|
56
|
+
steps: FullscreenEffectStep<TargetNameT>[];
|
|
57
|
+
/** Optional fused WebGPU dispatch; existing fragment steps remain the portable fallback. */
|
|
58
|
+
compute?: FullscreenEffectComputeStage<TargetNameT>;
|
|
59
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import type {FullscreenEffectModule} from './fullscreen-effect-module';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Gets fragment shader source for a shader pass sub pass
|
|
@@ -10,11 +10,16 @@ import {ShaderPass} from '@luma.gl/shaders';
|
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export function getFragmentShaderForRenderPass(options: {
|
|
13
|
-
shaderPass:
|
|
13
|
+
shaderPass: FullscreenEffectModule;
|
|
14
14
|
action: 'filter' | 'sample';
|
|
15
15
|
shadingLanguage: 'wgsl' | 'glsl';
|
|
16
16
|
}): string {
|
|
17
17
|
const {shaderPass, action, shadingLanguage} = options;
|
|
18
|
+
if (shadingLanguage === 'glsl' ? !shaderPass.fs : !shaderPass.source) {
|
|
19
|
+
throw new Error(
|
|
20
|
+
`${shaderPass.name}: fullscreen effect requires a ${shadingLanguage} fragment implementation`
|
|
21
|
+
);
|
|
22
|
+
}
|
|
18
23
|
switch (action) {
|
|
19
24
|
case 'filter':
|
|
20
25
|
const filterFunc = `${shaderPass.name}_filterColor_ext`;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import type {CommandEncoder, Framebuffer, RenderPass, RenderPassProps} from '@luma.gl/core';
|
|
6
|
+
|
|
7
|
+
type SceneCapturePassProps = Omit<RenderPassProps, 'framebuffer' | 'id'>;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A scene draw into a named framebuffer. The scene owns the framebuffer and its
|
|
11
|
+
* attachments, so a definition can run against different views or slices on each frame.
|
|
12
|
+
*/
|
|
13
|
+
export type SceneCapturePassDefinition<Frame, Target extends string, DrawResult = void> = {
|
|
14
|
+
/** Default GPU command label. A caller can supply a label for a particular view. */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Name of the framebuffer bound for this draw. */
|
|
17
|
+
target: Target;
|
|
18
|
+
/** Static attachment clear, load, and access settings. */
|
|
19
|
+
pass?: SceneCapturePassProps;
|
|
20
|
+
/** Frame-dependent settings, such as a slice scissor rectangle or attachment clear value. */
|
|
21
|
+
getPassProps?: (frame: Frame) => SceneCapturePassProps;
|
|
22
|
+
/** Prepare GPU resources before the render pass opens. */
|
|
23
|
+
prepare?: (commandEncoder: CommandEncoder, frame: Frame) => void;
|
|
24
|
+
/** Records geometry using the active render pass. */
|
|
25
|
+
draw: (renderPass: RenderPass, frame: Frame) => DrawResult;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** Records a capture pass and returns its synchronous draw result. */
|
|
29
|
+
export function encodeSceneCapturePass<Frame, Target extends string, DrawResult>(
|
|
30
|
+
definition: SceneCapturePassDefinition<Frame, Target, DrawResult>,
|
|
31
|
+
options: {
|
|
32
|
+
commandEncoder: CommandEncoder;
|
|
33
|
+
framebuffers: Record<Target, Framebuffer>;
|
|
34
|
+
frame: Frame;
|
|
35
|
+
id?: string;
|
|
36
|
+
}
|
|
37
|
+
): DrawResult {
|
|
38
|
+
const {commandEncoder, frame} = options;
|
|
39
|
+
definition.prepare?.(commandEncoder, frame);
|
|
40
|
+
const renderPass = commandEncoder.beginRenderPass({
|
|
41
|
+
...definition.pass,
|
|
42
|
+
...definition.getPassProps?.(frame),
|
|
43
|
+
id: options.id ?? definition.name,
|
|
44
|
+
framebuffer: options.framebuffers[definition.target]
|
|
45
|
+
});
|
|
46
|
+
try {
|
|
47
|
+
return definition.draw(renderPass, frame);
|
|
48
|
+
} finally {
|
|
49
|
+
renderPass.end();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -12,10 +12,13 @@ import {
|
|
|
12
12
|
} from './scenegraph-bounds';
|
|
13
13
|
import type {ScenegraphBounds} from './scenegraph-bounds';
|
|
14
14
|
import {Model} from '../model/model';
|
|
15
|
+
import type {ScenegraphGPUAnimationResources} from '../animation/scenegraph-gpu-animation';
|
|
15
16
|
|
|
16
17
|
export type ModelNodeProps = ScenegraphNodeProps & {
|
|
17
18
|
model: Model;
|
|
18
19
|
managedResources?: any[];
|
|
20
|
+
/** Optional baked pose storage used by the primitive shader. */
|
|
21
|
+
gpuAnimation?: ScenegraphGPUAnimationResources;
|
|
19
22
|
/** Bounds of one model instance before instance and node transforms. */
|
|
20
23
|
bounds?: ScenegraphBounds;
|
|
21
24
|
/** Optional per-instance transforms used to calculate aggregate local bounds. */
|
|
@@ -24,6 +27,7 @@ export type ModelNodeProps = ScenegraphNodeProps & {
|
|
|
24
27
|
|
|
25
28
|
export class ModelNode extends ScenegraphNode {
|
|
26
29
|
readonly model: Model;
|
|
30
|
+
readonly gpuAnimation?: ScenegraphGPUAnimationResources;
|
|
27
31
|
readonly instanceMatrices: readonly NumericArray[] | null;
|
|
28
32
|
bounds: ScenegraphBounds | null = null;
|
|
29
33
|
managedResources: any[];
|
|
@@ -38,6 +42,7 @@ export class ModelNode extends ScenegraphNode {
|
|
|
38
42
|
|
|
39
43
|
// Create new Model or used supplied Model
|
|
40
44
|
this.model = props.model;
|
|
45
|
+
this.gpuAnimation = props.gpuAnimation;
|
|
41
46
|
this.managedResources = props.managedResources || [];
|
|
42
47
|
this.instanceMatrices = props.instanceMatrices || null;
|
|
43
48
|
this.bounds = props.bounds
|
package/src/shader-inputs.ts
CHANGED
|
@@ -194,7 +194,7 @@ export class ShaderInputs<
|
|
|
194
194
|
/**
|
|
195
195
|
* Gets binding values for a single shader module without flattening them into the full shader map.
|
|
196
196
|
*
|
|
197
|
-
* This is used by systems such as {@link
|
|
197
|
+
* This is used by systems such as {@link FullscreenEffectExecutor} that execute one shader module at a
|
|
198
198
|
* time and need the defaults for just that module.
|
|
199
199
|
*/
|
|
200
200
|
getModuleBindingValues(
|
|
@@ -8,7 +8,12 @@ import {
|
|
|
8
8
|
type Binding,
|
|
9
9
|
type CommandEncoder,
|
|
10
10
|
type Device,
|
|
11
|
+
type Framebuffer,
|
|
11
12
|
type RenderPass,
|
|
13
|
+
type RenderPipeline,
|
|
14
|
+
type RenderPipelineParameters,
|
|
15
|
+
type TextureFormatColor,
|
|
16
|
+
type TextureFormatDepthStencil,
|
|
12
17
|
type ShaderLayout
|
|
13
18
|
} from '@luma.gl/core';
|
|
14
19
|
import {Computation, Model} from '@luma.gl/engine';
|
|
@@ -24,7 +29,6 @@ import {
|
|
|
24
29
|
} from '@luma.gl/graph/gpu-core';
|
|
25
30
|
import type {GPUSplatGraphRendererProps} from './gpu-splat-graph-renderer';
|
|
26
31
|
import {
|
|
27
|
-
GPU_SPLAT_GRAPH_FEATURE_UNIFORM_BYTE_LENGTH,
|
|
28
32
|
GPU_SPLAT_GRAPH_UNIFORM_BYTE_LENGTH,
|
|
29
33
|
GPU_SPLAT_PROJECTED_RECORD_BYTE_LENGTH
|
|
30
34
|
} from './gpu-splat-graph-shaders';
|
|
@@ -48,9 +52,19 @@ import {
|
|
|
48
52
|
|
|
49
53
|
const WORKGROUP_SIZE = 256;
|
|
50
54
|
const MINIMUM_SEMANTIC_SELECTION_CAPACITY = 64;
|
|
55
|
+
/** Paged feature uniforms include a 16-byte aligned RGB scale. */
|
|
56
|
+
const PAGED_FEATURE_UNIFORM_BYTE_LENGTH = 64;
|
|
51
57
|
|
|
52
58
|
/** One intact caller-owned source page and its optional batch-local active-row frontier. */
|
|
53
59
|
export type GPUPagedSplatPage = {
|
|
60
|
+
/** Per-page source-to-clip transform. */
|
|
61
|
+
modelViewProjectionMatrix?: readonly number[];
|
|
62
|
+
/** Camera in the page's source frame. */
|
|
63
|
+
cameraPosition?: readonly [number, number, number];
|
|
64
|
+
/** Per-page alpha multiplier. */
|
|
65
|
+
alphaScale?: number;
|
|
66
|
+
/** Linear RGB tint applied after feature evaluation. */
|
|
67
|
+
colorScale?: readonly [number, number, number];
|
|
54
68
|
/** Stable page identity used to retain source topology and renderer-owned index buffers. */
|
|
55
69
|
id: string;
|
|
56
70
|
/** Original caller-owned prepared source allocation, never rewritten or destroyed here. */
|
|
@@ -229,6 +243,8 @@ export class GPUPagedSplatRenderer {
|
|
|
229
243
|
private readonly pageRevisions = new Map<string, number>();
|
|
230
244
|
private plannedSegments: PlannedSourceSegment[] = [];
|
|
231
245
|
private includeRenderPass = true;
|
|
246
|
+
/** Pipeline variants retained for the current graph model. */
|
|
247
|
+
private readonly hostPipelines = new Map<string, RenderPipeline>();
|
|
232
248
|
private model?: Model;
|
|
233
249
|
private sortedValuesBuffer?: Buffer;
|
|
234
250
|
private semanticSelectionBuffer?: Buffer;
|
|
@@ -497,12 +513,55 @@ export class GPUPagedSplatRenderer {
|
|
|
497
513
|
return this.encodeFrame(commandEncoder, false);
|
|
498
514
|
}
|
|
499
515
|
|
|
500
|
-
/**
|
|
501
|
-
|
|
516
|
+
/**
|
|
517
|
+
* Draws prepared splats into a caller-owned pass without clearing, ending, or submitting it.
|
|
518
|
+
* Pipeline overrides apply only to this draw. Attachment formats and samples come from the pass.
|
|
519
|
+
*/
|
|
520
|
+
draw(renderPass: RenderPass, parameters?: RenderPipelineParameters): void {
|
|
502
521
|
if (this.isDestroyed || !this.hasPresentedContent || !this.model) {
|
|
503
522
|
return;
|
|
504
523
|
}
|
|
505
|
-
|
|
524
|
+
const framebuffer =
|
|
525
|
+
(renderPass as RenderPass & {framebuffer?: Framebuffer}).framebuffer ??
|
|
526
|
+
renderPass.props.framebuffer;
|
|
527
|
+
const colorAttachmentFormats = framebuffer?.colorAttachments.map(attachment =>
|
|
528
|
+
attachment ? (attachment.texture.format as TextureFormatColor) : null
|
|
529
|
+
) ?? [this.device.preferredColorFormat];
|
|
530
|
+
const depthStencilAttachmentFormat = framebuffer?.depthStencilAttachment?.texture.format as
|
|
531
|
+
| TextureFormatDepthStencil
|
|
532
|
+
| undefined;
|
|
533
|
+
const resolvedParameters: RenderPipelineParameters = {
|
|
534
|
+
...this.model.pipeline.props.parameters,
|
|
535
|
+
...parameters,
|
|
536
|
+
sampleCount: framebuffer?.props.samples ?? 1
|
|
537
|
+
};
|
|
538
|
+
if (depthStencilAttachmentFormat) {
|
|
539
|
+
resolvedParameters.depthFormat = depthStencilAttachmentFormat;
|
|
540
|
+
}
|
|
541
|
+
for (const key of Object.keys(resolvedParameters) as (keyof RenderPipelineParameters)[]) {
|
|
542
|
+
if (
|
|
543
|
+
(!depthStencilAttachmentFormat && /^(depth|stencil)/.test(key)) ||
|
|
544
|
+
(resolvedParameters.blend === false && key !== 'blend' && key.startsWith('blend'))
|
|
545
|
+
) {
|
|
546
|
+
delete resolvedParameters[key];
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
const key = JSON.stringify([
|
|
550
|
+
colorAttachmentFormats,
|
|
551
|
+
depthStencilAttachmentFormat,
|
|
552
|
+
resolvedParameters
|
|
553
|
+
]);
|
|
554
|
+
let pipeline = this.hostPipelines.get(key);
|
|
555
|
+
if (!pipeline) {
|
|
556
|
+
pipeline = this.model.pipelineFactory.createRenderPipeline({
|
|
557
|
+
...this.model.pipeline.props,
|
|
558
|
+
colorAttachmentFormats,
|
|
559
|
+
depthStencilAttachmentFormat,
|
|
560
|
+
parameters: resolvedParameters
|
|
561
|
+
});
|
|
562
|
+
this.hostPipelines.set(key, pipeline);
|
|
563
|
+
}
|
|
564
|
+
renderPass.setPipeline(pipeline);
|
|
506
565
|
renderPass.setVertexArray(this.model.vertexArray);
|
|
507
566
|
for (const segment of this.outputSegments) {
|
|
508
567
|
renderPass.setBindings({
|
|
@@ -783,7 +842,7 @@ export class GPUPagedSplatRenderer {
|
|
|
783
842
|
);
|
|
784
843
|
const featureUniformBuffer = this.createUniformBuffer(
|
|
785
844
|
`paged-gaussian-features-${planned.id}`,
|
|
786
|
-
|
|
845
|
+
PAGED_FEATURE_UNIFORM_BYTE_LENGTH
|
|
787
846
|
);
|
|
788
847
|
return {
|
|
789
848
|
...planned,
|
|
@@ -1286,10 +1345,13 @@ fn main() {
|
|
|
1286
1345
|
const uniformData = new ArrayBuffer(GPU_SPLAT_GRAPH_UNIFORM_BYTE_LENGTH);
|
|
1287
1346
|
const floatValues = new Float32Array(uniformData);
|
|
1288
1347
|
const integerValues = new Uint32Array(uniformData);
|
|
1289
|
-
floatValues.set(
|
|
1348
|
+
floatValues.set(
|
|
1349
|
+
segment.page.modelViewProjectionMatrix ?? this.props.modelViewProjectionMatrix,
|
|
1350
|
+
0
|
|
1351
|
+
);
|
|
1290
1352
|
floatValues.set(this.props.viewportSize, 16);
|
|
1291
1353
|
floatValues[18] = this.props.radiusScale;
|
|
1292
|
-
floatValues[19] = this.props.alphaScale;
|
|
1354
|
+
floatValues[19] = this.props.alphaScale * (segment.page.alphaScale ?? 1);
|
|
1293
1355
|
floatValues[20] = this.props.alphaCutoff;
|
|
1294
1356
|
floatValues[21] = this.props.screenSizeCutoffPixels;
|
|
1295
1357
|
floatValues[22] = this.props.gaussianSupportRadius;
|
|
@@ -1309,7 +1371,7 @@ fn main() {
|
|
|
1309
1371
|
integerValues[31] = segment.sourceRowOffset;
|
|
1310
1372
|
segment.uniformBuffer.write(new Uint8Array(uniformData));
|
|
1311
1373
|
|
|
1312
|
-
const featureData = new ArrayBuffer(
|
|
1374
|
+
const featureData = new ArrayBuffer(PAGED_FEATURE_UNIFORM_BYTE_LENGTH);
|
|
1313
1375
|
const featureFloatValues = new Float32Array(featureData);
|
|
1314
1376
|
const featureIntegerValues = new Uint32Array(featureData);
|
|
1315
1377
|
const batch = segment.page.data;
|
|
@@ -1317,7 +1379,7 @@ fn main() {
|
|
|
1317
1379
|
batch.sphericalHarmonics && this.props.sphericalHarmonicsDegree > 0
|
|
1318
1380
|
? Math.min(batch.sphericalHarmonicsDegree, this.props.sphericalHarmonicsDegree)
|
|
1319
1381
|
: 0;
|
|
1320
|
-
featureFloatValues.set(this.props.cameraPosition, 0);
|
|
1382
|
+
featureFloatValues.set(segment.page.cameraPosition ?? this.props.cameraPosition, 0);
|
|
1321
1383
|
featureIntegerValues[3] = degree;
|
|
1322
1384
|
featureIntegerValues[4] = getSplatSphericalHarmonicCoefficientCount(
|
|
1323
1385
|
batch.sphericalHarmonicsDegree
|
|
@@ -1331,6 +1393,7 @@ fn main() {
|
|
|
1331
1393
|
? 1
|
|
1332
1394
|
: 0;
|
|
1333
1395
|
featureIntegerValues[10] = this.props.semanticFilter ? 1 : 0;
|
|
1396
|
+
featureFloatValues.set(segment.page.colorScale ?? [1, 1, 1], 12);
|
|
1334
1397
|
segment.featureUniformBuffer.write(new Uint8Array(featureData));
|
|
1335
1398
|
}
|
|
1336
1399
|
}
|
|
@@ -1501,6 +1564,11 @@ fn main() {
|
|
|
1501
1564
|
this.compiledGraph?.destroy();
|
|
1502
1565
|
this.compiledGraph = undefined;
|
|
1503
1566
|
this.lastEncoding = undefined;
|
|
1567
|
+
if (this.model) {
|
|
1568
|
+
for (const pipeline of this.hostPipelines.values())
|
|
1569
|
+
this.model.pipelineFactory.release(pipeline);
|
|
1570
|
+
}
|
|
1571
|
+
this.hostPipelines.clear();
|
|
1504
1572
|
this.model?.destroy();
|
|
1505
1573
|
this.model = undefined;
|
|
1506
1574
|
for (const buffer of this.ownedBuffers) {
|
|
@@ -113,7 +113,11 @@ export const GPU_PAGED_SPLAT_FEATURE_SHADER = replacePagedShaderSource(
|
|
|
113
113
|
replacePagedShaderSource(
|
|
114
114
|
replacePagedShaderSource(
|
|
115
115
|
replacePagedShaderSource(
|
|
116
|
-
|
|
116
|
+
replacePagedShaderSource(
|
|
117
|
+
GPU_SPLAT_FEATURE_SHADER,
|
|
118
|
+
' semanticFilterActive: u32,\n padding: u32,\n};',
|
|
119
|
+
' semanticFilterActive: u32,\n padding: u32,\n colorScale: vec3<f32>,\n};'
|
|
120
|
+
),
|
|
117
121
|
'const INVALID_FEATURE_DEPTH_KEY: u32 = 65535u;',
|
|
118
122
|
`const INVALID_FEATURE_DEPTH_KEY: u32 = ${GPU_PAGED_SPLAT_INVALID_DEPTH_KEY}u;`
|
|
119
123
|
),
|
|
@@ -164,6 +168,8 @@ export const GPU_PAGED_SPLAT_FEATURE_SHADER = replacePagedShaderSource(
|
|
|
164
168
|
projectedColor.a
|
|
165
169
|
);
|
|
166
170
|
}
|
|
171
|
+
let tintedColor = projectedRecords[projectedRowIndex].color;
|
|
172
|
+
projectedRecords[projectedRowIndex].color = vec4<f32>(tintedColor.rgb * featureUniforms.colorScale, tintedColor.a);
|
|
167
173
|
atomicAdd(&drawCommands[1u], 1u);
|
|
168
174
|
}
|
|
169
175
|
`
|
|
@@ -66,6 +66,7 @@ const DEFAULT_BROWSER_FONT_ATLAS_SETTINGS: ResolvedBrowserFontAtlasSettings = {
|
|
|
66
66
|
fontSize: 64,
|
|
67
67
|
buffer: 4
|
|
68
68
|
};
|
|
69
|
+
/** Width in pixels of the canvas that browser font atlases pack glyphs into. */
|
|
69
70
|
export const MAX_CANVAS_WIDTH = 1024;
|
|
70
71
|
const DEFAULT_ASCENT = 0.9;
|
|
71
72
|
const DEFAULT_DESCENT = 0.3;
|
|
@@ -73,12 +74,22 @@ const CACHE_LIMIT = 3;
|
|
|
73
74
|
|
|
74
75
|
let cache = new LRUCache<FontAtlas>(CACHE_LIMIT);
|
|
75
76
|
|
|
76
|
-
/**
|
|
77
|
+
/** Resets the shared generated atlas cache to the requested capacity. */
|
|
77
78
|
export function setFontAtlasCacheLimit(limit: number): void {
|
|
79
|
+
validateCacheLimit(limit);
|
|
80
|
+
cache = new LRUCache(limit);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Ensures the shared generated atlas cache can hold at least this many entries. */
|
|
84
|
+
export function ensureFontAtlasCacheCapacity(limit: number): void {
|
|
85
|
+
validateCacheLimit(limit);
|
|
86
|
+
cache.grow(limit);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function validateCacheLimit(limit: number): void {
|
|
78
90
|
if (!Number.isFinite(limit) || limit < CACHE_LIMIT) {
|
|
79
91
|
throw new Error(`Font atlas cache limit must be at least ${CACHE_LIMIT}`);
|
|
80
92
|
}
|
|
81
|
-
cache = new LRUCache(limit);
|
|
82
93
|
}
|
|
83
94
|
|
|
84
95
|
/** Applies stable browser-font defaults without constructing an atlas. */
|
|
@@ -5,12 +5,17 @@
|
|
|
5
5
|
/** Minimal insertion-ordered LRU cache owned by font atlas generation. */
|
|
6
6
|
export class LRUCache<ValueT> {
|
|
7
7
|
private readonly cache = new Map<string, ValueT>();
|
|
8
|
-
private
|
|
8
|
+
private limit: number;
|
|
9
9
|
|
|
10
10
|
constructor(limit: number) {
|
|
11
11
|
this.limit = limit;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/** Increases capacity while preserving entries and their recency. */
|
|
15
|
+
grow(limit: number): void {
|
|
16
|
+
this.limit = Math.max(this.limit, limit);
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
get(key: string): ValueT | undefined {
|
|
15
20
|
const value = this.cache.get(key);
|
|
16
21
|
if (value === undefined) {
|
|
@@ -40,9 +40,11 @@ const DEFAULT_SDF_FONT_ATLAS_SETTINGS: Required<
|
|
|
40
40
|
export function buildSdfFontAtlas(props: SdfFontAtlasSettings = {}): FontAtlas {
|
|
41
41
|
const {cutoff, radius, smoothing} = {...DEFAULT_SDF_FONT_ATLAS_SETTINGS, ...props};
|
|
42
42
|
const settings = resolveBrowserFontAtlasSettings(props);
|
|
43
|
-
//
|
|
43
|
+
// Reserve the full exterior distance field in both packing and rasterization (deck.gl#10780).
|
|
44
44
|
const fieldPadding = Math.ceil(radius * (1 - cutoff));
|
|
45
|
-
|
|
45
|
+
// TinySDF clips glyphs to `fontSize + 3 * buffer` and pads each side by `buffer`, so bitmaps are
|
|
46
|
+
// at most `fontSize + 5 * buffer` wide. Cap the padding so that width fits the atlas.
|
|
47
|
+
const maxPadding = Math.floor((MAX_CANVAS_WIDTH - settings.fontSize) / 5);
|
|
46
48
|
settings.buffer = Math.max(settings.buffer, Math.min(fieldPadding, maxPadding));
|
|
47
49
|
const {fontFamily, fontWeight, fontSize, buffer} = settings;
|
|
48
50
|
return buildBrowserFontAtlas({
|
package/src/text/fonts/index.ts
CHANGED
|
@@ -45,8 +45,10 @@ export {
|
|
|
45
45
|
|
|
46
46
|
export {
|
|
47
47
|
buildBrowserFontAtlas,
|
|
48
|
+
MAX_CANVAS_WIDTH,
|
|
48
49
|
resolveBrowserFontAtlasSettings,
|
|
49
50
|
setFontAtlasCacheLimit,
|
|
51
|
+
ensureFontAtlasCacheCapacity,
|
|
50
52
|
type BrowserFontAtlasBuildOptions,
|
|
51
53
|
type BrowserFontAtlasSettings,
|
|
52
54
|
type ResolvedBrowserFontAtlasSettings,
|
|
@@ -40,6 +40,9 @@ export function mergeShaderModuleBindingsIntoLayout<TShaderLayout extends AnySha
|
|
|
40
40
|
if (binding && bindingLayout.visibility !== undefined) {
|
|
41
41
|
binding.visibility = bindingLayout.visibility;
|
|
42
42
|
}
|
|
43
|
+
if (binding?.type === 'texture' && bindingLayout.sampleType !== undefined) {
|
|
44
|
+
binding.sampleType = bindingLayout.sampleType;
|
|
45
|
+
}
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
}
|