mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Don't draw paths where the handle equals the first anchor
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user