SDF Quadratic Bezier

SDF Quadratic Bezier

SDF Quadratic Bezier Node

Inputs

float2 A | default float2(-0.5, 0.0)
float2 B | default float2(0.0, 0.5)
float2 C | default float2(0.5, 0.0)
float Thickness | default 0.01

Behaviour

Outputs the signed distance field for a quadratic bezier curve, based on the provided control points A, B and C. A and C are the two endpoints of the curve, while B is the middle point providing the curvature.
The provided thickness parameter controls how wide the line is.

SDF Output
SDF Output