|
@@ -219,7 +219,7 @@ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
|
|
+ () => {
|
|
+ () => {
|
|
+ const rt = new THREE.WebGLCubeRenderTarget(texture.image.height);
|
|
+ const rt = new THREE.WebGLCubeRenderTarget(texture.image.height);
|
|
+ rt.fromEquirectangularTexture(renderer, texture);
|
|
+ rt.fromEquirectangularTexture(renderer, texture);
|
|
-+ scene.background = rt;
|
|
|
|
|
|
++ scene.background = rt.texture;
|
|
+ });
|
|
+ });
|
|
}
|
|
}
|
|
```
|
|
```
|