I am attempting to design a lengthy corridor with a repetitive texture. How can I incorporate a repeating texture and rotate an object (specifically a plane) at right angles to form the walls and ceiling of the corridor?
let texture, material, plane;
texture = THREE.ImageUtils.loadTexture( "../img/texture.jpg" );
texture.wrapT = THREE.RepeatWrapping; // The effect isn't quite as intended;
material = new THREE.MeshLambertMaterial({ map : texture });
plane = new THREE.Mesh(new THREE.PlaneGeometry(400, 3500), material);
plane.doubleSided = true;
plane.position.x = 100;
plane.rotation.z = 2; // Unsure about the significance of this value.
scene.add(plane);