Documentation / Node reference / code nodes

code/SDFRoundCone

Returns the distance to a cone with round ends.

Sdf3d

Returns the distance to the hull of two spheres: a tapered capsule. The upper sphere sits above the lower one, along Y.

Parameters

Name Type What it does
P Vector3 Position to measure from. Unwired, it uses the sample position.
t Vector3 Center of the lower sphere.
r1 Float Radius of the lower sphere.
r2 Float Radius of the upper sphere.
h Float Distance between the two sphere centers, along Y.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.