Documentation / Node reference / code nodes
code/SDFSolidAngle
Returns the distance to a cone closed by a sphere.
Sdf3d
Returns the distance to a cone opening along +Y from its apex, closed by a piece of sphere. At 180 degrees it is a hemisphere.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector3 | Position to measure from. Unwired, it uses the sample position. |
| t | Vector3 | Apex of the cone, and center of the sphere. |
| radius | Float | Radius of the sphere. |
| angle | Float | Full opening of the cone, in degrees. |
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.