Documentation / Node reference / code nodes
code/SDFPyramid
Returns the distance to a pyramid.
Sdf3d
Returns the distance to a square pyramid. Its base is one unit across, in the XZ plane, with the apex above its center.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector3 | Position to measure from. Unwired, it uses the sample position. |
| t | Vector3 | Center of the base. |
| h | Float | Height of the apex above the base. |
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.