Ver Fonte

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

Michael Herzog há 1 ano atrás
pai
commit
98341133fa
1 ficheiros alterados com 1 adições e 1 exclusões
  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 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;