Count joints near 180 degrees as straight

This commit is contained in:
Grant Sanderson
2024-08-23 13:55:10 -05:00
parent a08523d746
commit 5d6a1f30c4

View File

@ -91,7 +91,7 @@ vec3 step_to_corner(vec3 point, vec3 tangent, vec3 unit_normal, float joint_angl
float cos_angle = cos(joint_angle);
float sin_angle = sin(joint_angle);
if (cos_angle > COS_THRESHOLD) return step;
if (abs(cos_angle) > COS_THRESHOLD) return step;
// Below here, figure out the adjustment to bevel or miter a joint
if (flat_stroke == 0){