Function bakeVat
-
bakeVat(
engine: EngineContext,
mesh: Mesh,
groups: AnimationGroup[],
opts?: VatBakeOptions,
): VatBakeResultParameters
- engine: EngineContext
Engine context.
- mesh: Mesh
The skinned source mesh (must have
mesh.skeleton). - groups: AnimationGroup[]
The animation clips to bake (e.g. a creature's gait clips).
Optionalopts: VatBakeOptionsOptional extras to capture during the bake (e.g. per-frame bone origins).
Returns VatBakeResult
- engine: EngineContext
Bake the given animation clips of a skinned mesh into a VAT texture. The clips are laid out as contiguous row blocks (clip 0 first), one texture row per frame. The mesh must still have its live
skeletonat bake time (the bone matrices are read from it as each frame is evaluated).