Examples /

Volumetric nebula

Fly through layered clouds of interstellar color, integrated along a camera ray.

Initializing WebGPUwgpu-kit 2.2.0

Move the pointer to change the viewing direction. Density changes how light accumulates.

How it works

Each invocation marches through a three-dimensional fractal-noise density field. Front-to-back emission and absorption accumulate into a translucent nebula. The density slider changes optical depth rather than simply adjusting brightness.

Read the related guide →

Search concepts, APIs, and examples