Builtin Library
- ..
- README.md810 B
- bindings.yaml263 B
- shader.wgsl6.8 KB
README.md
plume_fill
Writes a plume of smoke and fire into a volume each frame, for the plume
module: density in red and temperature in green, the layout the volume march
reads a density volume in, so a Volume:draw of it is lit by the scene's
lights with a shadow of its own and glows where it is hot.
The box stands on the plume's source: the floor's centre is where the smoke
leaves. A steady plume is a column that widens as it climbs, leans with the
wind and thins toward the top, its body noise carried upward with time and
curled by a second noise; fire is a flickering cone of temperature at the
source. A burst (U[14] above 0) is a fireball that swells, rises and cools to
smoke over its run.
Bindings (see bindings.yaml): vol (storage3d rgba16f), U (f32 words, listed
at the top of shader.wgsl).