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

glBlendFunc

Started by gus Nov 17, 2001 at 9:00 PM 1 replies 400+ views
Original Post
gus
gus
How do I set glBlendFunc if I want a polygon to be completely visible if alpha = 1.0 and completely transparent if alpha = 0.0 ? thanks
Fruny
Fruny
The "common" setting for glBlendFunc() is

glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );

You then have to render the polygons from back to front.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

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

Sign in to reply to this topic.