Recently, I've delved into learning three.js using codepen.io. However, I encountered an issue while attempting to add a texture to my box geometry - the texture just won't show up. Can anyone help me troubleshoot this problem in my code?
const cubetexture = new THREE.TextureLoader().load('https://i.sstatic.net/9vixO.png');
const geometry = new THREE.BoxGeometry( 10, 10, 10 )
const material = new THREE.MeshBasicMaterial( { map: cubetexture } );
const cube = new THREE.Mesh( geometry, material );
cube.rotateY(Math.PI / 3);
scene.add(cube)