Jump to content
  • Advertisement
Sign in to follow this  
pixelhead

global alpha + glColorPointer

This topic is 4304 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 - I am using a per vertex color via VBOs and glColorPointer. The per vertex colors are currently RGB, no alpha. Is there a way to specify a global alpha that affects the colors in the glColorPointer? My vertex count is pretty high so I wanted to avoid locking the VBO every time the alpha is changed. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
From what I've read, setting a 3 channel color in openGL implicitly sets the alpha component to 1, so there is probably no easy way of doing this.

I think your best bet would be to remove your per-vertex color information (use a texture instead, if possible) and just call glColor4[blah] before you draw the mesh.

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!