Browse Source

PMREMGenerator: Correctly reset the background (#22311)

Garrett Johnson 4 years ago
parent
commit
fe93fd422c
1 changed files with 1 additions and 0 deletions
  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;
 
 	}