{"name":"@luma.gl/experimental","version":"9.4.1","keywords":["webgl","visualization","animation","3d"],"license":"MIT","_id":"@luma.gl/experimental@9.4.1","maintainers":[{"name":"pessimistress","email":"cxiaoji@gmail.com"},{"name":"ibgreen","email":"ib@unfolded.ai"},{"name":"felixpalmer","email":"felixpalmer+npm@gmail.com"},{"name":"belom88","email":"belom88@yandex.ru"},{"name":"donmccurdy","email":"dm@donmccurdy.com"},{"name":"kaapp","email":"KappCK@googlemail.com"},{"name":"chrisgervang","email":"chris@gervang.com"}],"homepage":"https://github.com/visgl/luma.gl#readme","bugs":{"url":"https://github.com/visgl/luma.gl/issues"},"dist":{"shasum":"312519c6a44d6a5b7691d760c47a7726dea03068","tarball":"http://registry-npm.ywwl.com/@luma.gl/experimental/download/@luma.gl/experimental-9.4.1.tgz","fileCount":907,"integrity":"sha512-TyS3vZIzB4/i0xjSdVyZZT2Gg+ym3IAi15h35qUVI1F+5xYPoZWYTjPZ596N+kIPJokdFQcDAux1pJHb23Z7eA==","signatures":[{"sig":"MEUCIEEjXYSsIvXxa6cFGyZdq7WRjiavZ50TbNAdS3kF43rPAiEA2n9mY71fe/aw6f9WchLk6TmYrReHOJK3S/s3VTy6SGA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@luma.gl%2fexperimental@9.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12673953,"size":2296156,"noattachment":false,"key":"/@luma.gl/experimental/-/@luma.gl/experimental-9.4.1.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./lucim":{"types":"./dist/lucim/index.d.ts","import":"./dist/lucim/index.js","require":"./dist/lucim/index.cjs"},"./models":{"types":"./dist/models/index.d.ts","import":"./dist/models/index.js","require":"./dist/models/index.cjs"},"./gpu-sql":{"types":"./dist/gpu-sql/index.d.ts","import":"./dist/gpu-sql/index.js","require":"./dist/gpu-sql/index.cjs"},"./gpu-trace":{"types":"./dist/gpu-trace/index.d.ts","import":"./dist/gpu-trace/index.js","require":"./dist/gpu-trace/index.cjs"},"./geospatial":{"types":"./dist/geospatial/index.d.ts","import":"./dist/geospatial/index.js","require":"./dist/geospatial/index.cjs"},"./gpu-raster":{"types":"./dist/gpu-raster/index.d.ts","import":"./dist/gpu-raster/index.js","require":"./dist/gpu-raster/index.cjs"},"./gpu-tables":{"types":"./dist/gpu-tables/index.d.ts","import":"./dist/gpu-tables/index.js","require":"./dist/gpu-tables/index.cjs"},"./gpu-project":{"types":"./dist/gpu-project/index.d.ts","import":"./dist/gpu-project/index.js","require":"./dist/gpu-project/index.cjs"},"./gpu-dataframe":{"types":"./dist/gpu-dataframe/index.d.ts","import":"./dist/gpu-dataframe/index.js","require":"./dist/gpu-dataframe/index.cjs"},"./gpu-crossfilter":{"types":"./dist/gpu-crossfilter/index.d.ts","import":"./dist/gpu-crossfilter/index.js","require":"./dist/gpu-crossfilter/index.cjs"},"./gpu-project/benchmarks":{"types":"./dist/gpu-project/benchmarks.d.ts","import":"./dist/gpu-project/benchmarks.js","require":"./dist/gpu-project/benchmarks.cjs"}},"gitHead":"4cc2344475ef7b1f2753e088f17fc2e6c5946ce7","scripts":{"prepublishOnly":"npm run build-minified-bundle && npm run build-dev-bundle","build-dev-bundle":"ocular-bundle ./bundle.ts --output=dist/dist.dev.js --env=dev","build-minified-bundle":"ocular-bundle ./bundle.ts --output=dist/dist.min.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:71ccdf2e-a80a-49f8-9619-e263ef2fa20d"}},"repository":{"url":"git+https://github.com/visgl/luma.gl.git","type":"git"},"_npmVersion":"lerna/10.0.0/node@v22.22.1+x64 (linux)","description":"luma.gl experimental features","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","dependencies":{"@math.gl/core":"^4.1.0","@luma.gl/gpgpu":"9.4.1","@math.gl/types":"^4.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@luma.gl/core":"~9.4.0","@luma.gl/engine":"~9.4.0","@luma.gl/shadertools":"~9.4.0"},"_npmOperationalInternal":{"tmp":"tmp/experimental_9.4.1_1789119202739_0.10782581481361797","host":"s3://npm-registry-packages-npm-production"},"readme":"# @luma.gl/experimental\n\nExperimental features for luma.gl.\n\n:::warning\nThese are experimental features that may change or be removed at any time. Use at your own risk.\n:::\n\nThe published package includes experimental data-parallel primitives such as scan, compaction,\nstable key/value sort, two-dimensional FFT, and spectral ocean simulation,\nenergy-conserving FFT aperture diffraction and photographic bloom,\norder-independent transparency renderers, composable cross-backend glass and reflective-material\nshader modules, packed pixel-format helpers, and WebGPU/WebGL WebXR session\nand frame helpers, with WebGL-only raw camera textures. See the\n[luma.gl API reference](https://luma.gl/docs/api-reference/experimental) for documentation.\n\n## FFT Convolution Bloom\n\n`GPUConvolutionBloom` performs physically motivated optical convolution on WebGPU. Area-weighted\nHDR extraction preserves subpixel emitters and centers the sampled image inside zero-padded guard\nbands, preventing diffraction from wrapping onto the opposite edge. Packed RGB fields share one\nforward and one inverse FFT schedule instead of six independent transforms. Each wavelength uses\nits own cached aperture spectrum, with configurable blade count, diffraction strength, anamorphic\nstretch, and spectral spread. Applications can provide either one nonnegative `Float32Array`\nkernel or independently measured `{red, green, blue}` kernels and replace them with\n`setPointSpreadFunction()`.\n\nSet `energyConserving: true` for thresholdless normalized scattering. Optional chromatic ghosts,\nradial halo, sampled dirt, and neighborhood-clamped temporal stabilization execute inside the\nexisting final compute dispatch. Supplying `exposureTexture` to `encode()` consumes GPU-resident\nadapted exposure directly and automatically compensates temporal history without CPU readback.\n\n```ts\nimport {Texture} from '@luma.gl/core';\nimport {GPUConvolutionBloom, getGPUConvolutionBloomSupport} from '@luma.gl/experimental';\n\nconst support = getGPUConvolutionBloomSupport(device, {width, height, resolutionScale: 0.25});\nif (!support.supported) {\n  throw new Error(support.reason);\n}\n\nconst outputTexture = device.createTexture({\n  width,\n  height,\n  format: 'rgba16float',\n  usage: Texture.STORAGE | Texture.SAMPLE\n});\nconst bloom = new GPUConvolutionBloom(device, {\n  width,\n  height,\n  resolutionScale: 0.25,\n  guardBand: 0.125,\n  apertureBlades: 6,\n  diffractionStrength: 0.3,\n  spectralSpread: 0.65,\n  temporalStability: 0.55,\n  lens: {ghostIntensity: 0.25, haloIntensity: 0.15}\n});\n\nconst encoder = device.createCommandEncoder();\nbloom.encode(encoder, {sourceTexture, outputTexture, exposure: 1});\ndevice.submit(encoder.finish());\n```\n\nThe caller owns source/output textures and command submission; the renderer owns reusable FFT\nbuffers, its cached RGB optical spectrum, and optional history. `bloom.stats` publishes exact\nsampled content bounds, transform dimensions, packed complex-buffer allocation, steady-state\ndispatch count, and one-time kernel initialization work. At 1920 x 1080 with quarter-resolution\nsampling and the default 12.5% guard band, the transform is 1024 x 512 and requires four packed RGB\nbuffers totaling 48 MiB, 45 steady-state dispatches, and 21 dispatches when the aperture changes.\nSetting `guardBand: 0` reduces that to a 512 x 512 transform, 24 MiB, and 43 dispatches, while\ntrading away explicit wraparound protection. The previous independent-channel path required 123\nsteady-state dispatches. On devices with `timestamp-query`, create the command encoder with a\n`timeProfilingQuerySet` to collect actual GPU timings for every FFT and optical compute pass.\n\nOptional algorithm entry points keep specialized workflows out of the default experimental bundle:\n\n- `@luma.gl/experimental/geospatial` provides graph-native spatial operations and distance kernels.\n- `@luma.gl/experimental/gpu-project` compiles arbitrary CPU coordinate transformations into\n  precision-preserving, GPU-evaluated local projection patches.\n- `@luma.gl/experimental/gpu-trace` keeps execution-trace scenes, process/thread interactions,\n  dependency focus, and timeline picking separate from generic command-graph primitives.\n","publish_time":1789119202936,"_cnpm_publish_time":1789119202936,"dist-tags":{"beta":"9.4.0-beta.7","latest":"9.4.2"}}