Parcourir la source

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

puxiao il y a 4 ans
Parent
commit
df11ef69bb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
       });
   }