SDF Parallelogram

SDF Parallelogram

SDF Parallelogram Node

Inputs

float Width | default 0.5
float Height | default 0.5
float Skew | default 0.25

Behaviour

Outputs the signed distance field for a parallelogram, based on the provided width, height and skew. Skew is a percentage relative to the width of the base rectangle. A skew of 0.5 essentially doubles the overall width of the bounding rectangle of the parallelogram.

SDF Output