Renderer · interface
PlumePlacement
Batched camera-facing quads for volumetric effects — flames, smoke, steam, dust. Game-agnostic: it knows positions, sizes and time, and nothing about what the plume represents.
Explained in Hello world.
interface PlumePlacementimport type { PlumePlacement } from '@driftengine/core';In depth
One VAO for the whole batch, four vertices per plume, everything animated on the GPU. The caller supplies the shader pair, so a new effect is a new fragment shader rather than a new renderer.
Properties
| Name | Type | Description |
|---|---|---|
x | number | |
y | number | |
z | number | |
width | number | Half-width and full height, metres. |
height | number |