Documentation / Node reference / code nodes

code/SDFSolidAngle

The distance to a cone of directions cut off at a sphere.

Sdf3d

Returns the signed distance from a sampled position to a solid angle: everything within a given opening of the +Y direction from the apex, out to a sphere of the given radius. A narrow angle makes a spike, a right angle a hemisphere-capped cone, and a wide one a sphere with a bite out of the bottom. The twin of geo/SDFSolidAngle, for use inside a geo/SDFBuilder sub-network.

Parameters

Name Type What it does
P Vector3 Position to sample the field at. Left unwired it reads the builder's own sample position.
t Vector3 Apex of the cone. It opens along +Y from here.
radius Float Radius of the sphere the cone is cut off at.
angle Float Full opening of the cone, in degrees, measured across it rather than from the axis. It stops short of a full turn, where the shape would close up and the formula stops holding.

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.