Ver Fonte

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

puxiao há 4 anos atrás
pai
commit
df11ef69bb
1 ficheiros alterados com 1 adições e 1 exclusões
  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;
       });
   }