[ATTACH=CONFIG]542[/ATTACH]
I want to render hair in my program, however the transparency of each hair strand is overlapping the others. I’m not sure on which kind blending/alpha testing technique to use. I currently using:
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
but the result I get is above, the hair is 1 mesh containing many triangulated planes with a transparent texture. I’ve already tried some methods like transparency sorting shown in Transparency Sorting - OpenGL Wiki
and also other parameters for glBlendFunc() didn’t seem to yield any desired results.
How should I go about this?