Update texture path in app.js

This commit is contained in:
2025-05-28 05:44:18 +02:00
parent 02d3fa9629
commit c8429f7297

View File

@@ -91,7 +91,7 @@ onResize();
// ---- Environment ----
const texLoader = new THREE.TextureLoader();
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;
scene.environment = envRT;
scene.background = envRT;