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

UIEffect Add only works on Gamma Color Space #237

Open
GuillemDomenech opened this issue Feb 15, 2021 · 1 comment
Open

UIEffect Add only works on Gamma Color Space #237

GuillemDomenech opened this issue Feb 15, 2021 · 1 comment
Assignees
Labels

Comments

@GuillemDomenech
Copy link

I'm trying to achieve this effect using the Add option, white color and 0.145 Color Factor:

But it only works on Gamma Color Space, here's how it looks in Linear:

For reference, here's the image without any effect applied:

How could I achieve the effect in the first image but with a Linear color space?

@GuillemDomenech
Copy link
Author

@mob-sakai Do you know how I could solve this issue? I've tried adding this "color.a = pow(color.a, 2.2);" before returning the color in your "UIEffect.shader" but if I do the base color without the effect doesn't look good, it doesn't look as if I was in the gamma color space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants