glBlendFunc
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
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.
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
You then have to render the polygons from back to front.
You can almost do that using alpha testing:
[Resist Windows XP''s Invasive Production Activation Technology!]
gEnable(GL_ALPHA_TEST);glAlphaFunc(GL_GREATER,0.0f);// RenderglDisable(GL_ALPHA_TEST);
[Resist Windows XP''s Invasive Production Activation Technology!]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement