import * as THREE from 'three' ; import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader' ; import { VRM , VRMParameters } from '../VRM' ; import { VRMImporterOptions } from '../VRMImporter' ; import { VRMDebugOptions } from './VRMDebugOptions' ; import { VRMImporterDebug } from './VRMImporterDebug' ; export const VRM_GIZMO_RENDER_ORDER = 10000 ; /**
 * [[VRM]] but it has some useful gizmos.
 */ export class VRMDebug extends VRM { param gltf param options param debugOption public static async from ( gltf , options = { } , debugOption = { } ) { const importer = new VRMImporterDebug ( options ) ; return await importer . import ( gltf , debugOption ) ; } param params param debugOption constructor ( params , debugOption = { } ) { super ( params ) ; if ( ! debugOption . disableBoxHelper ) { this . scene . add ( new THREE . BoxHelper ( this . scene ) ) ; } if ( ! debugOption . disableSkeletonHelper ) { this . scene . add ( new THREE . SkeletonHelper ( this . scene ) ) ; } } public update ( delta ) { super . update ( delta ) ; } }