I'm trying to implement the algorithm described in http://jcgt.org/published/0002/02/09/ that explains how to achieve order independent transparency. I've managed to implement a two-pass rendering but I'm unable to implement the single pass rendering as introduced in the listing 4 of the article (that is compatible with GL ES).
Here are three images that show the problem. First is the reference (that depends on display order), second, is the multi-pass implementation and last one is the single-pass
Sources are in python using the glumpy framework but I think they are quite self-explanatory.