UNPKG

ogl-typescript

Version:

TypeScript port of OGL WebGL Library

23 lines (22 loc) 617 B
import { Mesh } from '../core/Mesh'; import { Texture } from '../core/Texture'; import { Camera } from '../core/Camera'; export interface GLTFSkinOptions { skeleton: any; geometry: any; program: any; mode: any; } export declare class GLTFSkin extends Mesh { skeleton: any; animations: any; boneMatrices: Float32Array; boneTextureSize: number; boneTexture: Texture; constructor(gl: any, { skeleton, geometry, program, mode }?: Partial<GLTFSkinOptions>); createBoneTexture(): void; updateUniforms(): void; draw({ camera }?: { camera?: Camera; }): void; }