Now renders objects in order with respect from their distance to the camera.