Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


different blending modes for each render target


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Yours3!f   Members   -  Reputation: 1424

Like
0Likes
Like

Posted 13 June 2013 - 03:35 AM

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



Sponsor:

#2 Ashaman73   Crossbones+   -  Reputation: 11011

Like
1Likes
Like

Posted 13 June 2013 - 04:01 AM

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


Ashaman

 

Gnoblins: Website - Facebook - Twitter - Youtube - Steam Greenlit - IndieDB - Gamedev Log


#3 Yours3!f   Members   -  Reputation: 1424

Like
0Likes
Like

Posted 13 June 2013 - 04:12 AM

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?



#4 Yours3!f   Members   -  Reputation: 1424

Like
0Likes
Like

Posted 13 June 2013 - 05:13 AM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS