Skip to content

Commit

Permalink
Update sdf.h
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jul 9, 2023
1 parent d77d4d7 commit 9d060a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/vger/sdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ inline float udBezier(float2 pos, float2 A, float2 B, float2 C )
// Are the points collinear?
auto M = float2x2{C-A, B-A};
if (fabs(determinant(M)) < 0.01) {
return length(orth(C-A, pos-A));
return sdSegment(pos, A, C);
}

float2 a = B - A;
Expand Down

0 comments on commit 9d060a7

Please sign in to comment.