Don't draw paths where the handle equals the first anchor

This commit is contained in:
Grant Sanderson
2023-01-11 14:18:45 -08:00
parent 2a7b787ef6
commit c4e1db7f9d

View File

@ -138,7 +138,7 @@ int get_corners(
void main() {
if (distance(verts[0], verts[1]) == 0 && distance(verts[1], verts[2]) == 0) return;
if (distance(verts[0], verts[1]) == 0 || distance(verts[1], verts[2]) == 0) return;
vec3 unit_normal = camera_rotation * vec3(0.0, 0.0, 1.0); // TODO, track true unit normal globally