You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it doesn't consider the transparency of the source color. For example, says source color = (0, 1, 1, 0) and dest color = (1, 0, 0, 1), with BlendSourceOver we'll have result color = (1, 1, 1, 1), which does not make sense to me. In fact, as long as the source color is semi-opaque, then the result color would be kind of weird.
Hence, I think that BlendSourceOver could be instead defined as following (or something else that could take the source's alpha channel into account):
Operating System
What feature would you like to be added?
Currently, the
ebiten.BlendSourceOver
(Note: same issue applied toBlendDestinationOver
) is defined as following:However, it doesn't consider the transparency of the source color. For example, says source color =
(0, 1, 1, 0)
and dest color =(1, 0, 0, 1)
, withBlendSourceOver
we'll have result color =(1, 1, 1, 1)
, which does not make sense to me. In fact, as long as the source color is semi-opaque, then the result color would be kind of weird.Hence, I think that
BlendSourceOver
could be instead defined as following (or something else that could take the source's alpha channel into account):If it is not possible to change the original preset variable, adding another new blend mode would be great, too.
The description of the over operator of color composition on the Wikipedia might help: https://en.wikipedia.org/wiki/Alpha_compositing#Description
Why is this needed?
No response
The text was updated successfully, but these errors were encountered: