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

Clamp negative colors regardless of the tonemapper to avoid artifacts #51436

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 9, 2021

master version of #51439.

Color artifacts could be visible when using negative lights with the Filmic and ACES tonemapping operators, as these did not clamp negative colors.

Question: Should we clamp in each tonemapper individually, do it for all tonemappers separately, or do it for all tonemappers except Linear? I'm not sure if it makes a difference.

Preview

Linear

Before After
2021-08-09_17 00 15 2021-08-09_16 59 16

Reinhard (already clamped before this PR)

Before After
2021-08-09_17 00 22 2021-08-09_16 59 23

Filmic

Before After
2021-08-09_17 00 28 2021-08-09_16 59 31

ACES

Before After
2021-08-09_17 00 36 2021-08-09_16 59 37

Color artifacts could be visible when using negative lights with the
Filmic and ACES tonemapping operators, as these did not clamp negative
colors.
@akien-mga akien-mga merged commit 51b4df7 into godotengine:master Aug 10, 2021
@akien-mga
Copy link
Member

Thanks!

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.

3 participants