@luma.gl/engine 10.0.0-rc.2 → 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 +7 -0
- package/dist/dist.dev.js +106 -37
- package/dist/dist.min.js +51 -51
- package/dist/effects/graph/gpu-effect-operation.cjs +79 -20
- package/dist/effects/graph/gpu-effect-operation.d.ts +44 -18
- package/dist/effects/graph/gpu-effect-operation.d.ts.map +1 -1
- package/dist/effects/graph/gpu-effect-operation.js +72 -8
- package/dist/effects/graph/gpu-effect-operation.js.map +1 -1
- package/dist/effects/index.cjs +62 -4
- package/dist/effects/index.cjs.map +3 -3
- package/dist/effects/index.d.ts +34 -13
- package/dist/effects/index.d.ts.map +1 -1
- package/dist/effects/index.js +23 -3
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts +6 -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.map +1 -1
- package/dist/effects/passes/postprocessing/image-blur-filters/bloom-compute-pyramid.d.ts +2 -2
- 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-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.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/camera-reprojection-temporal-antialiasing.js.map +1 -1
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.cjs +18 -4
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.d.ts +28 -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 +17 -3
- package/dist/effects/passes/screen-space/clustered-volumetric-lighting.js.map +1 -1
- package/dist/effects/passes/screen-space/copy-pass.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/copy-pass.js.map +1 -1
- package/dist/effects/passes/screen-space/depth-aware-blur.cjs +0 -7
- package/dist/effects/passes/screen-space/depth-aware-blur.d.ts +0 -106
- package/dist/effects/passes/screen-space/depth-aware-blur.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/depth-aware-blur.js +0 -6
- package/dist/effects/passes/screen-space/depth-aware-blur.js.map +1 -1
- package/dist/effects/passes/screen-space/dof.cjs +2 -9
- package/dist/effects/passes/screen-space/dof.d.ts +1 -123
- package/dist/effects/passes/screen-space/dof.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/dof.js +1 -7
- package/dist/effects/passes/screen-space/dof.js.map +1 -1
- package/dist/effects/passes/screen-space/gtao.cjs +11 -2
- package/dist/effects/passes/screen-space/gtao.d.ts +37 -6
- package/dist/effects/passes/screen-space/gtao.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/gtao.js +11 -2
- package/dist/effects/passes/screen-space/gtao.js.map +1 -1
- package/dist/effects/passes/screen-space/hdr-auto-exposure.d.ts +2 -2
- package/dist/effects/passes/screen-space/hdr-auto-exposure.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/hdr-auto-exposure.js.map +1 -1
- package/dist/effects/passes/screen-space/height-fog.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/height-fog.js.map +1 -1
- package/dist/effects/passes/screen-space/motion-blur.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/motion-blur.js.map +1 -1
- package/dist/effects/passes/screen-space/outlines.d.ts +2 -2
- package/dist/effects/passes/screen-space/outlines.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/outlines.js.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-global-illumination.cjs +12 -2
- package/dist/effects/passes/screen-space/screen-space-global-illumination.d.ts +26 -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 +12 -2
- package/dist/effects/passes/screen-space/screen-space-global-illumination.js.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.cjs +14 -2
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts +26 -5
- package/dist/effects/passes/screen-space/screen-space-reflections.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/screen-space-reflections.js +14 -2
- package/dist/effects/passes/screen-space/screen-space-reflections.js.map +1 -1
- package/dist/effects/passes/screen-space/selection-outline.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/selection-outline.js.map +1 -1
- package/dist/effects/passes/screen-space/ssao.d.ts +2 -2
- package/dist/effects/passes/screen-space/ssao.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/effects/passes/screen-space/temporal-antialiasing.js.map +1 -1
- package/dist/effects/passes/screen-space/volumetric-fog.d.ts +2 -2
- package/dist/effects/passes/screen-space/volumetric-fog.d.ts.map +1 -1
- 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/graph/models/index.cjs.map +1 -1
- package/dist/graph/physics/index.cjs.map +1 -1
- package/dist/graph/tables/index.cjs.map +1 -1
- package/dist/index.cjs +0 -3
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/lighting/clustered-light-grid.cjs +2 -6
- package/dist/lighting/clustered-light-grid.d.ts +1 -5
- package/dist/lighting/clustered-light-grid.d.ts.map +1 -1
- package/dist/lighting/clustered-light-grid.js +2 -6
- package/dist/lighting/clustered-light-grid.js.map +1 -1
- package/dist/lighting/contact-shadow-composite.cjs +8 -8
- package/dist/lighting/contact-shadow-composite.d.ts +10 -22
- package/dist/lighting/contact-shadow-composite.d.ts.map +1 -1
- package/dist/lighting/contact-shadow-composite.js +8 -8
- package/dist/lighting/contact-shadow-composite.js.map +1 -1
- package/dist/lighting/contact-shadow-pass.cjs +6 -6
- package/dist/lighting/contact-shadow-pass.js +6 -6
- package/dist/lighting/contact-shadow-pass.js.map +1 -1
- package/dist/lighting/index.cjs.map +3 -3
- package/dist/lighting/index.d.ts +2 -2
- package/dist/lighting/index.d.ts.map +1 -1
- package/dist/lighting/index.js.map +1 -1
- package/dist/passes/effect-renderer.cjs +43 -8
- package/dist/passes/effect-renderer.d.ts +41 -17
- package/dist/passes/effect-renderer.d.ts.map +1 -1
- package/dist/passes/effect-renderer.js +47 -8
- package/dist/passes/effect-renderer.js.map +1 -1
- package/dist/passes/{shader-pass-renderer.cjs → fullscreen-effect-executor.cjs} +39 -28
- package/dist/passes/{shader-pass-renderer.d.ts → fullscreen-effect-executor.d.ts} +48 -37
- package/dist/passes/fullscreen-effect-executor.d.ts.map +1 -0
- package/dist/passes/{shader-pass-renderer.js → fullscreen-effect-executor.js} +30 -26
- 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/shader-inputs.cjs +1 -1
- package/dist/shader-inputs.d.ts +1 -1
- package/dist/shader-inputs.js +1 -1
- package/dist/text/fonts/atlas/browser-font-atlas.d.ts +1 -0
- package/dist/text/fonts/atlas/browser-font-atlas.d.ts.map +1 -1
- package/dist/text/fonts/atlas/browser-font-atlas.js +1 -0
- package/dist/text/fonts/atlas/browser-font-atlas.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 +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/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 +6 -6
- package/src/effects/README.md +2 -2
- package/src/effects/graph/gpu-effect-operation.ts +152 -33
- package/src/effects/index.ts +85 -14
- 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 +2 -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 +2 -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 +21 -17
- package/src/effects/passes/postprocessing/image-blur-filters/bloom-compute-pyramid.ts +2 -2
- 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 +3 -3
- package/src/effects/passes/screen-space/clustered-volumetric-lighting.ts +28 -12
- package/src/effects/passes/screen-space/copy-pass.ts +2 -2
- package/src/effects/passes/screen-space/depth-aware-blur.ts +2 -9
- package/src/effects/passes/screen-space/dof.ts +12 -11
- package/src/effects/passes/screen-space/gtao.ts +22 -12
- package/src/effects/passes/screen-space/hdr-auto-exposure.ts +8 -8
- package/src/effects/passes/screen-space/height-fog.ts +3 -3
- package/src/effects/passes/screen-space/motion-blur.ts +2 -2
- package/src/effects/passes/screen-space/outlines.ts +6 -6
- package/src/effects/passes/screen-space/screen-space-global-illumination.ts +23 -12
- package/src/effects/passes/screen-space/screen-space-reflections.ts +24 -12
- package/src/effects/passes/screen-space/selection-outline.ts +2 -2
- package/src/effects/passes/screen-space/ssao.ts +6 -6
- package/src/effects/passes/screen-space/ssr-camera-temporal.ts +4 -4
- package/src/effects/passes/screen-space/temporal-antialiasing.ts +3 -3
- package/src/effects/passes/screen-space/volumetric-fog.ts +5 -5
- package/src/effects/scene-effect-attachments.ts +26 -0
- package/src/index.ts +3 -6
- package/src/lighting/clustered-light-grid.ts +2 -10
- package/src/lighting/contact-shadow-composite.ts +11 -11
- package/src/lighting/contact-shadow-pass.ts +6 -6
- package/src/lighting/index.ts +2 -3
- package/src/passes/effect-renderer.ts +106 -34
- package/src/passes/{shader-pass-renderer.ts → fullscreen-effect-executor.ts} +115 -75
- 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/shader-inputs.ts +1 -1
- package/src/text/fonts/atlas/browser-font-atlas.ts +1 -0
- package/src/text/fonts/build-sdf-font-atlas.ts +4 -2
- package/src/text/fonts/index.ts +1 -0
- package/src/utils/shader-module-utils.ts +3 -0
- package/dist/passes/shader-pass-renderer.d.ts.map +0 -1
- package/dist/passes/shader-pass-renderer.js.map +0 -1
package/dist/effects/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { SceneEffectAttachments } from "./scene-effect-attachments.js";
|
|
1
2
|
export type { BrightnessContrastProps, BrightnessContrastUniforms } from "./passes/postprocessing/image-adjust-filters/brightnesscontrast.js";
|
|
2
3
|
export { brightnessContrast } from "./passes/postprocessing/image-adjust-filters/brightnesscontrast.js";
|
|
3
4
|
export type { DenoiseProps, DenoiseUniforms } from "./passes/postprocessing/image-adjust-filters/denoise.js";
|
|
@@ -21,10 +22,10 @@ export type { TiltShiftProps, TiltShiftUniforms } from "./passes/postprocessing/
|
|
|
21
22
|
export { tiltShift } from "./passes/postprocessing/image-blur-filters/tiltshift.js";
|
|
22
23
|
export type { BloomProps, BloomUniforms } from "./passes/postprocessing/image-blur-filters/bloom.js";
|
|
23
24
|
export { bloom } from "./passes/postprocessing/image-blur-filters/bloom.js";
|
|
24
|
-
export type { BloomLensEffectsOptions,
|
|
25
|
+
export type { BloomLensEffectsOptions, BloomEffectOptions } from "./passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.js";
|
|
25
26
|
export { bloomLow, hdrBloom, multiscaleBloomEffect } from "./passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.js";
|
|
26
27
|
export type { DofProps, DofUniforms } from "./passes/screen-space/dof.js";
|
|
27
|
-
export { dof, bokehDof, bokehDofEffect, depthOfField
|
|
28
|
+
export { dof, bokehDof, bokehDofEffect, depthOfField } from "./passes/screen-space/dof.js";
|
|
28
29
|
export type { TriangleBlurProps, TriangleBlurUniforms } from "./passes/postprocessing/image-blur-filters/triangleblur.js";
|
|
29
30
|
export { triangleBlur } from "./passes/postprocessing/image-blur-filters/triangleblur.js";
|
|
30
31
|
export type { ZoomBlurProps, ZoomBlurUniforms } from "./passes/postprocessing/image-blur-filters/zoomblur.js";
|
|
@@ -48,30 +49,30 @@ export { swirl } from "./passes/postprocessing/image-warp-filters/swirl.js";
|
|
|
48
49
|
export { fxaa, fxaaEffect } from "./passes/postprocessing/fxaa/fxaa.js";
|
|
49
50
|
export type { WarpProps, WarpUniforms } from "./passes/postprocessing/image-warp-filters/warp.js";
|
|
50
51
|
export { warp as _warp } from "./passes/postprocessing/image-warp-filters/warp.js";
|
|
51
|
-
export type {
|
|
52
|
+
export type { ClusteredVolumetricLightingEffectOptions } from "./passes/screen-space/clustered-volumetric-lighting.js";
|
|
52
53
|
export { clusteredVolumetricComposite, clusteredVolumetricDepthHistoryCopy, clusteredVolumetricTemporal, clusteredVolumetricTrace } from "./passes/screen-space/clustered-volumetric-lighting.js";
|
|
53
54
|
export type { CameraReprojectionTAAUniforms } from "./passes/screen-space/camera-reprojection-temporal-antialiasing.js";
|
|
54
55
|
export { cameraReprojectionTaaDepthHistoryCopy, cameraReprojectionTaaResolve, cameraReprojectionTaa } from "./passes/screen-space/camera-reprojection-temporal-antialiasing.js";
|
|
55
56
|
export type { DepthAwareBlurProps } from "./passes/screen-space/depth-aware-blur.js";
|
|
56
|
-
export { depthAwareBlur,
|
|
57
|
-
export type {
|
|
57
|
+
export { depthAwareBlur, depthAwareBlurEffect } from "./passes/screen-space/depth-aware-blur.js";
|
|
58
|
+
export type { HDRAutoExposureEffectOptions } from "./passes/screen-space/hdr-auto-exposure.js";
|
|
58
59
|
export { hdrAutoExposureAdapt, hdrAutoExposureApply, hdrLuminanceExtract, hdrLuminanceReduce } from "./passes/screen-space/hdr-auto-exposure.js";
|
|
59
60
|
export { motionBlur } from "./passes/screen-space/motion-blur.js";
|
|
60
|
-
export type {
|
|
61
|
+
export type { GTAOEffectOptions } from "./passes/screen-space/gtao.js";
|
|
61
62
|
export { gtaoAmbientComposite, gtaoComposite, gtaoDepthHistoryCopy, gtaoEvaluate, gtaoTemporal } from "./passes/screen-space/gtao.js";
|
|
62
|
-
export type {
|
|
63
|
-
export type {
|
|
63
|
+
export type { OutlineEffectOptions } from "./passes/screen-space/outlines.js";
|
|
64
|
+
export type { SSGIEffectOptions } from "./passes/screen-space/screen-space-global-illumination.js";
|
|
64
65
|
export { ssgiComposite, ssgiDepthHistoryCopy, ssgiSpatial, ssgiTemporal, ssgiTrace } from "./passes/screen-space/screen-space-global-illumination.js";
|
|
65
|
-
export type {
|
|
66
|
+
export type { SSREffectOptions, SSRQuality } from "./passes/screen-space/screen-space-reflections.js";
|
|
66
67
|
export { SSR_QUALITY_PRESETS, ssrComposite, ssrDepthHistoryCopy, ssrSpatial, ssrTemporal, ssrTrace } from "./passes/screen-space/screen-space-reflections.js";
|
|
67
|
-
export type {
|
|
68
|
+
export type { SSAOEffectOptions } from "./passes/screen-space/ssao.js";
|
|
68
69
|
export { ssao, ssaoEffect } from "./passes/screen-space/ssao.js";
|
|
69
70
|
export { taa } from "./passes/screen-space/temporal-antialiasing.js";
|
|
70
71
|
export { ssrCameraTemporal, ssrNormalHistoryCopy, ssrCameraDepthHistoryCopy } from "./passes/screen-space/ssr-camera-temporal.js";
|
|
71
72
|
export type { SSRCameraTemporalUniforms } from "./passes/screen-space/ssr-camera-temporal.js";
|
|
72
73
|
export { heightFog, heightFogPass } from "./passes/screen-space/height-fog.js";
|
|
73
74
|
export type { HeightFogPassProps, HeightFogPassUniforms } from "./passes/screen-space/height-fog.js";
|
|
74
|
-
export type {
|
|
75
|
+
export type { VolumetricFogEffectOptions } from "./passes/screen-space/volumetric-fog.js";
|
|
75
76
|
export { selectionOutline, selectionOutlineEffect, type SelectionOutlineProps, type SelectionOutlineUniforms } from "./passes/screen-space/selection-outline.js";
|
|
76
77
|
export { brightnessContrastEffect, denoiseEffect, hueSaturationEffect, noiseEffect, persistence, sepiaEffect, vibranceEffect, vignetteEffect, bloomEffect, gaussianBlurEffect, tiltShiftEffect, triangleBlurEffect, zoomBlurEffect, colorHalftoneEffect, dotScreenEffect, edgeWorkEffect, hexagonalPixelateEffect, inkEffect, magnifyEffect, bulgePinchEffect, swirlEffect } from "./glfx-effects.js";
|
|
77
78
|
export { outlines } from "./passes/screen-space/outlines.js";
|
|
@@ -86,9 +87,29 @@ export type { TemporalFrameJitter, TemporalJitter } from "./passes/screen-space/
|
|
|
86
87
|
export * from "./temporal-upscale/index.js";
|
|
87
88
|
export { GPUEffectOperation, appendEffects, createEffectRenderOperation, effectOperationLowering } from "./graph/gpu-effect-operation.js";
|
|
88
89
|
export type { EffectRenderOperationProps, GPUEffectEntries, GPUEffectOperationProps } from "./graph/gpu-effect-operation.js";
|
|
89
|
-
export { addGraphTAA } from "./graph/gpu-effect-operation.js";
|
|
90
|
-
export type { GraphTAAProps } from "./graph/gpu-effect-operation.js";
|
|
90
|
+
export { GPUCommandEffectOperation, addGraphTAA } from "./graph/gpu-effect-operation.js";
|
|
91
|
+
export type { GraphEffectsProps, GraphTAAProps } from "./graph/gpu-effect-operation.js";
|
|
91
92
|
export { importTemporalGraphHistory } from "./graph/temporal-graph-history.js";
|
|
92
93
|
export type { TemporalGraphHistory } from "./graph/temporal-graph-history.js";
|
|
93
94
|
export type { TemporalFrame } from "./passes/screen-space/temporal-frame.js";
|
|
95
|
+
export { lutColorGradingEffect, type LutColorGradingProps } from "./passes/postprocessing/image-adjust-filters/lut-color-grading.js";
|
|
96
|
+
export { packColorLut, type PackColorLutOptions, type PackedColorLut } from "./passes/postprocessing/image-adjust-filters/pack-color-lut.js";
|
|
97
|
+
export { sharpenEffect, type SharpenProps } from "./passes/postprocessing/image-adjust-filters/sharpen.js";
|
|
98
|
+
export { outputDitheringEffect, type OutputDitheringProps } from "./passes/postprocessing/image-adjust-filters/output-dithering.js";
|
|
99
|
+
export { chromaticAberrationEffect, type ChromaticAberrationProps } from "./passes/postprocessing/image-adjust-filters/chromatic-aberration.js";
|
|
100
|
+
export { highPassEffect, type HighPassProps } from "./passes/postprocessing/detail/high-pass.js";
|
|
101
|
+
export { localContrastEffect, type LocalContrastProps } from "./passes/postprocessing/detail/local-contrast.js";
|
|
102
|
+
export { smaaEffect, type SMAAProps } from "./passes/postprocessing/smaa.js";
|
|
103
|
+
export { levelsEffect, type LevelsProps } from "./passes/postprocessing/image-adjust-filters/levels.js";
|
|
104
|
+
export { posterizeEffect, type PosterizeProps } from "./passes/postprocessing/image-adjust-filters/posterize.js";
|
|
105
|
+
export { thresholdEffect, type ThresholdProps } from "./passes/postprocessing/image-adjust-filters/threshold.js";
|
|
106
|
+
export { displacementMapEffect, type DisplacementMapProps } from "./passes/postprocessing/image-warp-filters/displacement-map.js";
|
|
107
|
+
export { bevelEffect, type BevelProps } from "./passes/postprocessing/layer-styles/bevel.js";
|
|
108
|
+
export { dropShadowEffect, type DropShadowProps } from "./passes/postprocessing/layer-styles/drop-shadow.js";
|
|
109
|
+
export { lensFlareEffect, type LensFlareProps } from "./passes/postprocessing/optical/lens-flare.js";
|
|
110
|
+
export { lightShaftsEffect, type LightShaftsProps } from "./passes/postprocessing/optical/light-shafts.js";
|
|
111
|
+
export { selectiveGlowEffect, type SelectiveGlowProps } from "./passes/postprocessing/optical/selective-glow.js";
|
|
112
|
+
export { curvesEffect, type CurvesProps } from "./passes/postprocessing/grading/curves.js";
|
|
113
|
+
export { liftGammaGainEffect, type LiftGammaGainProps } from "./passes/postprocessing/grading/lift-gamma-gain.js";
|
|
114
|
+
export { shadowsHighlightsEffect, type ShadowsHighlightsProps } from "./passes/postprocessing/grading/shadows-highlights.js";
|
|
94
115
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAIA,YAAY,EAAC,sBAAsB,EAA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AAO,EACL,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,uEAAoE;AACrE,OAAO,EACL,aAAa,EACb,KAAK,YAAY,EAClB,gEAA6D;AAC9D,OAAO,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EAC1B,yEAAsE;AAEvE,OAAO,EACL,yBAAyB,EACzB,KAAK,wBAAwB,EAC9B,6EAA0E;AAE3E,OAAO,EAAC,cAAc,EAAE,KAAK,aAAa,EAAC,oDAAiD;AAC5F,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACxB,yDAAsD;AAEvD,OAAO,EAAC,UAAU,EAAE,KAAK,SAAS,EAAC,wCAAqC;AACxE,OAAO,EAAC,YAAY,EAAE,KAAK,WAAW,EAAC,+DAA4D;AAEnG,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACpB,kEAA+D;AAChE,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACpB,kEAA+D;AAChE,OAAO,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EAC1B,uEAAoE;AAErE,OAAO,EAAC,WAAW,EAAE,KAAK,UAAU,EAAC,sDAAmD;AACxF,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACrB,4DAAyD;AAE1D,OAAO,EAAC,eAAe,EAAE,KAAK,cAAc,EAAC,sDAAmD;AAChG,OAAO,EACL,iBAAiB,EACjB,KAAK,gBAAgB,EACtB,wDAAqD;AACtD,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACxB,0DAAuD;AAExD,OAAO,EAAC,YAAY,EAAE,KAAK,WAAW,EAAC,kDAA+C;AACtF,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACxB,2DAAwD;AACzD,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,EAC5B,8DAA2D"}
|
package/dist/effects/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export { gaussianBlur } from "./passes/postprocessing/image-blur-filters/gaussia
|
|
|
14
14
|
export { tiltShift } from "./passes/postprocessing/image-blur-filters/tiltshift.js";
|
|
15
15
|
export { bloom } from "./passes/postprocessing/image-blur-filters/bloom.js";
|
|
16
16
|
export { bloomLow, hdrBloom, multiscaleBloomEffect } from "./passes/postprocessing/image-blur-filters/bloom-composite-shader-pass.js";
|
|
17
|
-
export { dof, bokehDof, bokehDofEffect, depthOfField
|
|
17
|
+
export { dof, bokehDof, bokehDofEffect, depthOfField } from "./passes/screen-space/dof.js";
|
|
18
18
|
export { triangleBlur } from "./passes/postprocessing/image-blur-filters/triangleblur.js";
|
|
19
19
|
export { zoomBlur } from "./passes/postprocessing/image-blur-filters/zoomblur.js";
|
|
20
20
|
export { colorHalftone } from "./passes/postprocessing/image-fun-filters/colorhalftone.js";
|
|
@@ -31,7 +31,7 @@ export { fxaa, fxaaEffect } from "./passes/postprocessing/fxaa/fxaa.js";
|
|
|
31
31
|
export { warp as _warp } from "./passes/postprocessing/image-warp-filters/warp.js";
|
|
32
32
|
export { clusteredVolumetricComposite, clusteredVolumetricDepthHistoryCopy, clusteredVolumetricTemporal, clusteredVolumetricTrace } from "./passes/screen-space/clustered-volumetric-lighting.js";
|
|
33
33
|
export { cameraReprojectionTaaDepthHistoryCopy, cameraReprojectionTaaResolve, cameraReprojectionTaa } from "./passes/screen-space/camera-reprojection-temporal-antialiasing.js";
|
|
34
|
-
export { depthAwareBlur,
|
|
34
|
+
export { depthAwareBlur, depthAwareBlurEffect } from "./passes/screen-space/depth-aware-blur.js";
|
|
35
35
|
export { hdrAutoExposureAdapt, hdrAutoExposureApply, hdrLuminanceExtract, hdrLuminanceReduce } from "./passes/screen-space/hdr-auto-exposure.js";
|
|
36
36
|
export { motionBlur } from "./passes/screen-space/motion-blur.js";
|
|
37
37
|
export { gtaoAmbientComposite, gtaoComposite, gtaoDepthHistoryCopy, gtaoEvaluate, gtaoTemporal } from "./passes/screen-space/gtao.js";
|
|
@@ -55,6 +55,26 @@ export { volumetricFog } from "./passes/screen-space/volumetric-fog.js";
|
|
|
55
55
|
export { contactShadows } from "../lighting/contact-shadow-composite.js";
|
|
56
56
|
export * from "./temporal-upscale/index.js";
|
|
57
57
|
export { GPUEffectOperation, appendEffects, createEffectRenderOperation, effectOperationLowering } from "./graph/gpu-effect-operation.js";
|
|
58
|
-
export { addGraphTAA } from "./graph/gpu-effect-operation.js";
|
|
58
|
+
export { GPUCommandEffectOperation, addGraphTAA } from "./graph/gpu-effect-operation.js";
|
|
59
59
|
export { importTemporalGraphHistory } from "./graph/temporal-graph-history.js";
|
|
60
|
+
export { lutColorGradingEffect } from "./passes/postprocessing/image-adjust-filters/lut-color-grading.js";
|
|
61
|
+
export { packColorLut } from "./passes/postprocessing/image-adjust-filters/pack-color-lut.js";
|
|
62
|
+
export { sharpenEffect } from "./passes/postprocessing/image-adjust-filters/sharpen.js";
|
|
63
|
+
export { outputDitheringEffect } from "./passes/postprocessing/image-adjust-filters/output-dithering.js";
|
|
64
|
+
export { chromaticAberrationEffect } from "./passes/postprocessing/image-adjust-filters/chromatic-aberration.js";
|
|
65
|
+
export { highPassEffect } from "./passes/postprocessing/detail/high-pass.js";
|
|
66
|
+
export { localContrastEffect } from "./passes/postprocessing/detail/local-contrast.js";
|
|
67
|
+
export { smaaEffect } from "./passes/postprocessing/smaa.js";
|
|
68
|
+
export { levelsEffect } from "./passes/postprocessing/image-adjust-filters/levels.js";
|
|
69
|
+
export { posterizeEffect } from "./passes/postprocessing/image-adjust-filters/posterize.js";
|
|
70
|
+
export { thresholdEffect } from "./passes/postprocessing/image-adjust-filters/threshold.js";
|
|
71
|
+
export { displacementMapEffect } from "./passes/postprocessing/image-warp-filters/displacement-map.js";
|
|
72
|
+
export { bevelEffect } from "./passes/postprocessing/layer-styles/bevel.js";
|
|
73
|
+
export { dropShadowEffect } from "./passes/postprocessing/layer-styles/drop-shadow.js";
|
|
74
|
+
export { lensFlareEffect } from "./passes/postprocessing/optical/lens-flare.js";
|
|
75
|
+
export { lightShaftsEffect } from "./passes/postprocessing/optical/light-shafts.js";
|
|
76
|
+
export { selectiveGlowEffect } from "./passes/postprocessing/optical/selective-glow.js";
|
|
77
|
+
export { curvesEffect } from "./passes/postprocessing/grading/curves.js";
|
|
78
|
+
export { liftGammaGainEffect } from "./passes/postprocessing/grading/lift-gamma-gain.js";
|
|
79
|
+
export { shadowsHighlightsEffect } from "./passes/postprocessing/grading/shadows-highlights.js";
|
|
60
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAW5D,OAAO,EAAC,kBAAkB,EAAC,2EAAwE;AAKnG,OAAO,EAAC,OAAO,EAAC,gEAA6D;AAK7E,OAAO,EAAC,aAAa,EAAC,sEAAmE;AAEzF,OAAO,EAAC,KAAK,EAAC,8DAA2D;AACzE,OAAO,EAAC,iBAAiB,EAAC,oEAAiE;AAE3F,OAAO,EAAC,KAAK,EAAC,8DAA2D;AAKzE,OAAO,EACL,WAAW,EACX,iBAAiB,EAClB,qEAAkE;AAKnE,OAAO,EAAC,QAAQ,EAAC,iEAA8D;AAK/E,OAAO,EAAC,QAAQ,EAAC,iEAA8D;AAO/E,OAAO,EAAC,YAAY,EAAC,mEAAgE;AAKrF,OAAO,EAAC,SAAS,EAAC,gEAA6D;AAK/E,OAAO,EAAC,KAAK,EAAC,4DAAyD;AAKvE,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,qBAAqB,EACtB,kFAA+E;AAKhF,OAAO,EACL,GAAG,EACH,QAAQ,EACR,cAAc,EACd,YAAY,EACb,qCAAkC;AAKnC,OAAO,EAAC,YAAY,EAAC,mEAAgE;AAKrF,OAAO,EAAC,QAAQ,EAAC,+DAA4D;AAO7E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AACxE,OAAO,EAAC,YAAY,EAAmB,+DAA4D;AAEnG,OAAO,EACL,eAAe,EAEhB,kEAA+D;AAChE,OAAO,EACL,eAAe,EAEhB,kEAA+D;AAChE,OAAO,EACL,qBAAqB,EAEtB,uEAAoE;AAErE,OAAO,EAAC,WAAW,EAAkB,sDAAmD;AACxF,OAAO,EACL,gBAAgB,EAEjB,4DAAyD;AAE1D,OAAO,EAAC,eAAe,EAAsB,sDAAmD;AAChG,OAAO,EACL,iBAAiB,EAElB,wDAAqD;AACtD,OAAO,EACL,mBAAmB,EAEpB,0DAAuD;AAExD,OAAO,EAAC,YAAY,EAAmB,kDAA+C;AACtF,OAAO,EACL,mBAAmB,EAEpB,2DAAwD;AACzD,OAAO,EACL,uBAAuB,EAExB,8DAA2D"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 detail_blur_exports = {};
|
|
19
|
+
__export(detail_blur_exports, {
|
|
20
|
+
DETAIL_BINDINGS: () => DETAIL_BINDINGS,
|
|
21
|
+
DETAIL_COMPOSITE_INPUTS: () => DETAIL_COMPOSITE_INPUTS,
|
|
22
|
+
DETAIL_GLSL: () => DETAIL_GLSL,
|
|
23
|
+
DETAIL_RADIUS: () => DETAIL_RADIUS,
|
|
24
|
+
DETAIL_RESOURCES: () => DETAIL_RESOURCES,
|
|
25
|
+
DETAIL_WGSL: () => DETAIL_WGSL,
|
|
26
|
+
makeDetailBlurPasses: () => makeDetailBlurPasses
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(detail_blur_exports);
|
|
29
|
+
var import_gaussianblur = require("../image-blur-filters/gaussianblur.cjs");
|
|
30
|
+
const DETAIL_RADIUS = 8;
|
|
31
|
+
const DETAIL_TARGET = {
|
|
32
|
+
format: "rgba8unorm",
|
|
33
|
+
sampler: { minFilter: "linear", magFilter: "linear" }
|
|
34
|
+
};
|
|
35
|
+
const DETAIL_RESOURCES = { horizontal: DETAIL_TARGET, blurred: DETAIL_TARGET };
|
|
36
|
+
function makeDetailBlurPasses(name, radius) {
|
|
37
|
+
const module2 = {
|
|
38
|
+
...import_gaussianblur.gaussianBlur,
|
|
39
|
+
name,
|
|
40
|
+
source: import_gaussianblur.gaussianBlur.source.replaceAll("gaussianBlur", name),
|
|
41
|
+
fs: import_gaussianblur.gaussianBlur.fs.replaceAll("gaussianBlur", name)
|
|
42
|
+
};
|
|
43
|
+
return [
|
|
44
|
+
{
|
|
45
|
+
kind: "sample",
|
|
46
|
+
module: module2,
|
|
47
|
+
uniforms: { delta: [1, 0], radius },
|
|
48
|
+
output: "horizontal"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
kind: "sample",
|
|
52
|
+
module: module2,
|
|
53
|
+
inputs: { sourceTexture: "horizontal" },
|
|
54
|
+
uniforms: { delta: [0, 1], radius },
|
|
55
|
+
output: "blurred"
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
const DETAIL_COMPOSITE_INPUTS = {
|
|
60
|
+
sourceTexture: "previous",
|
|
61
|
+
detailTexture: "blurred"
|
|
62
|
+
};
|
|
63
|
+
const DETAIL_BINDINGS = [
|
|
64
|
+
{ name: "detailTexture", group: 0 },
|
|
65
|
+
{ name: "detailTextureSampler", group: 0 }
|
|
66
|
+
];
|
|
67
|
+
const DETAIL_WGSL = (
|
|
68
|
+
/* wgsl */
|
|
69
|
+
`
|
|
70
|
+
@group(0) @binding(auto) var detailTexture: texture_2d<f32>;
|
|
71
|
+
@group(0) @binding(auto) var detailTextureSampler: sampler;
|
|
72
|
+
fn readDetailBlur(texCoord: vec2f) -> vec4f {
|
|
73
|
+
return textureSampleLevel(detailTexture, detailTextureSampler, texCoord, 0.0);
|
|
74
|
+
}
|
|
75
|
+
`
|
|
76
|
+
);
|
|
77
|
+
const DETAIL_GLSL = (
|
|
78
|
+
/* glsl */
|
|
79
|
+
`
|
|
80
|
+
uniform sampler2D detailTexture;
|
|
81
|
+
vec4 readDetailBlur(vec2 texCoord) {
|
|
82
|
+
return textureLod(detailTexture, texCoord, 0.0);
|
|
83
|
+
}
|
|
84
|
+
`
|
|
85
|
+
);
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
DETAIL_BINDINGS,
|
|
89
|
+
DETAIL_COMPOSITE_INPUTS,
|
|
90
|
+
DETAIL_GLSL,
|
|
91
|
+
DETAIL_RADIUS,
|
|
92
|
+
DETAIL_RESOURCES,
|
|
93
|
+
DETAIL_WGSL,
|
|
94
|
+
makeDetailBlurPasses
|
|
95
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/** Named targets used by the horizontal and vertical Gaussian passes. */
|
|
2
|
+
export type DetailTarget = 'horizontal' | 'blurred';
|
|
3
|
+
/** Default Gaussian footprint in full-resolution source pixels. */
|
|
4
|
+
export declare const DETAIL_RADIUS = 8;
|
|
5
|
+
/** Shared target specifications for display-referred detail effects. */
|
|
6
|
+
export declare const DETAIL_RESOURCES: {
|
|
7
|
+
readonly horizontal: {
|
|
8
|
+
readonly format: "rgba8unorm";
|
|
9
|
+
readonly sampler: {
|
|
10
|
+
readonly minFilter: "linear";
|
|
11
|
+
readonly magFilter: "linear";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
readonly blurred: {
|
|
15
|
+
readonly format: "rgba8unorm";
|
|
16
|
+
readonly sampler: {
|
|
17
|
+
readonly minFilter: "linear";
|
|
18
|
+
readonly magFilter: "linear";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/** Reuses the Gaussian kernel with independent uniforms for each detail effect. */
|
|
23
|
+
export declare function makeDetailBlurPasses<ModuleName extends string>(name: ModuleName, radius: number): [{
|
|
24
|
+
readonly kind: "sample";
|
|
25
|
+
readonly module: {
|
|
26
|
+
readonly name: ModuleName;
|
|
27
|
+
readonly source: string;
|
|
28
|
+
readonly fs: string;
|
|
29
|
+
readonly props: import("../image-blur-filters/gaussianblur").GaussianBlurProps;
|
|
30
|
+
readonly uniforms: import("../image-blur-filters/gaussianblur").GaussianBlurUniforms;
|
|
31
|
+
readonly uniformTypes: {
|
|
32
|
+
readonly radius: "f32";
|
|
33
|
+
readonly delta: "vec2<f32>";
|
|
34
|
+
};
|
|
35
|
+
readonly propTypes: {
|
|
36
|
+
readonly radius: {
|
|
37
|
+
readonly value: 12;
|
|
38
|
+
readonly min: 0;
|
|
39
|
+
readonly max: 32;
|
|
40
|
+
readonly softMax: 32;
|
|
41
|
+
};
|
|
42
|
+
readonly delta: {
|
|
43
|
+
readonly value: readonly [1, 0];
|
|
44
|
+
readonly private: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly passes: [{
|
|
48
|
+
readonly sampler: true;
|
|
49
|
+
readonly uniforms: {
|
|
50
|
+
readonly delta: [1, 0];
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
readonly sampler: true;
|
|
54
|
+
readonly uniforms: {
|
|
55
|
+
readonly delta: [0, 1];
|
|
56
|
+
};
|
|
57
|
+
}];
|
|
58
|
+
};
|
|
59
|
+
readonly uniforms: {
|
|
60
|
+
readonly delta: [1, 0];
|
|
61
|
+
readonly radius: number;
|
|
62
|
+
};
|
|
63
|
+
readonly output: "horizontal";
|
|
64
|
+
}, {
|
|
65
|
+
readonly kind: "sample";
|
|
66
|
+
readonly module: {
|
|
67
|
+
readonly name: ModuleName;
|
|
68
|
+
readonly source: string;
|
|
69
|
+
readonly fs: string;
|
|
70
|
+
readonly props: import("../image-blur-filters/gaussianblur").GaussianBlurProps;
|
|
71
|
+
readonly uniforms: import("../image-blur-filters/gaussianblur").GaussianBlurUniforms;
|
|
72
|
+
readonly uniformTypes: {
|
|
73
|
+
readonly radius: "f32";
|
|
74
|
+
readonly delta: "vec2<f32>";
|
|
75
|
+
};
|
|
76
|
+
readonly propTypes: {
|
|
77
|
+
readonly radius: {
|
|
78
|
+
readonly value: 12;
|
|
79
|
+
readonly min: 0;
|
|
80
|
+
readonly max: 32;
|
|
81
|
+
readonly softMax: 32;
|
|
82
|
+
};
|
|
83
|
+
readonly delta: {
|
|
84
|
+
readonly value: readonly [1, 0];
|
|
85
|
+
readonly private: true;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly passes: [{
|
|
89
|
+
readonly sampler: true;
|
|
90
|
+
readonly uniforms: {
|
|
91
|
+
readonly delta: [1, 0];
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
readonly sampler: true;
|
|
95
|
+
readonly uniforms: {
|
|
96
|
+
readonly delta: [0, 1];
|
|
97
|
+
};
|
|
98
|
+
}];
|
|
99
|
+
};
|
|
100
|
+
readonly inputs: {
|
|
101
|
+
readonly sourceTexture: "horizontal";
|
|
102
|
+
};
|
|
103
|
+
readonly uniforms: {
|
|
104
|
+
readonly delta: [0, 1];
|
|
105
|
+
readonly radius: number;
|
|
106
|
+
};
|
|
107
|
+
readonly output: "blurred";
|
|
108
|
+
}];
|
|
109
|
+
/** Routes the unmodified input and its blurred copy to the final draw. */
|
|
110
|
+
export declare const DETAIL_COMPOSITE_INPUTS: {
|
|
111
|
+
readonly sourceTexture: "previous";
|
|
112
|
+
readonly detailTexture: "blurred";
|
|
113
|
+
};
|
|
114
|
+
/** Binds the blurred color image in both fragment backends. */
|
|
115
|
+
export declare const DETAIL_BINDINGS: readonly [{
|
|
116
|
+
readonly name: "detailTexture";
|
|
117
|
+
readonly group: 0;
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "detailTextureSampler";
|
|
120
|
+
readonly group: 0;
|
|
121
|
+
}];
|
|
122
|
+
/** Blur texture declarations shared by the WGSL detail passes. */
|
|
123
|
+
export declare const DETAIL_WGSL = "\n@group(0) @binding(auto) var detailTexture: texture_2d<f32>;\n@group(0) @binding(auto) var detailTextureSampler: sampler;\nfn readDetailBlur(texCoord: vec2f) -> vec4f {\n return textureSampleLevel(detailTexture, detailTextureSampler, texCoord, 0.0);\n}\n";
|
|
124
|
+
/** Blur texture declarations shared by the GLSL detail passes. */
|
|
125
|
+
export declare const DETAIL_GLSL = "\nuniform sampler2D detailTexture;\nvec4 readDetailBlur(vec2 texCoord) {\n return textureLod(detailTexture, texCoord, 0.0);\n}\n";
|
|
126
|
+
//# sourceMappingURL=detail-blur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail-blur.d.ts","sourceRoot":"","sources":["../../../../../src/effects/passes/postprocessing/detail/detail-blur.ts"],"names":[],"mappings":"AAQA,yEAAyE;AACzE,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC;AAEpD,mEAAmE;AACnE,eAAO,MAAM,aAAa,IAAI,CAAC;AAQ/B,wEAAwE;AACxE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;CAA+D,CAAC;AAE7F,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,UAAU,SAAS,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuB/F;AAED,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AAEX,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;EAGlB,CAAC;AAEX,kEAAkE;AAClE,eAAO,MAAM,WAAW,sQAMvB,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,WAAW,sIAKvB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
import { gaussianBlur } from "../image-blur-filters/gaussianblur.js";
|
|
5
|
+
/** Default Gaussian footprint in full-resolution source pixels. */
|
|
6
|
+
export const DETAIL_RADIUS = 8;
|
|
7
|
+
/** Full-resolution, linear targets for detail-band subtraction. */
|
|
8
|
+
const DETAIL_TARGET = {
|
|
9
|
+
format: 'rgba8unorm',
|
|
10
|
+
sampler: { minFilter: 'linear', magFilter: 'linear' }
|
|
11
|
+
};
|
|
12
|
+
/** Shared target specifications for display-referred detail effects. */
|
|
13
|
+
export const DETAIL_RESOURCES = { horizontal: DETAIL_TARGET, blurred: DETAIL_TARGET };
|
|
14
|
+
/** Reuses the Gaussian kernel with independent uniforms for each detail effect. */
|
|
15
|
+
export function makeDetailBlurPasses(name, radius) {
|
|
16
|
+
const module = {
|
|
17
|
+
...gaussianBlur,
|
|
18
|
+
name,
|
|
19
|
+
source: gaussianBlur.source.replaceAll('gaussianBlur', name),
|
|
20
|
+
fs: gaussianBlur.fs.replaceAll('gaussianBlur', name)
|
|
21
|
+
};
|
|
22
|
+
return [
|
|
23
|
+
{
|
|
24
|
+
kind: 'sample',
|
|
25
|
+
module,
|
|
26
|
+
uniforms: { delta: [1, 0], radius },
|
|
27
|
+
output: 'horizontal'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
kind: 'sample',
|
|
31
|
+
module,
|
|
32
|
+
inputs: { sourceTexture: 'horizontal' },
|
|
33
|
+
uniforms: { delta: [0, 1], radius },
|
|
34
|
+
output: 'blurred'
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
/** Routes the unmodified input and its blurred copy to the final draw. */
|
|
39
|
+
export const DETAIL_COMPOSITE_INPUTS = {
|
|
40
|
+
sourceTexture: 'previous',
|
|
41
|
+
detailTexture: 'blurred'
|
|
42
|
+
};
|
|
43
|
+
/** Binds the blurred color image in both fragment backends. */
|
|
44
|
+
export const DETAIL_BINDINGS = [
|
|
45
|
+
{ name: 'detailTexture', group: 0 },
|
|
46
|
+
{ name: 'detailTextureSampler', group: 0 }
|
|
47
|
+
];
|
|
48
|
+
/** Blur texture declarations shared by the WGSL detail passes. */
|
|
49
|
+
export const DETAIL_WGSL = /* wgsl */ `
|
|
50
|
+
@group(0) @binding(auto) var detailTexture: texture_2d<f32>;
|
|
51
|
+
@group(0) @binding(auto) var detailTextureSampler: sampler;
|
|
52
|
+
fn readDetailBlur(texCoord: vec2f) -> vec4f {
|
|
53
|
+
return textureSampleLevel(detailTexture, detailTextureSampler, texCoord, 0.0);
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
/** Blur texture declarations shared by the GLSL detail passes. */
|
|
57
|
+
export const DETAIL_GLSL = /* glsl */ `
|
|
58
|
+
uniform sampler2D detailTexture;
|
|
59
|
+
vec4 readDetailBlur(vec2 texCoord) {
|
|
60
|
+
return textureLod(detailTexture, texCoord, 0.0);
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
//# sourceMappingURL=detail-blur.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail-blur.js","sourceRoot":"","sources":["../../../../../src/effects/passes/postprocessing/detail/detail-blur.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAI5D,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AAE,eAAe,EAAE,KAAK,EAAE,CAAC,EAAC;IACjC,EAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC,EAAC;CAChC,CAAC;AAEX,kEAAkE;AAClE,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC;;;;;;CAMrC,CAAC;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC;;;;;CAKrC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 high_pass_exports = {};
|
|
19
|
+
__export(high_pass_exports, {
|
|
20
|
+
highPassEffect: () => highPassEffect
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(high_pass_exports);
|
|
23
|
+
var import_detail_blur = require("./detail-blur.cjs");
|
|
24
|
+
const blurPasses = (0, import_detail_blur.makeDetailBlurPasses)("highPassBlur", import_detail_blur.DETAIL_RADIUS);
|
|
25
|
+
const module2 = {
|
|
26
|
+
name: "highPass",
|
|
27
|
+
source: (
|
|
28
|
+
/* wgsl */
|
|
29
|
+
`
|
|
30
|
+
${import_detail_blur.DETAIL_WGSL}
|
|
31
|
+
struct highPassUniforms { gain: f32, bias: f32 };
|
|
32
|
+
@group(0) @binding(auto) var<uniform> highPass: highPassUniforms;
|
|
33
|
+
|
|
34
|
+
fn highPass_filterColor_ext(color: vec4f, texSize: vec2f, texCoord: vec2f) -> vec4f {
|
|
35
|
+
let blurred = readDetailBlur(texCoord);
|
|
36
|
+
let difference = color.rgb - blurred.rgb;
|
|
37
|
+
let covered = color.a > 0.0 && abs(blurred.a - color.a) <= 0.004;
|
|
38
|
+
let adjusted = vec3f(highPass.bias) + select(vec3f(0.0), difference, covered) * max(0.0, highPass.gain);
|
|
39
|
+
return vec4f(clamp(adjusted, vec3f(0.0), vec3f(1.0)), color.a);
|
|
40
|
+
}
|
|
41
|
+
`
|
|
42
|
+
),
|
|
43
|
+
fs: (
|
|
44
|
+
/* glsl */
|
|
45
|
+
`
|
|
46
|
+
${import_detail_blur.DETAIL_GLSL}
|
|
47
|
+
layout(std140) uniform highPassUniforms { float gain; float bias; } highPass;
|
|
48
|
+
|
|
49
|
+
vec4 highPass_filterColor_ext(vec4 color, vec2 texSize, vec2 texCoord) {
|
|
50
|
+
vec4 blurred = readDetailBlur(texCoord);
|
|
51
|
+
vec3 difference = color.rgb - blurred.rgb;
|
|
52
|
+
bool covered = color.a > 0.0 && abs(blurred.a - color.a) <= 0.004;
|
|
53
|
+
vec3 adjusted = vec3(highPass.bias) + (covered ? difference : vec3(0.0)) * max(0.0, highPass.gain);
|
|
54
|
+
return vec4(clamp(adjusted, 0.0, 1.0), color.a);
|
|
55
|
+
}
|
|
56
|
+
`
|
|
57
|
+
),
|
|
58
|
+
props: {},
|
|
59
|
+
uniformTypes: { gain: "f32", bias: "f32" },
|
|
60
|
+
defaultUniforms: { gain: 1, bias: 0.5 },
|
|
61
|
+
propTypes: { gain: { value: 1, min: 0, softMax: 4 }, bias: { value: 0.5, min: 0, max: 1 } },
|
|
62
|
+
bindingLayout: import_detail_blur.DETAIL_BINDINGS
|
|
63
|
+
};
|
|
64
|
+
const highPassEffect = {
|
|
65
|
+
name: module2.name,
|
|
66
|
+
optionDefaults: { ...module2.defaultUniforms, radius: import_detail_blur.DETAIL_RADIUS },
|
|
67
|
+
optionUniforms: {
|
|
68
|
+
[blurPasses[0].module.name]: { radius: { option: "radius" } },
|
|
69
|
+
highPass: { gain: { option: "gain" }, bias: { option: "bias" } }
|
|
70
|
+
},
|
|
71
|
+
resources: import_detail_blur.DETAIL_RESOURCES,
|
|
72
|
+
passes: [
|
|
73
|
+
...blurPasses,
|
|
74
|
+
{ kind: "filter", module: module2, inputs: import_detail_blur.DETAIL_COMPOSITE_INPUTS, output: "previous" }
|
|
75
|
+
]
|
|
76
|
+
};
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
highPassEffect
|
|
80
|
+
});
|