Sfoglia il codice sorgente

Editor: Fix equirect backgrounds. (#21690)

Michael Herzog 5 anni fa
parent
commit
cc522521da
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      editor/js/Viewport.js

+ 1 - 1
editor/js/Viewport.js

@@ -575,7 +575,7 @@ function Viewport( editor ) {
 					renderTarget.fromEquirectangularTexture( renderer, backgroundEquirectangularTexture );
 					renderTarget.fromEquirectangularTexture( renderer, backgroundEquirectangularTexture );
 					renderTarget.toJSON = function () { return null }; // TODO Remove hack
 					renderTarget.toJSON = function () { return null }; // TODO Remove hack
 
 
-					scene.background = renderTarget;
+					scene.background = renderTarget.texture;
 
 
 				}
 				}
 
 

粤ICP备19079148号