Add Luminance based clipping#1121
Conversation
|
In |
I'm mainly concerned with classic vello as it in required in GraphiteEditor/Graphite, so we would still require a new mix mode for classic vello, don't we? |
|
I'm not familiar with vello classic, but that's possible, yes. Then I would suggest removing the parts from |
@LaurenzV In |
|
I think this was discussed in the Zulip before, basically I wasn't aware you can use blending to simulate this effect, but in any case blending is super slow on the CPU, so I think having masks as an explicit special case makes sense there. |
|
I haven't followed closely as to the technical aspects of this and how it aligns with the desired approach within Vello's engineering direction, but I did want to pop in and just mention that this is a blocker for Graphite in its current form (unless we can use a workaround of some sort). |
Requires peniko#116
SVG has support for Luminance based clipping but vello doesn't support luminance based clipping. If the PR mentioned is merged, then this would allow the vello to use that.
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/mask-type