浏览代码

PMREMGenerator: Correctly reset the background (#22311)

Garrett Johnson 4 年之前
父节点
当前提交
fe93fd422c
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 
 	}