[cairo] [RFC] Cairo operators expressed in shader syntax
Jeff Muizelaar
jeff at infidigm.net
Sat May 12 12:19:17 PDT 2007
On Fri, May 11, 2007 at 04:22:11PM -0700, Daniel Amelang wrote:
> ; SOURCE
> result = src
> ; src IN mask SOURCE dst
> result = src * mask.a
> ; src COMPONENT_IN mask SOURCE dst
> result = src * mask
Just as a note, although pixman's SOURCE operator behaves this way,
Cairo's does not. It looks more like:
result = src * mask.a + (1.0 - mask.a) * dst
-Jeff
More information about the cairo
mailing list