by Xaser » Tue Mar 25, 2008 9:57 pm
I was poking around in the source (!) in hopes of solving a problem of mine. I *almost* found a solution, but it seems it's not implemented.
The feature in question: STYLE_Shaded. Its description in r-blend.h reads "Treat patch data as alpha values for alphacolor" -- Would I be correct in saying this acts like an "additive" STYLE_Stencil? (i.e. a pixel of color #FFFFFF would show as fully opaque while #000000 would be invisible, #888888 half-way between?)
I may be way off, but I can't test it. It seems this flag is not actually usable in DECORATE, and Stencil doesn't do what I hope for. If my understanding of this style is off, please correct me, but otherwise I have some use for it. Perhaps this could be added, if the case is yes?
Also, I've heard "rumors" of a subtractive blending style as well, but it seems it can't be used at the moment. Would it be terrible at all to allow us access to it? Sounds very interesting and would also provide a solution to my problem. I'm looking for a way to make a sprite have inverse-additive color: black is fully opaque while white is invisible. Currently, no way exists to pull this off, and that's a problem. Any help?
I was poking around in the source (!) in hopes of solving a problem of mine. I *almost* found a solution, but it seems it's not implemented.
The feature in question: STYLE_Shaded. Its description in r-blend.h reads "Treat patch data as alpha values for alphacolor" -- Would I be correct in saying this acts like an "additive" STYLE_Stencil? (i.e. a pixel of color #FFFFFF would show as fully opaque while #000000 would be invisible, #888888 half-way between?)
I may be way off, but I can't test it. It seems this flag is not actually usable in DECORATE, and Stencil doesn't do what I hope for. If my understanding of this style is off, please correct me, but otherwise I have some use for it. Perhaps this could be added, if the case is yes?
Also, I've heard "rumors" of a subtractive blending style as well, but it seems it can't be used at the moment. Would it be terrible at all to allow us access to it? Sounds very interesting and would also provide a solution to my problem. I'm looking for a way to make a sprite have inverse-additive color: black is fully opaque while white is invisible. Currently, no way exists to pull this off, and that's a problem. Any help?