loader.load('IMAGE', (texture) => {
const material = new THREE.MeshBasicMaterial({
map: texture,
});
var cubeGeometry = new THREE.BoxGeometry(140, 140, 140);
var cube = new THREE.Mesh(cubeGeometry, material);
this.add(cube);
});
I have this code that uses one texture for every face of the cube, but how can i adapt it so each face of the cube is a different texture?