fix shadow coplanar with bottom z
This commit is contained in:
parent
8fb0574894
commit
cd7c0f7597
2 changed files with 3 additions and 1 deletions
|
|
@ -913,6 +913,8 @@ class Widget {
|
|||
if (a.z < z && b.z < z && c.z < z) {
|
||||
// skip faces under threshold
|
||||
continue;
|
||||
} else if (a.z === z && a.z === b.z && a.z === c.z) {
|
||||
// skip faces coplanar with z (shadow looks up)
|
||||
} else if (a.z >= z && b.z >= z && c.z >= z) {
|
||||
found.push([a, b, c]);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue