(2D/sprites) How to render fragments with highest alpha on top of other fragments

check Using 2D sprites and depth textures to fake pixel depth.