fix basic depth sorting

This commit is contained in:
benfry
2006-04-19 01:06:47 +00:00
parent 880d69dc40
commit 0035fc5641
2 changed files with 8 additions and 7 deletions

View File

@@ -1319,7 +1319,7 @@ public class PGraphics3 extends PGraphics {
protected void depth_sort_triangles() {
depth_sort_triangles_internal(0, triangleCount);
depth_sort_triangles_internal(0, triangleCount-1);
}
@@ -1347,10 +1347,9 @@ public class PGraphics3 extends PGraphics {
protected void depth_sort_triangles_swap(int a, int b) {
int temp[] = triangles[a];
int tempi[] = triangles[a];
triangles[a] = triangles[b];
triangles[b] = temp;
triangles[b] = tempi;
float tempf[][] = triangleColors[a];
triangleColors[a] = triangleColors[b];
triangleColors[b] = tempf;