diff --git a/assets/index.html b/assets/index.html index cb44535..37c0e82 100644 --- a/assets/index.html +++ b/assets/index.html @@ -124,11 +124,6 @@ draw() { this.triangles.sort((a, b) => b.depth - a.depth); this.triangles.forEach(tri => { - const v1 = { x: tri.p2.x - tri.p1.x, y: tri.p2.y - tri.p1.y, z: tri.p2.z - tri.p1.z }; - const v2 = { x: tri.p3.x - tri.p1.x, y: tri.p3.y - tri.p1.y, z: tri.p3.z - tri.p1.z }; - const crossZ = v1.x * v2.y - v1.y * v2.x; - if (crossZ >= 0) return; - const proj1 = tri.p1.project(); const proj2 = tri.p2.project(); const proj3 = tri.p3.project();