Jump to content
  • Advertisement

Archived

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

SeanHowe

OpenGL OpenGL Transparency

This topic is 6934 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

For some reason, when I try to use transparency as in glColor4f(..., ..., ..., 0.5), the primitives that are drawn next are still solid. Any ideas why that is? Here''s how I''m enabling it... glEnable(GL_ALPHA_TEST); glAlphaFunc(GL_ALWAYS, 0);

Share this post


Link to post
Share on other sites
Advertisement
The Alpha test tests each fragment if it''s accepted or not. But if you want to blend two colors, you must use glBlendFunc()

Visit our homepage: www.rarebyte.de.st

GA

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!