Hello,
I would like to know how to do some additive blending in COGL, but
which would clip to the maximum value of each color channel.

For an additive blending mode the COGL material blend string would be:

"RGBA = ADD (SRC_COLOR * (SRC_COLOR[A]), DST_COLOR * (SRC_COLOR[A]))".

What if I would like those colors not too be added, but mixed so that
the brightest value or each channel wins?

If there was a "MAX" blending function, it would look like this:

"RGBA = MAX (SRC_COLOR * (SRC_COLOR[A]), DST_COLOR * (SRC_COLOR[A]))".

How can I do this?

Thanks!
-- 
Alexandre Quessy
http://alexandre.quessy.net/
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to