-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
UI: don't multiply color channels by alpha #12599
UI: don't multiply color channels by alpha #12599
Conversation
This might've been related to the aliasing we saw in the original PR on rounded corners? I'm not sure, could be shadows like you said. Probably needs testing. If it turns out we need to keep this, we can do it in the shader only for non-text or something. |
I believe this comment: #12500 (comment) is what lead to the alpha multiplication, but I don't fully understand it and can't find the discussion or review it is referencing. But it seems like we should probably test with either border or background colors, or parent UI nodes with partial transparency? edit: Maybe the referenced "halo" is visible in this comment: #8973 (comment). But as far as I can tell, ickshonpe seemed to think the issue was fixed by the time the PR was adopted. |
with a background color at Looking through changes from #12500, this PR also fix the change on the |
edit: more comprehensive tests below |
Did some experiments with the same transparent border/bg color over the default clear color. This PR restores behavior to pre-round-corners state. I think at the very least, it's pretty clear that this alpha multiplication shouldn't happen for text. (see the The chrome comparison is quite interesting, but maybe not relevant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought that earlier code looked suspicious, but I wasn't sure.
Objective
Solution