Jump to content
  • Advertisement
Sign in to follow this  
tkgamegroup

Blend with vec3

This topic is 1009 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

what happend when you turn on blend and output a vec3?

 

such as:

 

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 
layout(location = 2) out vec3 o_normal;

Share this post


Link to post
Share on other sites
Advertisement

nothing. 

 

 

 

Blending is the stage of OpenGL rendering pipeline that takes the fragment color outputs from the Fragment Shader and combines them with the colors in the color buffers that these outputs map to. Blending parameters can allow the source and destination colors for each output to be combined in various ways.

 

 

taken from:

https://www.opengl.org/wiki/Blending

 

 

basically blending only affects colors

Share this post


Link to post
Share on other sites

nothing. 

 

 

 

Blending is the stage of OpenGL rendering pipeline that takes the fragment color outputs from the Fragment Shader and combines them with the colors in the color buffers that these outputs map to. Blending parameters can allow the source and destination colors for each output to be combined in various ways.

 

 

taken from:

https://www.opengl.org/wiki/Blending

 

 

basically blending only affects colors

 

it means there is no output at all??

Share this post


Link to post
Share on other sites

what happend when you turn on blend and output a vec3?

OpenGL will invent an alpha/'w' component for you. You'd have to double check with the spec, but it will likely use 1.0, or if not that, then 0.0...

Share this post


Link to post
Share on other sites

 

what happend when you turn on blend and output a vec3?

OpenGL will invent an alpha/'w' component for you. You'd have to double check with the spec, but it will likely use 1.0, or if not that, then 0.0...

 

thank you, your answer is just like what i think, i will try it.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!