This is great! There is, however, one potential issue with this implementation stated here:
"Faces are sorted back-to-front in a very approximate way according to the Z centroid".
In certain cases, this can lead to showing the back face and hiding the front face because the centroid position is not sufficient for figuring out the Z order of triangles.
Other than this minor issue, it's a great implementation.
"Faces are sorted back-to-front in a very approximate way according to the Z centroid".
In certain cases, this can lead to showing the back face and hiding the front face because the centroid position is not sufficient for figuring out the Z order of triangles.
Other than this minor issue, it's a great implementation.