Sign in to follow this  

different blending modes for each render target

This topic is 1679 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Sign in to follow this