different blending modes for each render target

Started by
2 comments, last by Yours3!f 10 years, 10 months ago

Hi there,

I'd like to do different blending for each render target in my fbo.

So for example I'd like to overwrite the first render target (GL_COLOR_ATTACHMENT0), but for the second I'd like to do a glBlendFunc(GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR)

is there any way I can do this?

Best regards,

Yours3!f

Advertisement

Take a look at the ARB_draw_buffer_blend extension ,should although be part of ogl4 .

Take a look at the ARB_draw_buffer_blend extension ,should although be part of ogl4 .

thanks, so should I do glBlendFunci( 1, ... ) if I want to set blending for the second render target only?

okay I couldn't wait, so I tried it :) that is how you use it. Thank you again Ashaman73!

This topic is closed to new replies.

Advertisement