# @luma.gl/experimental

> luma.gl experimental features

Latest version **9.4.2** (published 2026-09-19) · MIT license · 77.1K weekly downloads

## Install

```sh
npm install @luma.gl/experimental
pnpm add @luma.gl/experimental
yarn add @luma.gl/experimental
bun add @luma.gl/experimental
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: large bundle.

## Facts

| | |
|---|---|
| Version | 9.4.2 |
| Published | 2026-09-19 |
| First published | 2019-11-28 |
| Weekly downloads | 77.1K |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2476 |
| Maintainers | pessimistress, ibgreen, felixpalmer, belom88, donmccurdy, kaapp, chrisgervang |
| Keywords | webgl, visualization, animation, 3d |

## Links

- npm: https://www.npmjs.com/package/@luma.gl/experimental
- Repository: https://github.com/visgl/luma.gl
- Homepage: https://github.com/visgl/luma.gl#readme
- Issues: https://github.com/visgl/luma.gl/issues
- npm.io page: https://npm.io/package/@luma.gl/experimental

## Dependencies (3)

- [@math.gl/core](https://npm.io/package/@math.gl/core.md) ^4.1.0
- [@luma.gl/gpgpu](https://npm.io/package/@luma.gl/gpgpu.md) 9.4.2
- [@math.gl/types](https://npm.io/package/@math.gl/types.md) ^4.1.0

## Alternatives

- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads
- [react-scroll-snap-anime-slider](https://npm.io/package/react-scroll-snap-anime-slider.md) — 214 weekly downloads

## Recent versions

- 9.4.2 (latest) — 2026-09-19
- 9.4.0-beta.7 (beta) — 2026-09-03
- 9.4.1 — 2026-09-11
- 9.4.0 — 2026-09-05
- 9.4.0-beta.6 — 2026-09-02
- 9.4.0-beta.5 — 2026-09-02
- 9.4.0-beta.4 — 2026-08-30
- 9.4.0-beta.3 — 2026-08-24
- 9.4.0-beta.2 — 2026-08-21
- 9.4.0-beta.1 — 2026-08-21
- 8.5.21 — 2023-09-13
- 9.0.0-alpha.21 — 2023-05-25
- 9.0.0-alpha.20 — 2023-05-10
- 9.0.0-alpha.19 — 2023-05-10
- 9.0.0-alpha.17 — 2023-05-02
- … 81 more at https://npm.io/package/@luma.gl/experimental/versions

## README

# @luma.gl/experimental

Experimental features for luma.gl.

:::warning
These are experimental features that may change or be removed at any time. Use at your own risk.
:::

The published package includes experimental data-parallel primitives such as scan, compaction,
stable key/value sort, two-dimensional FFT, and spectral ocean simulation,
energy-conserving FFT aperture diffraction and photographic bloom,
order-independent transparency renderers, composable cross-backend glass and reflective-material
shader modules, packed pixel-format helpers, and WebGPU/WebGL WebXR session
and frame helpers, with WebGL-only raw camera textures. See the
[luma.gl API reference](https://luma.gl/docs/api-reference/experimental) for documentation.

## FFT Convolution Bloom

`GPUConvolutionBloom` performs physically motivated optical convolution on WebGPU. Area-weighted
HDR extraction preserves subpixel emitters and centers the sampled image inside zero-padded guard
bands, preventing diffraction from wrapping onto the opposite edge. Packed RGB fields share one
forward and one inverse FFT schedule instead of six independent transforms. Each wavelength uses
its own cached aperture spectrum, with configurable blade count, diffraction strength, anamorphic
stretch, and spectral spread. Applications can provide either one nonnegative `Float32Array`
kernel or independently measured `{red, green, blue}` kernels and replace them with
`setPointSpreadFunction()`.

Set `energyConserving: true` for thresholdless normalized scattering. Optional chromatic ghosts,
radial halo, sampled dirt, and neighborhood-clamped temporal stabilization execute inside the
existing final compute dispatch. Supplying `exposureTexture` to `encode()` consumes GPU-resident
adapted exposure directly and automatically compensates temporal history without CPU readback.

```ts
import {Texture} from '@luma.gl/core';
import {GPUConvolutionBloom, getGPUConvolutionBloomSupport} from '@luma.gl/experimental';

const support = getGPUConvolutionBloomSupport(device, {width, height, resolutionScale: 0.25});
if (!support.supported) {
  throw new Error(support.reason);
}

const outputTexture = device.createTexture({
  width,
  height,
  format: 'rgba16float',
  usage: Texture.STORAGE | Texture.SAMPLE
});
const bloom = new GPUConvolutionBloom(device, {
  width,
  height,
  resolutionScale: 0.25,
  guardBand: 0.125,
  apertureBlades: 6,
  diffractionStrength: 0.3,
  spectralSpread: 0.65,
  temporalStability: 0.55,
  lens: {ghostIntensity: 0.25, haloIntensity: 0.15}
});

const encoder = device.createCommandEncoder();
bloom.encode(encoder, {sourceTexture, outputTexture, exposure: 1});
device.submit(encoder.finish());
```

The caller owns source/output textures and command submission; the renderer owns reusable FFT
buffers, its cached RGB optical spectrum, and optional history. `bloom.stats` publishes exact
sampled content bounds, transform dimensions, packed complex-buffer allocation, steady-state
dispatch count, and one-time kernel initialization work. At 1920 x 1080 with quarter-resolution
sampling and the default 12.5% guard band, the transform is 1024 x 512 and requires four packed RGB
buffers totaling 48 MiB, 45 steady-state dispatches, and 21 dispatches when the aperture changes.
Setting `guardBand: 0` reduces that to a 512 x 512 transform, 24 MiB, and 43 dispatches, while
trading away explicit wraparound protection. The previous independent-channel path required 123
steady-state dispatches. On devices with `timestamp-query`, create the command encoder with a
`timeProfilingQuerySet` to collect actual GPU timings for every FFT and optical compute pass.

Optional algorithm entry points keep specialized workflows out of the default experimental bundle:

- `@luma.gl/experimental/geospatial` provides graph-native spatial operations and distance kernels.
- `@luma.gl/experimental/gpu-project` compiles arbitrary CPU coordinate transformations into
  precision-preserving, GPU-evaluated local projection patches.
- `@luma.gl/experimental/gpu-trace` keeps execution-trace scenes, process/thread interactions,
  dependency focus, and timeline picking separate from generic command-graph primitives.

---
_Source: https://npm.io/package/@luma.gl/experimental · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
