/** * The environment map is like an image of what's surrounding the scene. * You can use it to add reflection or refraction to your objects. * It can also be used as lighting information. **/ const material = new THREE.MeshStandardMaterial(); material.metalness = 0.7; material.roughness = 0.2; const cubeTextureLoader = new THREE.CubeTextureLoader(); const environmentMapTexture = cubeTextureLoader.load([ '/textures/environmentMaps/0/px.jpg', '/textures/environmentMaps/0/nx.jpg', '/textures/environmentMaps/0/py.jpg', '/textures/environmentMaps/0/ny.jpg', '/textures/environmentMaps/0/pz.jpg', '/textures/environmentMaps/0/nz.jpg' ]); material.envMap = environmentMapTexture;