• Advertisement

Archived

This topic is now archived and is closed to further replies.

Alpha blending

This topic is 6015 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 loading a .tga file and have loaded in the GL_RGBA format. I want to use the alpha value for alpa blending. I had it working for a second then I don''t have a clue what happened and it stopped. Does anyone have any ideas?

Share this post


Link to post
Share on other sites
Advertisement
you can use the glBlendFunc to set pixel arithmetic,use the glAlphaFunc to set alpha test,and use glEnable(GL_BLEND)to enable alpha blending.the particular ways please see the OpenGl function reference.

jerry2

Share this post


Link to post
Share on other sites

  • Advertisement