Sfoglia il codice sorgente

PMREMGenerator: Correctly reset the background (#22311)

Garrett Johnson 4 anni fa
parent
commit
fe93fd422c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/extras/PMREMGenerator.js

+ 1 - 0
src/extras/PMREMGenerator.js

@@ -353,6 +353,7 @@ class PMREMGenerator {
 		renderer.toneMapping = toneMapping;
 		renderer.outputEncoding = outputEncoding;
 		renderer.autoClear = originalAutoClear;
+		scene.background = background;
 
 	}