Smarter translucency sorting #42
+2
@@ -126,6 +126,8 @@ public final class TranslucentSorter {
|
|||||||
boolean allParallel = true;
|
boolean allParallel = true;
|
||||||
|
|
||||||
for (int quadIdx = 0; quadIdx < quadCount; quadIdx++) {
|
for (int quadIdx = 0; quadIdx < quadCount; quadIdx++) {
|
||||||
|
if (quads.isDegenerate(quadIdx)) continue;
|
||||||
|
|
||||||
float dot = quads.normalDot(quadIdx, reference);
|
float dot = quads.normalDot(quadIdx, reference);
|
||||||
|
|
||||||
if (Math.abs(dot) < PARALLEL_THRESHOLD) {
|
if (Math.abs(dot) < PARALLEL_THRESHOLD) {
|
||||||
|
|||||||
Reference in new issue
Block a user