瀏覽代碼

Renderer: Use output color space conversion only when rendering to screen. (#28909)

Michael Herzog 1 年之前
父節點
當前提交
98341133fa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/common/Renderer.js

+ 1 - 1
src/renderers/common/Renderer.js

@@ -457,7 +457,7 @@ class Renderer {
 		const { currentColorSpace } = this;
 		const { currentColorSpace } = this;
 
 
 		const useToneMapping = this._renderTarget === null && ( this.toneMapping !== NoToneMapping );
 		const useToneMapping = this._renderTarget === null && ( this.toneMapping !== NoToneMapping );
-		const useColorSpace = currentColorSpace !== LinearSRGBColorSpace && currentColorSpace !== NoColorSpace;
+		const useColorSpace = this._renderTarget === null && ( currentColorSpace !== LinearSRGBColorSpace && currentColorSpace !== NoColorSpace );
 
 
 		if ( useToneMapping === false && useColorSpace === false ) return null;
 		if ( useToneMapping === false && useColorSpace === false ) return null;