Renderer · interface
PlumeOptions
Explained in Hello world.
interface PlumeOptionsimport type { PlumeOptions } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
material | PlumeMaterial | Which plume this is, by name.MoreThis replaced a pair of GLSL source strings on 2026-08-13, and the replacement is a
breaking change made on purpose. A caller-supplied shader is a capability that can only
ever exist on WebGL2: WebGPU has no runtime GLSL compiler and this package must not ship
one. Naming the material lets each backend resolve what it can compile. See
|
blend | PlumeBlend | Emissive effects (fire) add light; dense ones (smoke) occlude it. |
sizePulseoptional | number | How much the quads swell and shrink over time, 0 for a fixed size. Purely visual — anything gameplay depends on must keep its own fixed volume, or the simulation starts depending on the render clock. |
windResponseoptional | number | How far this plume leans in a given wind, metres per m/s at its crown. Smoke is carried; a flame is anchored to its fuel and barely bends. |
tintoptional | Vec3 | Colour handed to the fragment stage as uTint, or white when absent.MoreOptional shader contract, the same arrangement |