Several helpful functions to work with VAT
npm install bjs-vat-helpersSeveral helpful functions to work with VAT
function bakeMesh(engine: AbstractEngine, meshPath: string): Promise
Bake mesh's animations into Float32Array. Requires Skeleton and AnimationGroups.
``typescript``
function createVAT(
scene: Scene,
mesh: Mesh,
anims: string | AnimationGroup[] | Texture | Float32Array,
opts?: {
printJSON?: boolean;
}
): Promise<{
readonly manager: BakedVertexAnimationManager;
readonly dispose: (disposeTexture?: boolean) => void;
}>;