Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow control renderTarget encoding #23870

Conversation

iuriiiurevich
Copy link
Contributor

Description

Considering the Color Management updates (#23430, #23392), it seems like the right thing to do is to bring back the ability to control the encoding in which the pixels are rendered to the renderTarget.

The current behavior is that if I want an sRGB-encoded renderTarget, the WebGLRenderer will write everything to it in Linear, except for the background color, which is going to be written in sRGB, which is not right.

This PR fixes this behavior and gives the user control over the encoding of the renderTarget.

Should we add this to the next minor?

Related issues: #23251, #23278

@Mugen87 Mugen87 closed this Apr 8, 2022
@iuriiiurevich iuriiiurevich deleted the fix/allow-control-renderTarget-encoding branch April 8, 2022 15:22
@iuriiiurevich iuriiiurevich restored the fix/allow-control-renderTarget-encoding branch April 11, 2022 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants