Function attachVat
-
Parameters
- engine: EngineContext
Engine context.
- mesh: Mesh
The mesh that was baked (still has
mesh.skeleton). - baked: VatBakeResult
The result of
bakeVat. Optionalclip: stringInitial clip name to play (defaults to the first baked clip).
Returns VatHandle
- engine: EngineContext
Attach a baked VAT to a mesh: builds the settings UBO, sets
mesh.vat(reusing the skeleton's joints/weights vertex buffers), and DROPS the live skeleton so it's no longer CPU-updated. Returns a handle that advances the animation clock.