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

Use Luminance In Desaturate Shader #557

Merged

Conversation

behreajj
Copy link
Contributor

@behreajj behreajj commented Nov 8, 2021

Updated desaturate shader to use perceptual luminance instead of HSV. See https://en.wikipedia.org/wiki/HSL_and_HSV#Disadvantages

Before:

before

After:

after

Thank you for considering this pull request.
Best,
Jeremy

Updated desaturate shader to use perceptual luminance instead of HSV.
Copy link
Member

@OverloadedOrama OverloadedOrama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Maybe in the future we could let the user choose a desaturation method like other software do, but I think this does the job for now so I'll go ahead and merge the changes. Thank you!

@OverloadedOrama OverloadedOrama merged commit 429b37f into Orama-Interactive:master Nov 12, 2021
@behreajj behreajj deleted the desaturate-luminance branch November 12, 2021 19: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