I'm interested in adding various textures to each side of a box, but I'm uncertain if using loader.load
is the correct approach. Currently, my code looks like this:
loader.load('img/brick.jpg', function ( texture ){
var boxGeometry = new THREE.BoxGeometry( 3, 3, 3 );
var boxMaterial = new THREE.MeshLambertMaterial({
map: texture,
overdraw: 10
});
var box = new THREE.Mesh( boxGeometry, boxMaterial );
box.castShadow = true;
scene.add(box);
}
Can I include multiple images in the loader.load function, or should I explore a different method?