Documentation / Node reference / code nodes
code/SDFMenger
Returns the distance to a Menger sponge.
Sdf3d
Returns the distance to a cube with a square hole through each face, then smaller holes through what is left, level after level.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector3 | Where to sample. Unwired, the builder's sample position. |
| t | Vector3 | Center of the sponge. |
| size | Float | Edge length of the cube. |
| iterations | UInt8 | Levels of holes. 0 is a plain cube. |
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.