webgl-gltf
Version:
GLTF 2.0 loader for WebGL
23 lines (22 loc) • 805 B
TypeScript
import { mat4 } from 'gl-matrix';
import { Model } from './types/model';
import { ActiveAnimation } from './animation';
/**
* Blends two animations and returns their transform matrices
* @param model GLTF Model
* @param activeAnimations Currently running animations
* @param blendTime Length of animation blend in milliseconds
*/
declare const getAnimationTransforms: (model: Model, activeAnimations: Record<string, ActiveAnimation[]>, blendTime?: number) => {
[key: number]: mat4;
};
/**
* Applies transforms to skin
* @param model GLTF Model
* @param transforms Raw transforms
* @param blendTime Use inverse bind transform
*/
declare const applyToSkin: (model: Model, transforms: {
[key: number]: mat4;
}, inverse?: boolean) => mat4[];
export { getAnimationTransforms, applyToSkin, };