Skip to content

Commit

Permalink
#459 hotfix: Update draco decoder path
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Dec 26, 2022
1 parent 09f9099 commit 9ef5304
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import particle from '../textures/particle.png';
import { hasVisualType, hasVisualValue } from "./util";
import { hasVisualValue } from "./util";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
import { ColladaLoader } from "three/examples/jsm/loaders/ColladaLoader";
Expand Down Expand Up @@ -34,7 +34,7 @@ export default class MeshFactory {

setupLoaders (){
const dracoLoader = new DRACOLoader()
dracoLoader.setDecoderPath('https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/libs/draco/');
dracoLoader.setDecoderPath('../../../node_modules/three/examples/js/libs/draco/');

const manager = new this.THREE.LoadingManager();
manager.onProgress = function (item, loaded, total) {
Expand Down

0 comments on commit 9ef5304

Please sign in to comment.