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 PlumePlacement
import 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

NameTypeDescription
xnumber
ynumber
znumber
widthnumberHalf-width and full height, metres.
heightnumber