UNPKG

@pixiv/three-vrm

Version:

VRM file loader for three.js.

29 lines (28 loc) 1.13 kB
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader'; import { VRM, VRMParameters } from '../VRM'; import { VRMImporterOptions } from '../VRMImporter'; import { VRMDebugOptions } from './VRMDebugOptions'; export declare const VRM_GIZMO_RENDER_ORDER = 10000; /** * [[VRM]] but it has some useful gizmos. */ export declare class VRMDebug extends VRM { /** * Create a new VRMDebug from a parsed result of GLTF taken from GLTFLoader. * * See [[VRM.from]] for a detailed example. * * @param gltf A parsed GLTF object taken from GLTFLoader * @param options Options that will be used in importer * @param debugOption Options for VRMDebug features */ static from(gltf: GLTF, options?: VRMImporterOptions, debugOption?: VRMDebugOptions): Promise<VRM>; /** * Create a new VRMDebug instance. * * @param params [[VRMParameters]] that represents components of the VRM * @param debugOption Options for VRMDebug features */ constructor(params: VRMParameters, debugOption?: VRMDebugOptions); update(delta: number): void; }