After implementing the code below, my project is successfully rendering my background and avatar. However, when deploying on Netlify, the rendering does not function as expected.
I have attempted using "../../", "./", and other variations, but the issue persists. Any suggestions or insights on how to resolve this?
// Background
const spaceTexture = new THREE.TextureLoader().load('./images/space.jpg');
scene.background = spaceTexture;
// Avatar
const loader = new THREE.TextureLoader().load('logo.svg'); //, color: 0x00FFEB
const jeff = new THREE.Mesh(new THREE.BoxGeometry(2, 2, 2), new THREE.MeshStandardMaterial({ map: loader}));
scene.add(jeff);
Your help is greatly appreciated.