Skip to content

Commit

Permalink
Renderer: Use output color space conversion only when rendering to sc…
Browse files Browse the repository at this point in the history
…reen. (mrdoob#28909)
  • Loading branch information
Mugen87 authored Jul 19, 2024
1 parent f1e2e0a commit 9834113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9834113

Please sign in to comment.