Explorar o código

PMREMGenerator: Correctly reset the background (#22311)

Garrett Johnson %!s(int64=4) %!d(string=hai) anos
pai
achega
fe93fd422c
Modificáronse 1 ficheiros con 1 adicións e 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;
 
 	}