Sign in to follow this  
Daishim

GLSL and alpha problems

Recommended Posts

Daishim    244
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this