Skip to content

Fix an old regression in rectangle filling transparency handling - #536

Merged
K4thos merged 1 commit into
ikemen-engine:masterfrom
samhocevar-forks:fix/quad-transparency
May 26, 2022
Merged

K4thos merged 1 commit into
ikemen-engine:masterfrom
samhocevar-forks:fix/quad-transparency

Conversation

@samhocevar

Copy link
Copy Markdown
Contributor

In this commit from 2018, @NeatUnsou changed the rendering method in rmMainSub() so that it does not necessarily use additive blending, which allowed the alpha = -2 case to be handled properly: the final colour is dst - src, whereas it used to be dst - src * dst.

However when the blend equation change was reflected in FillRect in this commit the blend function was not modified, so the final blended colour is still dst - src * dst.

@K4thos
K4thos merged commit 1478ddb into ikemen-engine:master May 26, 2022
@samhocevar
samhocevar deleted the fix/quad-transparency branch May 26, 2022 12:29
K4thos added a commit that referenced this pull request Jul 21, 2022
consequence of #536 fix
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