finally! I've been dying to make one of these for years but i could never get the sorting to work. i finally figured it out. its simple for now, but i'm still adding stuff to it. you may notice tiny bits of triangles may clip through, this is because it uses average z position of the triangle to sort by depth, and so sometimes there are cases when triangles which should be behind actually have a lower z position and are thus drawn on top. i could fix that, but right now i don't care.
tri filler not by me quicksort not by me (ask me if u need credits of these)