Update texture path in app.js
This commit is contained in:
@@ -91,7 +91,7 @@ onResize();
|
|||||||
// ---- Environment ----
|
// ---- Environment ----
|
||||||
const texLoader = new THREE.TextureLoader();
|
const texLoader = new THREE.TextureLoader();
|
||||||
const pmremGen = new THREE.PMREMGenerator(renderer);
|
const pmremGen = new THREE.PMREMGenerator(renderer);
|
||||||
texLoader.load('assets/hdri/environment.jpg', tex => {
|
texLoader.load('assets/images/hdri/environment.jpg', tex => {
|
||||||
const envRT = pmremGen.fromEquirectangular(tex).texture;
|
const envRT = pmremGen.fromEquirectangular(tex).texture;
|
||||||
scene.environment = envRT;
|
scene.environment = envRT;
|
||||||
scene.background = envRT;
|
scene.background = envRT;
|
||||||
|
|||||||
Reference in New Issue
Block a user