Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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: 1383

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: 7793

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 .



#3 Yours3!f   Members   -  Reputation: 1383

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: 1383

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