Browse Source

fix paths

Gregg Tavares 5 years ago
parent
commit
ef17aca656

+ 1 - 1
threejs/lessons/resources/threejs-custom-buffergeometry.js

@@ -3,7 +3,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
 
 {
   const loader = new THREE.TextureLoader();
-  const texture = loader.load('../resources/images/star-light.png');
+  const texture = loader.load('/threejs/resources/images/star-light.png');
   texture.wrapS = THREE.RepeatWrapping;
   texture.wrapT = THREE.RepeatWrapping;
   texture.repeat.set(3, 1);

+ 1 - 1
threejs/lessons/resources/threejs-fog.js

@@ -23,7 +23,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
       roughness: 1,
       metalness: 0,
     };
-    loader.load('../resources/models/simple_house_scene/scene.gltf', (gltf) => {
+    loader.load('/threejs/resources/models/simple_house_scene/scene.gltf', (gltf) => {
       const hackGeometry = new THREE.CircleBufferGeometry(0.5, 32);
       const box = new THREE.Box3();
       const size = new THREE.Vector3();