SDF Triangle

SDF Triangle

SDF Triangle Node

Inputs

float2 Point1 | default float2(0.5, 0.5)
float2 Point2 | default float2(0.0, 0.5)
float2 Point3 | default float2(-0.5, -0.5)

Behaviour

Outputs the signed distance field for a triangle, based on the provided points. Though this is the most versatile, it is generally also the most expensive function for creating a triangle. Whenever possible, it is recommended to use the dedicated isosceles or equilateral triangle nodes.

SDF Output