There are a couple threads on *nearly* this topic, but they are either divergent or died out.
I have a framebuffer that I have to have a meaningful alpha plane in. The image gets rendered and then gets blended based on reulting alpha per pixel in the framebuffer (hardware combiner)
So I do a
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
Draw the geometry which has some transparent components.
Since I have cleared with opaque black clear color, I expect the results to be opaque. But they are the alpha of the geometry rendered over it - SRC_ALPHA.
In other cases I will NEED to render the SRC_ALPHA into the framebuffer - to "cut a hole" in the scene.
So what little dance do I need to do to control when the SRC_ALPHA goes straight to the framebuffer (or FBO) from the SRC in order to "cut through" the scene and when it blends with the existing background to be "more opaque" as layers get added?
It has been a long day on this one.
Any thoughts are greatly appreciated?