@trickle/lec3d
Version:
easier three.js encapsulated by lec
13 lines (12 loc) • 437 B
TypeScript
import { GLTF } from "three/examples/jsm/loaders/GLTFLoader";
import { CommonModelOptions } from "./../type";
export interface LoadGLTFParams {
modelPath: string;
options?: CommonModelOptions;
callback?: (gltf: GLTF, model: THREE.Group<THREE.Object3DEventMap>) => void;
}
export interface LoadFBXParams {
modelPath: string;
options?: CommonModelOptions;
callback?: (FBX: any, animationStart: Function) => void;
}