Sfoglia il codice sorgente

Editor: Fix equirect backgrounds. (#21690)

Michael Herzog 4 anni fa
parent
commit
ae1098eeff
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.toJSON = function () { return null }; // TODO Remove hack
 
-					scene.background = renderTarget;
+					scene.background = renderTarget.texture;
 
 				}