Hey all-
I'm in the process of writing a patch which simulates foliage growing from a branch, and gets thicker or thinner based on the inputs I give.
The dimensions and growth are all fine, but the problem I'm having is that when the images of leaves overlap (which it will need to do for the effect I want) they:
-blend together when blend mode is set to 'add', or
-the image retains a black square around it when set to 'over' or 'Replace'
I guess I basically need to get rid of the black square within the image but use either the 'replace' or 'over' blend modes so that the leaf images will layer over each other without blending into one another.
I imagine that this might have something to do with the alpha channel of the original image that I use?
Any help would be appreciated. Thanks!