Skip to content

Commit 8a43eb3

Browse files
committed
Depth sorter improvement
Fix ordering when two triangles in a plane share vertices. Triangle still has to be tested with other triangles.
1 parent a349190 commit 8a43eb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13449,9 +13449,9 @@ void sort(TessGeometry tessGeo) {
1344913449

1345013450
testTid = activeTid + 1;
1345113451
} else {
13452-
// oops, we already tested this one, probably intersecting or
13453-
// interlocked in loop with others, just draw it incorrectly :(
13454-
draw = true;
13452+
// oops, we already tested this one, either in one plane or
13453+
// interlocked in loop with others, just ignore it for now :(
13454+
testTid++;
1345513455
}
1345613456
}
1345713457
}

0 commit comments

Comments
 (0)