Is there any way to set separate blend equations to differend color attachments of one FBO.
(at least on nvidia 280 class cards with opengl 3.0 support)
I have fbo with 2 color attachments (GL_COLOR_ATTACHMENT0_EXT and GL_COLOR_ATTACHMENT1_EXT)
and the glsl shader that outputs to gl_FragData and gl_FragData.
Now i want the first glsl output to be blended with attachment 0
and the second output to be added to attachment 1
How to do the trick ? It is possible ?
I need to out a lot of quads, each should blend with one attachment and add to another - the fragment shader that calculates outputs is non-trivial - so running it 2 times is a big waste of computing power