Jump to content
  • Advertisement
Sign in to follow this  
hayden

OpenGL GLSL problem using the alpha channel (RGBA)

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

Hi again :P in my application using OpenGL, GLSL and FBO's, in my fisrt renderization to texture i'm trying to put the depth information in the alpha channel, i use RGBA 16 bits: glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB16F_ARB, width, height, 0, GL_RGBA, GL_FLOAT, NULL); But in my next shader, while loading the first rendered texture, the alpha channel just gives me the value 1.0.. i'm kinda noob at this and don't know what can i possible doing wrong. Should i configure OpenGL in a different way? This is what i have: glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); Thanks in advance! :)

Share this post


Link to post
Share on other sites
Advertisement
Ups, how didn't i saw that?... lol

Sorry about this dumb question but thanks! By now i would be still without knowing what was the prob.. :S

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!