Documentation / Node reference / code nodes

code/SDFPlane

Returns the distance to a plane, as a solid behind it.

Sdf3d

Returns the distance to a plane, the solid on the side away from the normal. Use it to cut shapes flat. A wired normal must have length 1.

Parameters

Name Type What it does
P Vector3 Position to measure from. Unwired, it uses the sample position.
n Vector3 Plane normal. The solid is on the other side.
h Float Plane offset. Positive values move it against the normal.

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.