import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader' ; import { VRMBlendShapeProxy } from '../blendshape' ; import { VRMFirstPerson } from '../firstperson' ; import { VRMHumanoid } from '../humanoid' ; import { VRMLookAtHead } from '../lookat/VRMLookAtHead' ; import { VRMLookAtImporter } from '../lookat/VRMLookAtImporter' ; import { VRMSchema } from '../types' ; import { VRMLookAtHeadDebug } from './VRMLookAtHeadDebug' ; export class VRMLookAtImporterDebug extends VRMLookAtImporter { public import ( gltf , firstPerson , blendShapeProxy , humanoid ) { const vrmExt = gltf . parser . json . extensions ?. VRM ; if ( ! vrmExt ) { return null ; } const schemaFirstPerson = vrmExt . firstPerson ; if ( ! schemaFirstPerson ) { return null ; } const applyer = this . _importApplyer ( schemaFirstPerson , blendShapeProxy , humanoid ) ; return new VRMLookAtHeadDebug ( firstPerson , applyer || undefined ) ; } }