dispose method
void
dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Implementation
void dispose() {
if(disposed) return;
disposed = true;
boneTexture?.dispose();
boneMatrices?.dispose();
bones.forEach((bone){
bone.dispose();
});
}