SDF Slanted Capsule

SDF Slanted Capsule

SDF Slanted Capsule Node

Inputs

float2 Point1 | default float2(0.0, -0.5)
float Radius1 | default 0.1
float2 Point2 | default float2(0.0, 0.5)
float Radius2 | default 0.2

Behaviour

Outputs the signed distance field for a slanted capsule. When setting the radii to an equal size, the result will be a regular capsule without any slanting.

SDF Output