Why doesn''t it work with the lesson33''s texture ?? The alpha test doesn''t work and I can see the quad border !
Thanks a lot !
PS: Scuze my english, I''m living in France :p
"Software is like sex, it''''s better when it''''s free !"

Share this post

Link to post

Share on other sites

You didn''t make the Depth Mask read only before rendering to the screen. If you don''t, the new drawing will overwrite the pixels in the depth buffer before they can be blended. Therefore the alpha will not show.

Call this to make the Depth Buffer read onlyglDepthMask(GL_FALSE);

Call this to restore the Depth BufferglDepthMask(GL_TRUE);

Note that you need to draw all your opaque objects first, then draw your transparent objects.