UI: don't multiply color channels by alpha#12599
UI: don't multiply color channels by alpha#12599alice-i-cecile merged 1 commit intobevyengine:mainfrom
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. |
viridia
left a comment
There was a problem hiding this comment.
Yeah, I thought that earlier code looked suspicious, but I wasn't sure.






Objective
Solution