API

Interface VatBakeTarget

One mesh in a batched VAT bake, with optional per-mesh capture extras.

interface VatBakeTarget {
    captureBoneMatrices?: readonly number[];
    captureBoneOrigins?: readonly number[];
    mesh: Mesh;
}

Hierarchy (View Summary)

Index
captureBoneMatrices?: readonly number[]

Bone indices whose complete posed SKINNING MATRIX should be captured per baked frame — the rigid attachment case, where the attached geometry must inherit the bone's rotation and scale, not only its origin (a saddle, a socketed mesh, a plate rigidly weighted to one joint). Bone index = position in the skeleton's joint list = the bone's row block in the baked texture. Captured during the same CPU-only evaluation that fills the texture, so no clip has to be re-seeked afterwards. See VatBakeResult.boneMatrices.

captureBoneOrigins?: readonly number[]

Bone indices whose posed ORIGIN should be sampled per baked frame (e.g. a hand joint for a held item, a muzzle, an FX socket). Bone index = position in the skeleton's joint list = the bone's row block in the baked texture. See VatBakeResult.boneOrigins.

mesh: Mesh