ileben / ShivaVG

OpenGL based ANSI C implementation of the OpenVG standard.
GNU Lesser General Public License v2.1
131 stars 34 forks source link

vgMask not implement? #1

Open GG-coder889 opened 11 years ago

GG-coder889 commented 11 years ago

how to implement this function?

Gorggg commented 3 years ago

I would think this could be implemented someday by having a texture containing alpha values that are multiplied with the source. This is at least how AmanithVG seems to implement it, although I can't be sure because it is closed-source. Implementing it this way would also have the effect of making ShivaVG require 2 texture units, but for most modern hardware that shouldn't be an issue.