Renderer · const
MAX_MORPH_TARGETS
The most morph targets one mesh can carry.
Explained in Hello world.
const MAX_MORPH_TARGETS = 8import { MAX_MORPH_TARGETS } from '@driftengine/core';In depth
Bounded by the weight array in the vertex uniform block rather than by the delta texture, which
is why it is small: eight vec4-aligned floats is 128 bytes of a block that has fifteen vectors
in it already. Eight is what glTF's own tooling emits and what every exporter defaults to.
What it costs is a rig wanting nine expressions. What would make it wrong is one, and the fix is a second weight texture rather than a wider block — the block is per draw and the texture is not.