@pmndrs/vdb 0.0.0-stage → 0.2.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/CHANGELOG.md +727 -0
- package/LICENSE +21 -0
- package/README.md +496 -2
- package/THIRD_PARTY_NOTICES.md +315 -0
- package/dist/core/compute/atlas.d.ts +102 -0
- package/dist/core/compute/atlas.js +103 -0
- package/dist/core/compute/atlas.js.map +1 -0
- package/dist/core/compute/index.d.ts +13 -0
- package/dist/core/compute/index.js +9 -0
- package/dist/core/compute/index.js.map +1 -0
- package/dist/core/compute/majorant-build.d.ts +45 -0
- package/dist/core/compute/majorant-build.js +193 -0
- package/dist/core/compute/majorant-build.js.map +1 -0
- package/dist/core/compute/multi-scale.d.ts +155 -0
- package/dist/core/compute/multi-scale.js +684 -0
- package/dist/core/compute/multi-scale.js.map +1 -0
- package/dist/core/compute/pyramid.d.ts +120 -0
- package/dist/core/compute/pyramid.js +468 -0
- package/dist/core/compute/pyramid.js.map +1 -0
- package/dist/core/compute/shared.d.ts +116 -0
- package/dist/core/compute/shared.js +211 -0
- package/dist/core/compute/shared.js.map +1 -0
- package/dist/core/compute/stats.d.ts +78 -0
- package/dist/core/compute/stats.js +193 -0
- package/dist/core/compute/stats.js.map +1 -0
- package/dist/core/compute/value-transform.d.ts +30 -0
- package/dist/core/compute/value-transform.js +64 -0
- package/dist/core/compute/value-transform.js.map +1 -0
- package/dist/core/errors.d.ts +21 -0
- package/dist/core/errors.js +17 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/frame/emission.d.ts +85 -0
- package/dist/core/frame/emission.js +422 -0
- package/dist/core/frame/emission.js.map +1 -0
- package/dist/core/frame/environment.d.ts +47 -0
- package/dist/core/frame/environment.js +178 -0
- package/dist/core/frame/environment.js.map +1 -0
- package/dist/core/frame/index.d.ts +39 -0
- package/dist/core/frame/index.js +27 -0
- package/dist/core/frame/index.js.map +1 -0
- package/dist/core/frame/kernels.d.ts +115 -0
- package/dist/core/frame/kernels.js +496 -0
- package/dist/core/frame/kernels.js.map +1 -0
- package/dist/core/frame/limits.d.ts +67 -0
- package/dist/core/frame/limits.js +109 -0
- package/dist/core/frame/limits.js.map +1 -0
- package/dist/core/frame/phase.d.ts +17 -0
- package/dist/core/frame/phase.js +53 -0
- package/dist/core/frame/phase.js.map +1 -0
- package/dist/core/frame/pipelines.d.ts +49 -0
- package/dist/core/frame/pipelines.js +147 -0
- package/dist/core/frame/pipelines.js.map +1 -0
- package/dist/core/frame/renderer.d.ts +122 -0
- package/dist/core/frame/renderer.js +1712 -0
- package/dist/core/frame/renderer.js.map +1 -0
- package/dist/core/frame/resources.d.ts +71 -0
- package/dist/core/frame/resources.js +100 -0
- package/dist/core/frame/resources.js.map +1 -0
- package/dist/core/frame/scattering.d.ts +97 -0
- package/dist/core/frame/scattering.js +332 -0
- package/dist/core/frame/scattering.js.map +1 -0
- package/dist/core/frame/settings.d.ts +243 -0
- package/dist/core/frame/settings.js +67 -0
- package/dist/core/frame/settings.js.map +1 -0
- package/dist/core/frame/shadows.d.ts +55 -0
- package/dist/core/frame/shadows.js +460 -0
- package/dist/core/frame/shadows.js.map +1 -0
- package/dist/core/frame/types.d.ts +415 -0
- package/dist/core/frame/types.js +49 -0
- package/dist/core/frame/types.js.map +1 -0
- package/dist/core/frame/uniforms.d.ts +105 -0
- package/dist/core/frame/uniforms.js +276 -0
- package/dist/core/frame/uniforms.js.map +1 -0
- package/dist/core/frame/wgsl/chunks.d.ts +4 -0
- package/dist/core/frame/wgsl/chunks.js +728 -0
- package/dist/core/frame/wgsl/chunks.js.map +1 -0
- package/dist/core/frame/wgsl/emission.d.ts +82 -0
- package/dist/core/frame/wgsl/emission.js +353 -0
- package/dist/core/frame/wgsl/emission.js.map +1 -0
- package/dist/core/frame/wgsl/environment.d.ts +42 -0
- package/dist/core/frame/wgsl/environment.js +711 -0
- package/dist/core/frame/wgsl/environment.js.map +1 -0
- package/dist/core/frame/wgsl/gather.d.ts +55 -0
- package/dist/core/frame/wgsl/gather.js +850 -0
- package/dist/core/frame/wgsl/gather.js.map +1 -0
- package/dist/core/frame/wgsl/integrate.d.ts +78 -0
- package/dist/core/frame/wgsl/integrate.js +213 -0
- package/dist/core/frame/wgsl/integrate.js.map +1 -0
- package/dist/core/frame/wgsl/lighting.d.ts +103 -0
- package/dist/core/frame/wgsl/lighting.js +1636 -0
- package/dist/core/frame/wgsl/lighting.js.map +1 -0
- package/dist/core/frame/wgsl/occluders.d.ts +20 -0
- package/dist/core/frame/wgsl/occluders.js +95 -0
- package/dist/core/frame/wgsl/occluders.js.map +1 -0
- package/dist/core/frame/wgsl/resolve.d.ts +19 -0
- package/dist/core/frame/wgsl/resolve.js +205 -0
- package/dist/core/frame/wgsl/resolve.js.map +1 -0
- package/dist/core/frame/wgsl/shadows.d.ts +35 -0
- package/dist/core/frame/wgsl/shadows.js +328 -0
- package/dist/core/frame/wgsl/shadows.js.map +1 -0
- package/dist/core/half.d.ts +11 -0
- package/dist/core/half.js +22 -0
- package/dist/core/half.js.map +1 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +46 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/internal.d.ts +31 -0
- package/dist/core/internal.js +32 -0
- package/dist/core/internal.js.map +1 -0
- package/dist/core/pool/affine.d.ts +34 -0
- package/dist/core/pool/affine.js +100 -0
- package/dist/core/pool/affine.js.map +1 -0
- package/dist/core/pool/allocator.d.ts +32 -0
- package/dist/core/pool/allocator.js +81 -0
- package/dist/core/pool/allocator.js.map +1 -0
- package/dist/core/pool/image-header.d.ts +93 -0
- package/dist/core/pool/image-header.js +194 -0
- package/dist/core/pool/image-header.js.map +1 -0
- package/dist/core/pool/layout.d.ts +198 -0
- package/dist/core/pool/layout.js +316 -0
- package/dist/core/pool/layout.js.map +1 -0
- package/dist/core/pool/limits.d.ts +41 -0
- package/dist/core/pool/limits.js +80 -0
- package/dist/core/pool/limits.js.map +1 -0
- package/dist/core/pool/pool.d.ts +384 -0
- package/dist/core/pool/pool.js +1184 -0
- package/dist/core/pool/pool.js.map +1 -0
- package/dist/core/reference/index.d.ts +6 -0
- package/dist/core/reference/index.js +7 -0
- package/dist/core/reference/index.js.map +1 -0
- package/dist/core/reference/renderer.d.ts +105 -0
- package/dist/core/reference/renderer.js +474 -0
- package/dist/core/reference/renderer.js.map +1 -0
- package/dist/core/reference/wgsl.d.ts +65 -0
- package/dist/core/reference/wgsl.js +803 -0
- package/dist/core/reference/wgsl.js.map +1 -0
- package/dist/core/sequence.d.ts +347 -0
- package/dist/core/sequence.js +548 -0
- package/dist/core/sequence.js.map +1 -0
- package/dist/core/source/brick-cache.d.ts +165 -0
- package/dist/core/source/brick-cache.js +627 -0
- package/dist/core/source/brick-cache.js.map +1 -0
- package/dist/core/source/dense-fill.d.ts +53 -0
- package/dist/core/source/dense-fill.js +377 -0
- package/dist/core/source/dense-fill.js.map +1 -0
- package/dist/core/source/dense.d.ts +50 -0
- package/dist/core/source/dense.js +384 -0
- package/dist/core/source/dense.js.map +1 -0
- package/dist/core/source/sparse-wgsl.d.ts +92 -0
- package/dist/core/source/sparse-wgsl.js +481 -0
- package/dist/core/source/sparse-wgsl.js.map +1 -0
- package/dist/core/source/sparse.d.ts +192 -0
- package/dist/core/source/sparse.js +762 -0
- package/dist/core/source/sparse.js.map +1 -0
- package/dist/core/source/types.d.ts +120 -0
- package/dist/core/source/types.js +9 -0
- package/dist/core/source/types.js.map +1 -0
- package/dist/core/surface/index.d.ts +10 -0
- package/dist/core/surface/index.js +9 -0
- package/dist/core/surface/index.js.map +1 -0
- package/dist/core/surface/level-set-pass.d.ts +140 -0
- package/dist/core/surface/level-set-pass.js +291 -0
- package/dist/core/surface/level-set-pass.js.map +1 -0
- package/dist/core/surface/level-set-wgsl.d.ts +46 -0
- package/dist/core/surface/level-set-wgsl.js +99 -0
- package/dist/core/surface/level-set-wgsl.js.map +1 -0
- package/dist/core/surface/points.d.ts +109 -0
- package/dist/core/surface/points.js +226 -0
- package/dist/core/surface/points.js.map +1 -0
- package/dist/core/types.d.ts +37 -0
- package/dist/core/types.js +32 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/wgsl/api.d.ts +65 -0
- package/dist/core/wgsl/api.js +546 -0
- package/dist/core/wgsl/api.js.map +1 -0
- package/dist/core/wgsl/generate.d.ts +90 -0
- package/dist/core/wgsl/generate.js +678 -0
- package/dist/core/wgsl/generate.js.map +1 -0
- package/dist/core/wgsl/lean.d.ts +50 -0
- package/dist/core/wgsl/lean.js +327 -0
- package/dist/core/wgsl/lean.js.map +1 -0
- package/dist/core/wgsl/level-set.d.ts +58 -0
- package/dist/core/wgsl/level-set.js +200 -0
- package/dist/core/wgsl/level-set.js.map +1 -0
- package/dist/core/wgsl/majorant.d.ts +62 -0
- package/dist/core/wgsl/majorant.js +381 -0
- package/dist/core/wgsl/majorant.js.map +1 -0
- package/dist/core/wgsl/pnanovdb.chunks.generated.d.ts +14 -0
- package/dist/core/wgsl/pnanovdb.chunks.generated.js +333 -0
- package/dist/core/wgsl/pnanovdb.chunks.generated.js.map +1 -0
- package/dist/core/wgsl/reserved.d.ts +9 -0
- package/dist/core/wgsl/reserved.js +26 -0
- package/dist/core/wgsl/reserved.js.map +1 -0
- package/dist/core/wgsl/types.d.ts +198 -0
- package/dist/core/wgsl/types.js +2 -0
- package/dist/core/wgsl/types.js.map +1 -0
- package/dist/three/coarse-first.d.ts +207 -0
- package/dist/three/coarse-first.js +205 -0
- package/dist/three/coarse-first.js.map +1 -0
- package/dist/three/compute.d.ts +73 -0
- package/dist/three/compute.js +66 -0
- package/dist/three/compute.js.map +1 -0
- package/dist/three/device.d.ts +66 -0
- package/dist/three/device.js +62 -0
- package/dist/three/device.js.map +1 -0
- package/dist/three/frame/core-environment.d.ts +38 -0
- package/dist/three/frame/core-environment.js +154 -0
- package/dist/three/frame/core-environment.js.map +1 -0
- package/dist/three/frame/core-integrate-material.d.ts +34 -0
- package/dist/three/frame/core-integrate-material.js +162 -0
- package/dist/three/frame/core-integrate-material.js.map +1 -0
- package/dist/three/frame/core-occluders.d.ts +53 -0
- package/dist/three/frame/core-occluders.js +193 -0
- package/dist/three/frame/core-occluders.js.map +1 -0
- package/dist/three/frame/core-structs.d.ts +34 -0
- package/dist/three/frame/core-structs.js +61 -0
- package/dist/three/frame/core-structs.js.map +1 -0
- package/dist/three/frame/core-textures.d.ts +41 -0
- package/dist/three/frame/core-textures.js +114 -0
- package/dist/three/frame/core-textures.js.map +1 -0
- package/dist/three/frame/emission-light.d.ts +117 -0
- package/dist/three/frame/emission-light.js +276 -0
- package/dist/three/frame/emission-light.js.map +1 -0
- package/dist/three/frame/index.d.ts +19 -0
- package/dist/three/frame/index.js +15 -0
- package/dist/three/frame/index.js.map +1 -0
- package/dist/three/frame/medium.d.ts +33 -0
- package/dist/three/frame/medium.js +29 -0
- package/dist/three/frame/medium.js.map +1 -0
- package/dist/three/frame/renderer.d.ts +97 -0
- package/dist/three/frame/renderer.js +480 -0
- package/dist/three/frame/renderer.js.map +1 -0
- package/dist/three/frame/spectrum.d.ts +4 -0
- package/dist/three/frame/spectrum.js +15 -0
- package/dist/three/frame/spectrum.js.map +1 -0
- package/dist/three/frame/three-internals.d.ts +60 -0
- package/dist/three/frame/three-internals.js +152 -0
- package/dist/three/frame/three-internals.js.map +1 -0
- package/dist/three/frame/volume-shadows.d.ts +139 -0
- package/dist/three/frame/volume-shadows.js +403 -0
- package/dist/three/frame/volume-shadows.js.map +1 -0
- package/dist/three/frame/volume.d.ts +230 -0
- package/dist/three/frame/volume.js +268 -0
- package/dist/three/frame/volume.js.map +1 -0
- package/dist/three/grid-node.d.ts +229 -0
- package/dist/three/grid-node.js +545 -0
- package/dist/three/grid-node.js.map +1 -0
- package/dist/three/index.d.ts +52 -0
- package/dist/three/index.js +58 -0
- package/dist/three/index.js.map +1 -0
- package/dist/three/internal.d.ts +20 -0
- package/dist/three/internal.js +18 -0
- package/dist/three/internal.js.map +1 -0
- package/dist/three/level-set-material.d.ts +185 -0
- package/dist/three/level-set-material.js +241 -0
- package/dist/three/level-set-material.js.map +1 -0
- package/dist/three/level-set-physical-material.d.ts +154 -0
- package/dist/three/level-set-physical-material.js +253 -0
- package/dist/three/level-set-physical-material.js.map +1 -0
- package/dist/three/level-set-velocity.d.ts +94 -0
- package/dist/three/level-set-velocity.js +208 -0
- package/dist/three/level-set-velocity.js.map +1 -0
- package/dist/three/material.d.ts +324 -0
- package/dist/three/material.js +502 -0
- package/dist/three/material.js.map +1 -0
- package/dist/three/points.d.ts +140 -0
- package/dist/three/points.js +261 -0
- package/dist/three/points.js.map +1 -0
- package/dist/three/sparse-source.d.ts +165 -0
- package/dist/three/sparse-source.js +405 -0
- package/dist/three/sparse-source.js.map +1 -0
- package/dist/three/volume-source.d.ts +22 -0
- package/dist/three/volume-source.js +110 -0
- package/dist/three/volume-source.js.map +1 -0
- package/dist/tools/cpu/brick-atlas.d.ts +36 -0
- package/dist/tools/cpu/brick-atlas.js +129 -0
- package/dist/tools/cpu/brick-atlas.js.map +1 -0
- package/dist/tools/cpu/compute.d.ts +116 -0
- package/dist/tools/cpu/compute.js +239 -0
- package/dist/tools/cpu/compute.js.map +1 -0
- package/dist/tools/cpu/lean-reads.d.ts +81 -0
- package/dist/tools/cpu/lean-reads.js +262 -0
- package/dist/tools/cpu/lean-reads.js.map +1 -0
- package/dist/tools/cpu/level-set.d.ts +111 -0
- package/dist/tools/cpu/level-set.js +313 -0
- package/dist/tools/cpu/level-set.js.map +1 -0
- package/dist/tools/cpu/majorant.d.ts +265 -0
- package/dist/tools/cpu/majorant.js +541 -0
- package/dist/tools/cpu/majorant.js.map +1 -0
- package/dist/tools/cpu/march.d.ts +297 -0
- package/dist/tools/cpu/march.js +726 -0
- package/dist/tools/cpu/march.js.map +1 -0
- package/dist/tools/cpu/mesh-decimate.d.ts +124 -0
- package/dist/tools/cpu/mesh-decimate.js +1225 -0
- package/dist/tools/cpu/mesh-decimate.js.map +1 -0
- package/dist/tools/cpu/points.d.ts +29 -0
- package/dist/tools/cpu/points.js +38 -0
- package/dist/tools/cpu/points.js.map +1 -0
- package/dist/tools/cpu/probe-coords.d.ts +70 -0
- package/dist/tools/cpu/probe-coords.js +116 -0
- package/dist/tools/cpu/probe-coords.js.map +1 -0
- package/dist/tools/cpu/read-value.d.ts +44 -0
- package/dist/tools/cpu/read-value.js +351 -0
- package/dist/tools/cpu/read-value.js.map +1 -0
- package/dist/tools/cpu/sample-trilinear.d.ts +43 -0
- package/dist/tools/cpu/sample-trilinear.js +168 -0
- package/dist/tools/cpu/sample-trilinear.js.map +1 -0
- package/dist/tools/cpu/stride-tables.d.ts +56 -0
- package/dist/tools/cpu/stride-tables.generated.d.ts +1059 -0
- package/dist/tools/cpu/stride-tables.generated.js +1267 -0
- package/dist/tools/cpu/stride-tables.generated.js.map +1 -0
- package/dist/tools/cpu/stride-tables.js +78 -0
- package/dist/tools/cpu/stride-tables.js.map +1 -0
- package/dist/tools/cpu/surface-nets.d.ts +90 -0
- package/dist/tools/cpu/surface-nets.js +597 -0
- package/dist/tools/cpu/surface-nets.js.map +1 -0
- package/dist/tools/errors.d.ts +66 -0
- package/dist/tools/errors.js +67 -0
- package/dist/tools/errors.js.map +1 -0
- package/dist/tools/frame/ambient.d.ts +98 -0
- package/dist/tools/frame/ambient.js +274 -0
- package/dist/tools/frame/ambient.js.map +1 -0
- package/dist/tools/frame/blackbody.d.ts +57 -0
- package/dist/tools/frame/blackbody.js +151 -0
- package/dist/tools/frame/blackbody.js.map +1 -0
- package/dist/tools/frame/brick-cache.d.ts +165 -0
- package/dist/tools/frame/brick-cache.js +326 -0
- package/dist/tools/frame/brick-cache.js.map +1 -0
- package/dist/tools/frame/emission.d.ts +137 -0
- package/dist/tools/frame/emission.js +290 -0
- package/dist/tools/frame/emission.js.map +1 -0
- package/dist/tools/frame/environment-gpu.d.ts +111 -0
- package/dist/tools/frame/environment-gpu.js +280 -0
- package/dist/tools/frame/environment-gpu.js.map +1 -0
- package/dist/tools/frame/environment.d.ts +106 -0
- package/dist/tools/frame/environment.js +272 -0
- package/dist/tools/frame/environment.js.map +1 -0
- package/dist/tools/frame/froxel.d.ts +58 -0
- package/dist/tools/frame/froxel.js +115 -0
- package/dist/tools/frame/froxel.js.map +1 -0
- package/dist/tools/frame/grid.d.ts +392 -0
- package/dist/tools/frame/grid.js +802 -0
- package/dist/tools/frame/grid.js.map +1 -0
- package/dist/tools/frame/index.d.ts +150 -0
- package/dist/tools/frame/index.js +389 -0
- package/dist/tools/frame/index.js.map +1 -0
- package/dist/tools/frame/medium.d.ts +77 -0
- package/dist/tools/frame/medium.js +101 -0
- package/dist/tools/frame/medium.js.map +1 -0
- package/dist/tools/frame/mie-table.d.ts +6 -0
- package/dist/tools/frame/mie-table.js +16 -0
- package/dist/tools/frame/mie-table.js.map +1 -0
- package/dist/tools/frame/mie.d.ts +63 -0
- package/dist/tools/frame/mie.js +194 -0
- package/dist/tools/frame/mie.js.map +1 -0
- package/dist/tools/frame/mlp-nn.d.ts +36 -0
- package/dist/tools/frame/mlp-nn.js +159 -0
- package/dist/tools/frame/mlp-nn.js.map +1 -0
- package/dist/tools/frame/mlp-tza.d.ts +29 -0
- package/dist/tools/frame/mlp-tza.js +186 -0
- package/dist/tools/frame/mlp-tza.js.map +1 -0
- package/dist/tools/frame/mlp.d.ts +183 -0
- package/dist/tools/frame/mlp.js +434 -0
- package/dist/tools/frame/mlp.js.map +1 -0
- package/dist/tools/frame/ms-exit.d.ts +42 -0
- package/dist/tools/frame/ms-exit.js +90 -0
- package/dist/tools/frame/ms-exit.js.map +1 -0
- package/dist/tools/frame/multi-scale.d.ts +152 -0
- package/dist/tools/frame/multi-scale.js +302 -0
- package/dist/tools/frame/multi-scale.js.map +1 -0
- package/dist/tools/frame/neural-weights.d.ts +10 -0
- package/dist/tools/frame/neural-weights.js +244 -0
- package/dist/tools/frame/neural-weights.js.map +1 -0
- package/dist/tools/frame/neural.d.ts +80 -0
- package/dist/tools/frame/neural.js +150 -0
- package/dist/tools/frame/neural.js.map +1 -0
- package/dist/tools/frame/occluders.d.ts +51 -0
- package/dist/tools/frame/occluders.js +72 -0
- package/dist/tools/frame/occluders.js.map +1 -0
- package/dist/tools/frame/pyramid-layout.d.ts +55 -0
- package/dist/tools/frame/pyramid-layout.js +100 -0
- package/dist/tools/frame/pyramid-layout.js.map +1 -0
- package/dist/tools/frame/shadows.d.ts +190 -0
- package/dist/tools/frame/shadows.js +468 -0
- package/dist/tools/frame/shadows.js.map +1 -0
- package/dist/tools/frame/sparse.d.ts +147 -0
- package/dist/tools/frame/sparse.js +432 -0
- package/dist/tools/frame/sparse.js.map +1 -0
- package/dist/tools/frame/spectral-stack.d.ts +159 -0
- package/dist/tools/frame/spectral-stack.js +391 -0
- package/dist/tools/frame/spectral-stack.js.map +1 -0
- package/dist/tools/frame/spectral.d.ts +222 -0
- package/dist/tools/frame/spectral.js +572 -0
- package/dist/tools/frame/spectral.js.map +1 -0
- package/dist/tools/frame/stack.d.ts +115 -0
- package/dist/tools/frame/stack.js +290 -0
- package/dist/tools/frame/stack.js.map +1 -0
- package/dist/tools/frame/view.d.ts +131 -0
- package/dist/tools/frame/view.js +337 -0
- package/dist/tools/frame/view.js.map +1 -0
- package/dist/tools/index.d.ts +157 -0
- package/dist/tools/index.js +132 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/internal.d.ts +87 -0
- package/dist/tools/internal.js +85 -0
- package/dist/tools/internal.js.map +1 -0
- package/dist/tools/nanovdb/build-from-vdb.d.ts +59 -0
- package/dist/tools/nanovdb/build-from-vdb.js +100 -0
- package/dist/tools/nanovdb/build-from-vdb.js.map +1 -0
- package/dist/tools/nanovdb/bytes.d.ts +233 -0
- package/dist/tools/nanovdb/bytes.js +388 -0
- package/dist/tools/nanovdb/bytes.js.map +1 -0
- package/dist/tools/nanovdb/coarse-first.d.ts +78 -0
- package/dist/tools/nanovdb/coarse-first.js +92 -0
- package/dist/tools/nanovdb/coarse-first.js.map +1 -0
- package/dist/tools/nanovdb/half.d.ts +22 -0
- package/dist/tools/nanovdb/half.js +73 -0
- package/dist/tools/nanovdb/half.js.map +1 -0
- package/dist/tools/nanovdb/index.d.ts +34 -0
- package/dist/tools/nanovdb/index.js +25 -0
- package/dist/tools/nanovdb/index.js.map +1 -0
- package/dist/tools/nanovdb/inspect.d.ts +33 -0
- package/dist/tools/nanovdb/inspect.js +70 -0
- package/dist/tools/nanovdb/inspect.js.map +1 -0
- package/dist/tools/nanovdb/leaf-codec.d.ts +119 -0
- package/dist/tools/nanovdb/leaf-codec.js +356 -0
- package/dist/tools/nanovdb/leaf-codec.js.map +1 -0
- package/dist/tools/nanovdb/quantize.d.ts +72 -0
- package/dist/tools/nanovdb/quantize.js +329 -0
- package/dist/tools/nanovdb/quantize.js.map +1 -0
- package/dist/tools/nanovdb/resample.d.ts +177 -0
- package/dist/tools/nanovdb/resample.js +692 -0
- package/dist/tools/nanovdb/resample.js.map +1 -0
- package/dist/tools/nanovdb/serialize.d.ts +176 -0
- package/dist/tools/nanovdb/serialize.js +439 -0
- package/dist/tools/nanovdb/serialize.js.map +1 -0
- package/dist/tools/nanovdb/stats.d.ts +87 -0
- package/dist/tools/nanovdb/stats.js +225 -0
- package/dist/tools/nanovdb/stats.js.map +1 -0
- package/dist/tools/nanovdb/transform.d.ts +30 -0
- package/dist/tools/nanovdb/transform.js +94 -0
- package/dist/tools/nanovdb/transform.js.map +1 -0
- package/dist/tools/nanovdb/tree.d.ts +186 -0
- package/dist/tools/nanovdb/tree.js +530 -0
- package/dist/tools/nanovdb/tree.js.map +1 -0
- package/dist/tools/nanovdb/write-nvdb.d.ts +74 -0
- package/dist/tools/nanovdb/write-nvdb.js +290 -0
- package/dist/tools/nanovdb/write-nvdb.js.map +1 -0
- package/dist/tools/nvdb-file.d.ts +265 -0
- package/dist/tools/nvdb-file.js +763 -0
- package/dist/tools/nvdb-file.js.map +1 -0
- package/dist/tools/nvdb-stream.d.ts +154 -0
- package/dist/tools/nvdb-stream.js +409 -0
- package/dist/tools/nvdb-stream.js.map +1 -0
- package/dist/tools/reference/analytic.d.ts +41 -0
- package/dist/tools/reference/analytic.js +95 -0
- package/dist/tools/reference/analytic.js.map +1 -0
- package/dist/tools/reference/environment.d.ts +62 -0
- package/dist/tools/reference/environment.js +154 -0
- package/dist/tools/reference/environment.js.map +1 -0
- package/dist/tools/reference/index.d.ts +12 -0
- package/dist/tools/reference/index.js +13 -0
- package/dist/tools/reference/index.js.map +1 -0
- package/dist/tools/reference/media.d.ts +14 -0
- package/dist/tools/reference/media.js +30 -0
- package/dist/tools/reference/media.js.map +1 -0
- package/dist/tools/reference/rng.d.ts +20 -0
- package/dist/tools/reference/rng.js +30 -0
- package/dist/tools/reference/rng.js.map +1 -0
- package/dist/tools/reference/scene.d.ts +312 -0
- package/dist/tools/reference/scene.js +169 -0
- package/dist/tools/reference/scene.js.map +1 -0
- package/dist/tools/reference/tables.d.ts +98 -0
- package/dist/tools/reference/tables.js +264 -0
- package/dist/tools/reference/tables.js.map +1 -0
- package/dist/tools/reference/trace.d.ts +160 -0
- package/dist/tools/reference/trace.js +497 -0
- package/dist/tools/reference/trace.js.map +1 -0
- package/dist/tools/vdb/bit-utils.d.ts +20 -0
- package/dist/tools/vdb/bit-utils.js +42 -0
- package/dist/tools/vdb/bit-utils.js.map +1 -0
- package/dist/tools/vdb/blosc-write.d.ts +43 -0
- package/dist/tools/vdb/blosc-write.js +197 -0
- package/dist/tools/vdb/blosc-write.js.map +1 -0
- package/dist/tools/vdb/blosc.d.ts +86 -0
- package/dist/tools/vdb/blosc.js +287 -0
- package/dist/tools/vdb/blosc.js.map +1 -0
- package/dist/tools/vdb/blosclz.d.ts +33 -0
- package/dist/tools/vdb/blosclz.js +112 -0
- package/dist/tools/vdb/blosclz.js.map +1 -0
- package/dist/tools/vdb/byte-reader.d.ts +50 -0
- package/dist/tools/vdb/byte-reader.js +161 -0
- package/dist/tools/vdb/byte-reader.js.map +1 -0
- package/dist/tools/vdb/compression.d.ts +81 -0
- package/dist/tools/vdb/compression.js +260 -0
- package/dist/tools/vdb/compression.js.map +1 -0
- package/dist/tools/vdb/errors.d.ts +10 -0
- package/dist/tools/vdb/errors.js +11 -0
- package/dist/tools/vdb/errors.js.map +1 -0
- package/dist/tools/vdb/grid.d.ts +37 -0
- package/dist/tools/vdb/grid.js +153 -0
- package/dist/tools/vdb/grid.js.map +1 -0
- package/dist/tools/vdb/half-float.d.ts +9 -0
- package/dist/tools/vdb/half-float.js +24 -0
- package/dist/tools/vdb/half-float.js.map +1 -0
- package/dist/tools/vdb/index.d.ts +4 -0
- package/dist/tools/vdb/index.js +3 -0
- package/dist/tools/vdb/index.js.map +1 -0
- package/dist/tools/vdb/inflate.d.ts +24 -0
- package/dist/tools/vdb/inflate.js +334 -0
- package/dist/tools/vdb/inflate.js.map +1 -0
- package/dist/tools/vdb/lz4.d.ts +30 -0
- package/dist/tools/vdb/lz4.js +228 -0
- package/dist/tools/vdb/lz4.js.map +1 -0
- package/dist/tools/vdb/metadata.d.ts +17 -0
- package/dist/tools/vdb/metadata.js +72 -0
- package/dist/tools/vdb/metadata.js.map +1 -0
- package/dist/tools/vdb/parse.d.ts +47 -0
- package/dist/tools/vdb/parse.js +241 -0
- package/dist/tools/vdb/parse.js.map +1 -0
- package/dist/tools/vdb/point-render-data.d.ts +79 -0
- package/dist/tools/vdb/point-render-data.js +137 -0
- package/dist/tools/vdb/point-render-data.js.map +1 -0
- package/dist/tools/vdb/points.d.ts +186 -0
- package/dist/tools/vdb/points.js +835 -0
- package/dist/tools/vdb/points.js.map +1 -0
- package/dist/tools/vdb/transform.d.ts +23 -0
- package/dist/tools/vdb/transform.js +54 -0
- package/dist/tools/vdb/transform.js.map +1 -0
- package/dist/tools/vdb/tree.d.ts +111 -0
- package/dist/tools/vdb/tree.js +228 -0
- package/dist/tools/vdb/tree.js.map +1 -0
- package/dist/tools/vdb/types.d.ts +195 -0
- package/dist/tools/vdb/types.js +3 -0
- package/dist/tools/vdb/types.js.map +1 -0
- package/dist/tools/wvdb/bake.d.ts +145 -0
- package/dist/tools/wvdb/bake.js +361 -0
- package/dist/tools/wvdb/bake.js.map +1 -0
- package/dist/tools/wvdb/dense.d.ts +191 -0
- package/dist/tools/wvdb/dense.js +368 -0
- package/dist/tools/wvdb/dense.js.map +1 -0
- package/dist/tools/wvdb/format.d.ts +220 -0
- package/dist/tools/wvdb/format.js +306 -0
- package/dist/tools/wvdb/format.js.map +1 -0
- package/dist/tools/wvdb/index.d.ts +14 -0
- package/dist/tools/wvdb/index.js +15 -0
- package/dist/tools/wvdb/index.js.map +1 -0
- package/dist/tools/wvdb/level-set.d.ts +56 -0
- package/dist/tools/wvdb/level-set.js +153 -0
- package/dist/tools/wvdb/level-set.js.map +1 -0
- package/dist/tools/wvdb/nanovdb.d.ts +59 -0
- package/dist/tools/wvdb/nanovdb.js +64 -0
- package/dist/tools/wvdb/nanovdb.js.map +1 -0
- package/dist/tools/wvdb/partial.d.ts +74 -0
- package/dist/tools/wvdb/partial.js +233 -0
- package/dist/tools/wvdb/partial.js.map +1 -0
- package/dist/tools/wvdb/read.d.ts +336 -0
- package/dist/tools/wvdb/read.js +766 -0
- package/dist/tools/wvdb/read.js.map +1 -0
- package/dist/tools/wvdb/sha256.d.ts +7 -0
- package/dist/tools/wvdb/sha256.js +76 -0
- package/dist/tools/wvdb/sha256.js.map +1 -0
- package/dist/tools/wvdb/write.d.ts +149 -0
- package/dist/tools/wvdb/write.js +403 -0
- package/dist/tools/wvdb/write.js.map +1 -0
- package/package.json +83 -4
- package/vendor/LICENSE +201 -0
- package/vendor/NOTICE +19 -0
- package/vendor/VENDOR.md +100 -0
- package/vendor/pnanovdb.wgsl +1577 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { type Vec2, type Vec3, type Vec4 } from "./index.js";
|
|
2
|
+
import { type VDBFrameAtlas, type VDBFrameDensityInputs, type VDBFrameGridLayout, type VDBFrameShadowLight } from "./grid.js";
|
|
3
|
+
/** Wavelengths in nm of the red, green and blue channels. Green (550 nm) is the reference. */
|
|
4
|
+
export declare const vdbFrameSpectrumWavelengths: readonly [650, 550, 450];
|
|
5
|
+
/** Spectral slot groups (his `frameSpectralGroupCount`): group 0 is sky up, sky down and slot 0; group g is slots 2g − 1, 2g. */
|
|
6
|
+
export declare const vdbFrameSpectralGroupCount = 4;
|
|
7
|
+
/** Groups in use for the number of light slots in use (0 to 6): 1 + ⌈(slots − 1) / 2⌉. */
|
|
8
|
+
export declare const vdbFrameSpectralGroups: (slotCount: number) => number;
|
|
9
|
+
/** The extinction scale of each channel: scale × (λ / 550)^−α (his getFrameExtinctionSpectrum, engine-free; α a number). */
|
|
10
|
+
export declare function vdbFrameExtinctionSpectrum(scale: Vec3, angstromExponent: number): Vec3;
|
|
11
|
+
/** Spectral shadow depths { x: extinction, y: effective extinction, z: reduced scattering } of each channel. */
|
|
12
|
+
export interface VDBFrameSpectralDepths {
|
|
13
|
+
x: Vec3;
|
|
14
|
+
y: Vec3;
|
|
15
|
+
z: Vec3;
|
|
16
|
+
}
|
|
17
|
+
/** Spectral shadow values { x: direct, y: total } of each channel. */
|
|
18
|
+
export interface VDBFrameSpectralShadow {
|
|
19
|
+
x: Vec3;
|
|
20
|
+
y: Vec3;
|
|
21
|
+
}
|
|
22
|
+
/** frameMeanComponent: the mean of the channels. */
|
|
23
|
+
export declare const vdbFrameMeanComponent: (v: Vec3) => number;
|
|
24
|
+
/** frameSpectralShadowUnit: the depths of one unit of extinction for a volume's spectrum and albedo (frameShadowStep per channel). */
|
|
25
|
+
export declare function vdbFrameSpectralShadowUnit(spectrum: Vec3, albedo: Vec3, multipleScattering: number): VDBFrameSpectralDepths;
|
|
26
|
+
/** frameSpectralShadowDepths: one volume has one spectrum, so the depths are linear in the optical depth. */
|
|
27
|
+
export declare function vdbFrameSpectralShadowDepths(unit: VDBFrameSpectralDepths, opticalDepth: number): VDBFrameSpectralDepths;
|
|
28
|
+
/** frameSpectralShadowStep: the step depths of each channel from the grid's (extinction, absorption) of each channel. */
|
|
29
|
+
export declare function vdbFrameSpectralShadowStep(extinction: Vec3, absorption: Vec3, multipleScattering: number): VDBFrameSpectralDepths;
|
|
30
|
+
/** frameSpectralGridAlbedo: 1 − absorption / extinction of each channel (clamped), 1 with no extinction. */
|
|
31
|
+
export declare function vdbFrameSpectralGridAlbedo(extinction: Vec3, absorption: Vec3): Vec3;
|
|
32
|
+
/** frameShadowDepth of each channel. */
|
|
33
|
+
export declare function vdbFrameSpectralShadowDepth(depths: VDBFrameSpectralDepths, multipleScattering: number): Vec3;
|
|
34
|
+
/** frameShadowMarchDepth of each channel (the marches stop when the smallest is past the limit). */
|
|
35
|
+
export declare function vdbFrameSpectralShadowMarchDepth(depths: VDBFrameSpectralDepths, multipleScattering: number, octaves?: Vec4): Vec3;
|
|
36
|
+
/** frameSpectralShadowTransmittance: (direct, total) of each channel; octaves: total is 1 / (1 + τ). */
|
|
37
|
+
export declare function vdbFrameSpectralShadowTransmittance(depths: VDBFrameSpectralDepths, multipleScattering: number, octaves?: Vec4): VDBFrameSpectralShadow;
|
|
38
|
+
/** frameSpectralOctaveLight: Σₙ albedoⁿ bⁿ phase(g cⁿ) exp(−aⁿ τ) of each channel (each octave is one more scattering). */
|
|
39
|
+
export declare function vdbFrameSpectralOctaveLight(octaves: Vec4, opticalDepth: Vec3, albedo: Vec3, phase: Vec4 | null, cosTheta: number): Vec3;
|
|
40
|
+
/** frameSpectralShadowTotal: total transmittance of isotropic light of each channel from the y shadow values. */
|
|
41
|
+
export declare function vdbFrameSpectralShadowTotal(shadowY: Vec3, octaves: Vec4, albedo: Vec3): Vec3;
|
|
42
|
+
/** frameSpectralShadowedLight: phase × direct + scattered of each channel (octaves: the spectral octave light). */
|
|
43
|
+
export declare function vdbFrameSpectralShadowedLight(phase: Vec4, phaseSpectrum: Vec3, octaves: Vec4, rayDirection: Vec3, lightDirection: Vec3, shadow: VDBFrameSpectralShadow, albedo: Vec3): Vec3;
|
|
44
|
+
/** frameUnpackSpectralGroup: the two entries of a slot group from its 3 RGBA targets. */
|
|
45
|
+
export declare function vdbFrameUnpackSpectralGroup(map0: ArrayLike<number>, map1: ArrayLike<number>, map2: ArrayLike<number>): {
|
|
46
|
+
a: VDBFrameSpectralShadow;
|
|
47
|
+
b: VDBFrameSpectralShadow;
|
|
48
|
+
};
|
|
49
|
+
/** The inverse of {@link vdbFrameUnpackSpectralGroup}: the 3 targets of a group. */
|
|
50
|
+
export declare function vdbFramePackSpectralGroup(a: VDBFrameSpectralShadow, b: VDBFrameSpectralShadow): [Vec4, Vec4, Vec4];
|
|
51
|
+
/** A spectral march result: direct, total, reduced depth and effective depth of each channel. */
|
|
52
|
+
export interface VDBFrameSpectralMarch {
|
|
53
|
+
x: Vec3;
|
|
54
|
+
y: Vec3;
|
|
55
|
+
z: Vec3;
|
|
56
|
+
w: Vec3;
|
|
57
|
+
}
|
|
58
|
+
/** The spectral grid sample of the transmittance pass: (extinction, absorption) of each channel, 0 outside the grid. */
|
|
59
|
+
export declare function vdbFrameSpectralGridSample(extinction: VDBFrameAtlas, absorption: VDBFrameAtlas, grid: VDBFrameGridLayout, world: Vec3): {
|
|
60
|
+
extinction: Vec3;
|
|
61
|
+
absorption: Vec3;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The spectral `march` of the transmittance pass: the grey march with the depths of each channel; stops when all channels
|
|
65
|
+
* are past depth 6. K7.4a: `out.opticalDepth` gets the direct optical depth of each channel (the spectral MLP's input).
|
|
66
|
+
*/
|
|
67
|
+
export declare function vdbFrameSpectralGridMarch(sampleAt: (world: Vec3) => {
|
|
68
|
+
extinction: Vec3;
|
|
69
|
+
absorption: Vec3;
|
|
70
|
+
}, grid: VDBFrameGridLayout, origin: Vec3, direction: Vec3, maxDistance: number, jitter: number, multipleScattering: number, octaves?: Vec4, out?: {
|
|
71
|
+
opticalDepth: Vec3;
|
|
72
|
+
}): VDBFrameSpectralMarch;
|
|
73
|
+
/**
|
|
74
|
+
* The spectral transmittance pass at one grid voxel for one slot group (buildSpectralNodes): the 3 MRT outputs.
|
|
75
|
+
* Group 0: (sky up, sky down) and slot 0; group g: slots 2g − 1 and 2g; a slot entry is (total, direct). Voxels
|
|
76
|
+
* with no extinction within half a voxel keep 1.0. `twoSided`: the slot marches get the slab diffusion.
|
|
77
|
+
*/
|
|
78
|
+
export declare function vdbFrameSpectralTransmittanceVoxel(extinction: VDBFrameAtlas, absorption: VDBFrameAtlas, grid: VDBFrameGridLayout, fragCoord: Vec2, lights: readonly VDBFrameShadowLight[], skyDirection: Vec3, multipleScattering: number, jitterValue: number, group: number, modes?: {
|
|
79
|
+
octaves?: Vec4;
|
|
80
|
+
twoSided?: boolean;
|
|
81
|
+
}): [Vec4, Vec4, Vec4];
|
|
82
|
+
/**
|
|
83
|
+
* The spectral environment grid pass at one voxel of the last cascade (FrameEnvironmentGridMaterial, spectral
|
|
84
|
+
* branch): the march of each channel through the grid's extinction and absorption atlases, the voxel's albedo
|
|
85
|
+
* for the octaves; diffusion: the two-sided total of each channel.
|
|
86
|
+
*/
|
|
87
|
+
export declare function vdbFrameSpectralEnvironmentGridVoxel(extinction: VDBFrameAtlas, absorption: VDBFrameAtlas, grid: VDBFrameGridLayout, envColumns: number, fragCoord: Vec2, lights: readonly {
|
|
88
|
+
direction: Vec3;
|
|
89
|
+
color: Vec3;
|
|
90
|
+
}[], unshadowed: Vec3, multipleScattering: number, octaves?: Vec4): Vec4;
|
|
91
|
+
/** The inputs of {@link vdbFrameSpectralDensityFroxel}: the grey density inputs, the volume's extinction spectrum, the sky maps. */
|
|
92
|
+
export interface VDBFrameSpectralDensityInputs extends Omit<VDBFrameDensityInputs, "shadows" | "sceneLightCount" | "lightPositions" | "phase" | "phaseSpectrum"> {
|
|
93
|
+
/** The volume's extinction scale of each channel (`frameExtinctionSpectrum`). */
|
|
94
|
+
extinctionSpectrum: Vec3;
|
|
95
|
+
/** The grid layout (environment grid and sky maps), or null without shadows. */
|
|
96
|
+
grid?: VDBFrameGridLayout | null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The spectral density pass at one froxel of one volume (buildSpectralNodes, environment 'grid' or none): the
|
|
100
|
+
* pre-integration with the transmittance of each channel (the visible position weighs the channel mean), and
|
|
101
|
+
* the 3 MRT outputs (albedo × extinction, weight), (emission × weight, t × weight), (extinction, 0), or null.
|
|
102
|
+
*/
|
|
103
|
+
export declare function vdbFrameSpectralDensityFroxel(fragCoord: Vec2, p: VDBFrameSpectralDensityInputs): [Vec4, Vec4, Vec4] | null;
|
|
104
|
+
/** The lights the spectral lighting pass reads (light probe as 9 SH coefficients, optional). */
|
|
105
|
+
export interface VDBFrameSpectralLightingInputs {
|
|
106
|
+
ambient: Vec3;
|
|
107
|
+
hemiSky: Vec3;
|
|
108
|
+
hemiGround: Vec3;
|
|
109
|
+
skyDirection?: Vec3;
|
|
110
|
+
lightProbe?: readonly Vec3[];
|
|
111
|
+
lights: {
|
|
112
|
+
position: Vec4;
|
|
113
|
+
color: Vec3;
|
|
114
|
+
spot?: Vec4;
|
|
115
|
+
penumbra?: number;
|
|
116
|
+
falloff?: Vec2;
|
|
117
|
+
}[];
|
|
118
|
+
shadowLightCount: number;
|
|
119
|
+
phase: Vec4;
|
|
120
|
+
phaseSpectrum?: Vec3;
|
|
121
|
+
octaves?: Vec4;
|
|
122
|
+
environmentColors: Vec3[];
|
|
123
|
+
environmentShadowSlot: number;
|
|
124
|
+
/** The 3 targets of each slot group in use, sampled at a world position (sampleShadows), or null without shadows. */
|
|
125
|
+
groupsAt: ((world: Vec3) => number[][][]) | null;
|
|
126
|
+
/**
|
|
127
|
+
* K6.4 (the core's K6.5b host occluder maps): the visibility of light `index` at the lit position; a slot's direct part
|
|
128
|
+
* (its scattered part is occluded in the transmittance; octaves: the whole light), a light without a slot whole.
|
|
129
|
+
*/
|
|
130
|
+
occluderAt?: ((index: number, world: Vec3) => number) | null;
|
|
131
|
+
/** K6.Q1a shadowed ambient: group 0's sky entry holds the hemispherical visibilities (no totals); ambient × their mean. */
|
|
132
|
+
ambientOcclusion?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* K6.Q1d ('frame' lighting's `ambientPhase: 'dipole'`, no diffusion totals): the phase weight of each channel's visibilities at the
|
|
135
|
+
* lit world position along the unit view ray, given them (up, down): both × it. Default none (1).
|
|
136
|
+
*/
|
|
137
|
+
ambientWeight?: ((world: Vec3, ray: Vec3, up: Vec3, down: Vec3) => Vec3) | null;
|
|
138
|
+
/** K7.4c (internal `msExit`): the exit code of the slots' scattered part (0 isotropic, his; 1 dipole, 2 hg). Default 0. */
|
|
139
|
+
msExit?: number;
|
|
140
|
+
}
|
|
141
|
+
/** three's `getShIrradianceAt` (L2 SH irradiance of a light probe at a unit normal). */
|
|
142
|
+
export declare function vdbShIrradianceAt(normal: Vec3, sh: readonly Vec3[]): Vec3;
|
|
143
|
+
/**
|
|
144
|
+
* The spectral lighting pass at one froxel (createSpectralFragmentNode): from the 3 density targets, the slot
|
|
145
|
+
* groups sampled at the visible position. Returns the two atlas outputs (radiance × α of each channel, green α)
|
|
146
|
+
* and (red α, blue α, 0, green α), or zeros when the weight is ≤ 0 (the pass discards; the target is cleared).
|
|
147
|
+
*/
|
|
148
|
+
export declare function vdbFrameSpectralLightingFroxel(density: readonly [Vec4, Vec4, Vec4], viewNear: Vec3, viewFar: Vec3, cameraWorld: ArrayLike<number>, inputs: VDBFrameSpectralLightingInputs): [Vec4, Vec4];
|
|
149
|
+
/** The spectral transmittance group maps at a world position (sampleShadows of each group's 3 targets), for {@link vdbFrameSpectralLightingFroxel}. */
|
|
150
|
+
export declare function vdbFrameSpectralGroupsAt(groupAtlases: readonly (readonly VDBFrameAtlas[])[], grid: VDBFrameGridLayout): (world: Vec3) => number[][][];
|
|
151
|
+
/** A march of the inject pass (`volumeTransmittance` or its spectral twin) from the lit position: (direct, total, reduced, effective). */
|
|
152
|
+
export type VDBFrameInjectMarch = (localDirection: Vec3, maxLocalDistance: number) => {
|
|
153
|
+
x: Vec3;
|
|
154
|
+
y: Vec3;
|
|
155
|
+
z: Vec3;
|
|
156
|
+
w: Vec3;
|
|
157
|
+
};
|
|
158
|
+
/** What the inject pass's light terms read: the light uniforms, the volume's light bitmask and the march. */
|
|
159
|
+
export interface VDBFrameInjectLightInputs {
|
|
160
|
+
/** The volume's `lights` bitmask (vdbFrameLights). */
|
|
161
|
+
lights: number;
|
|
162
|
+
ambient: Vec3;
|
|
163
|
+
/** The light probe SH (9 coefficients). */
|
|
164
|
+
lightProbe?: readonly Vec3[];
|
|
165
|
+
/** Environment lights (world directions to the light, isotropic colours). */
|
|
166
|
+
environment?: readonly {
|
|
167
|
+
direction: Vec3;
|
|
168
|
+
color: Vec3;
|
|
169
|
+
}[];
|
|
170
|
+
/** The 'outward' environment: three's IBL irradiance at a world direction (used when there are no environment lights). */
|
|
171
|
+
environmentIrradiance?: ((direction: Vec3) => Vec3) | null;
|
|
172
|
+
/** Hemisphere lights (world up direction, sky and ground colours). */
|
|
173
|
+
hemisphere?: readonly {
|
|
174
|
+
direction: Vec3;
|
|
175
|
+
sky: Vec3;
|
|
176
|
+
ground: Vec3;
|
|
177
|
+
}[];
|
|
178
|
+
/** World → local direction (the volume's worldToLocal 3 × 3, column-major 4 × 4 elements). */
|
|
179
|
+
worldToLocal: ArrayLike<number>;
|
|
180
|
+
/** The outward normal (world, unit), from the volume centre to the lit position. */
|
|
181
|
+
outwardNormal: Vec3;
|
|
182
|
+
/** multipleScattering value (> 0: diffusion pairs), octaves, the lit albedo (octaves of each channel). */
|
|
183
|
+
multipleScattering: number;
|
|
184
|
+
octaves?: Vec4;
|
|
185
|
+
albedo: Vec3;
|
|
186
|
+
/** Spectral totals (frameSpectralShadowTotal) or grey (frameShadowTotal of the green total, all channels). */
|
|
187
|
+
spectral: boolean;
|
|
188
|
+
march: VDBFrameInjectMarch;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* The isotropic light terms of the inject pass ('volume' lighting) at the lit position: ambient + light probe
|
|
192
|
+
* along the outward normal; the environment lights (one march each; with diffusion the two-sided total of the
|
|
193
|
+
* march pair), or the 'outward' IBL irradiance with its march pair; the hemisphere lights (sky up and ground
|
|
194
|
+
* down, a pair). Returns the irradiance before the scene lights. Grey: the march's channels are equal.
|
|
195
|
+
*/
|
|
196
|
+
export declare function vdbFrameInjectIsotropicIrradiance(p: VDBFrameInjectLightInputs): Vec3;
|
|
197
|
+
/**
|
|
198
|
+
* The spectral inject shadow march over given extinction samples (already × world step × absorbance): one optical
|
|
199
|
+
* depth for the volume's spectrum; stops when every channel's march depth is past 8. Returns (direct, total,
|
|
200
|
+
* reduced, effective) of each channel. The grey twin is `vdbFrameShadowMarch`.
|
|
201
|
+
*/
|
|
202
|
+
export declare function vdbFrameSpectralShadowMarch(scaledExtinctions: readonly number[], spectrum: Vec3, albedo: Vec3, multipleScattering: number, octaves?: Vec4): VDBFrameSpectralMarch;
|
|
203
|
+
/**
|
|
204
|
+
* The spectral view-ray pre-integration of one froxel in the inject pass: the alpha of each channel and the
|
|
205
|
+
* lit position t (the channel-mean visibility weight), or null when discarded (the grey twin is
|
|
206
|
+
* `vdbFrameInjectSlice`).
|
|
207
|
+
*/
|
|
208
|
+
export declare function vdbFrameSpectralInjectSlice(opticalDepths: readonly number[], spectrum: Vec3, segment: Vec2, jitter?: number): {
|
|
209
|
+
alpha: Vec3;
|
|
210
|
+
t: number;
|
|
211
|
+
} | null;
|
|
212
|
+
/**
|
|
213
|
+
* The spectral integrate composite of one pixel (createSpectralFragmentNode, linear blending, full slices): the
|
|
214
|
+
* froxels' premultiplied colour and per-channel alpha front to back. Returns (radiance, transmittance of each channel).
|
|
215
|
+
*/
|
|
216
|
+
export declare function vdbFrameSpectralIntegrate(froxels: readonly {
|
|
217
|
+
color: Vec3;
|
|
218
|
+
alpha: Vec3;
|
|
219
|
+
}[]): {
|
|
220
|
+
radiance: Vec3;
|
|
221
|
+
transmittance: Vec3;
|
|
222
|
+
};
|