const loader = new THREE.CubeTextureLoader() const texture = loader.load([ 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/pos-x.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/neg-x.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/pos-y.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/neg-y.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/pos-z.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/neg-z.jpg', ]); scene.background = texture
const loader = new THREE.TextureLoader() const texture = loader.load( 'resources/images/equirectangularmaps/tears_of_steel_bridge_2k.jpg', () => { const rt = new THREE.WebGLCubeRenderTarget(texture.image.height) rt.fromEquirectangularTexture(renderer, texture) scene.background = rt }) }

