Documentation / Node reference / code nodes
code/SDFJulia2D
The distance to a Julia set.
Sdf2d
Returns the estimated signed distance from a sampled 2D position to a filled Julia set: the points that never fly off when repeatedly squared and added to the fixed point c. Each c gives a different set; wire a time value into c for a morphing shape. The twin of geo/SDFJulia2D, for use inside a geo/SDFBuilder sub-network. The value is an estimate, so the raymarcher takes shorter steps where it is used.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector2 | Position to sample the field at. Left unwired it reads the builder's own sample position. |
| t | Vector2 | Where the center point lands. |
| scale | Float | Size of one unit of the complex plane. Raise it to zoom in. |
| center | Vector2 | The point of the complex plane placed at t: x is the real part, y the imaginary part. |
| c | Vector2 | The fixed point added at each step: x is the real part, y the imaginary part. |
| power | UInt8 | Exponent of the iteration, rounded to a whole number. 2 is the classic set. |
| iterations | UInt8 | How many steps each point is followed for. More steps sharpen the fine filaments. A wired value is capped at 256. |
See also
- geo/SDFJulia2D
- code/SDFMandelbrot2D
- code/SDFCircle2D
- code/SDFBoolean
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.