GLSL and alpha problems

Started by
3 comments, last by Daishim 16 years, 9 months ago
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?

I know only that which I know, but I do not know what I know.
Advertisement
Do you have any blending active?
No blending is enabled.

I know only that which I know, but I do not know what I know.
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.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

Yes. I'm trying to retain the actual alpha value, and not blend.

I know only that which I know, but I do not know what I know.

This topic is closed to new replies.

Advertisement