Skip to main content
GameDev.net gamedev.net
🔒 Locked

Alpha blending

Started by zhech Jul 31, 2001 at 4:27 PM 1 replies 300+ views
Original Post
zhech
zhech
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?
Justin Olson
jerry2
jerry2
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
jerry2The God creates the world, the world creates the nature,the nature creates human. Human create...Everything.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.