Browse Source

Fix: threejs-background-equirectangularmap.html 'scene.background = rt.texture'

puxiao 4 years ago
parent
commit
df11ef69bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      threejs/threejs-background-equirectangularmap.html

+ 1 - 1
threejs/threejs-background-equirectangularmap.html

@@ -78,7 +78,7 @@ function main() {
       () => {
         const rt = new THREE.WebGLCubeRenderTarget(texture.image.height);
         rt.fromEquirectangularTexture(renderer, texture);
-        scene.background = rt;
+        scene.background = rt.texture;
       });
   }