The .drft container · const

ATTR_SPECULAR

Which optional attributes a MESH chunk carries.

Explained in The .drft container.

const ATTR_SPECULAR: number
import { ATTR_SPECULAR } from '@driftengine/drft';

In depth

Positions, normals, colours and emissive are mandatory — every MeshData has them — so they take no bit. The four optional arrays do, in the order they appear in the payload, and the order is frozen: a new attribute takes the next free bit and appends to the payload, which is why an older reader can stop at the bits it knows.