Parcourir la source

PMREMGenerator: Correctly reset the background (#22311)

Garrett Johnson il y a 4 ans
Parent
commit
fe93fd422c
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;
 
 	}