Original Post
I have a series of objects in my level that all use alpha blending (grass, trees, etc..) and from what I understand, I need to sort them by distance from closest to furthest so they do not occlude each other. I can get the distance to each object from the camera and sort them using: sort(Distances.begin(), Distances.end()); This is fine for sorting the distances, but I need the distances to actually know which object is attatched to them. Would anyone know how to do this, or is there a RenderState I can set that will just render alpha objects front to be for me? Thanks, Chris