Explorar el Código

PMREMGenerator: Correctly reset the background (#22311)

Garrett Johnson hace 4 años
padre
commit
fe93fd422c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
 
 	}