Archived

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

glAlphaFunc

This topic is 5670 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 working on a isometric game. I know how to achieve transparency by faking colorkey with alphatest (glAlphaFunc(GL_GREATER, 0), but what I want now is to render every alpha value. This is used in Lasersquad Nemesis and it looks great! It makes easy to implement shadows and explosion animations for example. I want to draw every alpha value, 0 being fully transparent, 255 being fully opaque, and everything else between those values accordingly. So, how would I do this? Thank you. saeZ

Share this post


Link to post
Share on other sites
Pardon my stupidity, but what values should I use with glBlendFunc()?

I tried GL_SRC_ALPHA and others by random and they didn''t give me the result I wanted. I have no idea which values to use.

saeZ

Share this post


Link to post
Share on other sites