WasmGPU.animation¶
Summary¶
WasmGPU.animation is the animation and skin factory facade. It creates animation clips, players that advance a clip over time, and reusable skins that can create per-mesh skin instances.
Syntax¶
const clip = wgpu.animation.createClip(descriptor);
const player = wgpu.animation.createPlayer(clip);
Available APIs¶
- animation.createClip creates an animation clip.
- animation.createPlayer creates a player for a clip.
- animation.createClip#sample samples a returned clip.
- animation.createPlayer#update advances a returned player.
- animation.createSkin creates a skin, and animation.createSkin#createInstance binds it to a mesh transform.