I am currently building an iPhone game using OpenGL ES 1.1 and using drawTriangleStrip
to draw a big line that winds around the screen and overlaps itself quite often.
The problem I'm having is I don't want the alpha to stack up as the line overlaps itself. Currently I get alpha blending like this:
But I really want it to blend like this:
I have tried using variations of glBlendFunc
but im not really having much luck. If any of you openGL gurus out there can show me how you would achieve the above blending that would be awesome.