Jump to content
  • Advertisement
Sign in to follow this  
Daishim

GLSL and alpha problems

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

I'm having trouble with the alpha channel. I'm using GLSL and framebuffer objects for rendering to texture with alpha components. Whenever I read back the data, the highest order 8-bits (alpha component) are all 1s, however the other components are correct.. This occurs when rendering to a framebuffer object as well as the main framebuffer. Using any GLSL fragement program, even as simple as just an empty function with "gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);" will yield all 0s except for the alpha component's bits which are all 1s. The textures (color buffers) for the framebuffer object are RGBA, as well as the main framebuffer being RGBA. Anyone have any idea what I may have done, or not done, to cause this?

Share this post


Link to post
Share on other sites
Advertisement
Isn't there an alpha buffer? I mean blending just says well I know its a color, maybe .2 of this one and .8 of this one. Just guessing.

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!