소스 검색

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;
 
 	}