SDF Segment

SDF Segment

SDF Segment Node

Inputs

float2 Point1 | default float2(0.0, 0.1)
float2 Point2 | default float2(0.0, 0.9)
float Thickness | default 0.01

Behaviour

Outputs the signed distance field for a line segment drawn between two points. The provided thickness parameter controls how wide the line is, higher thicknesses mimic a capsule.

SDF Output