Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

different blending modes for each render target

4: Adsense

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   

1532
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



#2 Ashaman73   Members   

13714
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   

1532
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   

1532
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.