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 CanvasModulate color brightness when using 2D HDR #93763

Closed
wants to merge 1 commit into from

Conversation

beaslekr
Copy link

Linearizes p_modulate

Closes #92796

@beaslekr beaslekr requested a review from a team as a code owner June 29, 2024 23:29
@Calinou Calinou added this to the 4.3 milestone Jun 30, 2024
@clayjohn
Copy link
Member

It looks like you are linearizing the color twice. Linearization should only happen once.

A related issue, this always linearized the color, the color should only be linearized when the HDR_2D setting is enabled.

If you take a look at regular modulate, you can see how we check for HDR_2D before linearizing. I suggest you copy the code from the CanvasItem modulate

@clayjohn
Copy link
Member

Superseded by #93802

Thank you for your contribution anyway!

@clayjohn clayjohn closed this Jul 19, 2024
@clayjohn clayjohn removed this from the 4.3 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CanvasModulate color too bright when using 2D HDR
3 participants