There's no "add" rasterop. It's all just "blend". Still, you'll see I pull off glows with my LED buttons. The glow is built into the alpha channel (and the two states of the button are in the filmstrip, one bright with glow, the other dark with no glow).aciddose wrote:no you haven't noticed it i guess.
so you have one led, the background is drawn under it, it draws the body, then the glow is added on top.
it's next to another led which overlaps it, so the previously drawn glow was inside it's rect. now the background is drawn to fill this led's rect - uh oh, the glow has been erased.
They don't get ugly when they overlap. There's some things that aren't quite as in reality, shadows dimming light glow underneath them, etc. But the eye is a lot more forgiving than the ear.
You're trying to composite controls in code, rather than in Photoshop. Why assemble layers when you're always going to get the same composite every time? Compositing the glow on the fly doesn't save space, and (while infinitesimal) it doesn't save time either. Better to can the answer and just comp it once over the BG (and whatever other controls may happen to underlap it). You're trying to be too cool.
Anyway, we should take this into the Dev board. There's a VST3 thread there already I believe.



