Skip to content

Commit 252f4b7

Browse files
committed
sort view space z first
1 parent fe6d25c commit 252f4b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

occlusion.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@
436436
vec4.transformMat4(tmpVec4b, tmpVec4b, tmpMat4);
437437

438438
vec4.sub(tmpVec4a, tmpVec4a, tmpVec4b);
439-
if (tmpVec4a[0] !== 0) {
440-
return tmpVec4a[0];
441-
}
442439
if (tmpVec4a[2] !== 0) {
443440
return tmpVec4a[2];
444441
}
442+
if (tmpVec4a[0] !== 0) {
443+
return tmpVec4a[0];
444+
}
445445
return -tmpVec4a[1];
446446
});
447447

0 commit comments

Comments
 (0)