瀏覽代碼

Update PMREMGenerator

Garrett Johnson 4 年之前
父節點
當前提交
c5fd82c715
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extras/PMREMGenerator.js

+ 1 - 1
src/extras/PMREMGenerator.js

@@ -259,7 +259,7 @@ class PMREMGenerator {
 
 		const outputEncoding = renderer.outputEncoding;
 		const toneMapping = renderer.toneMapping;
-		_clearColor.copy( renderer.getClearColor() );
+		renderer.getClearColor( _clearColor );
 		const clearAlpha = renderer.getClearAlpha();
 
 		renderer.toneMapping = NoToneMapping;