瀏覽代碼

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

puxiao 4 年之前
父節點
當前提交
df11ef69bb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
       });
   }