SDF Moon#

SDF Moon Node

Inputs#

float Distance | default 0.2
float Radius1 | default 0.5
float Radius2 | default 0.4

Behaviour#

Outputs the signed distance field for a Moon. The moon is constructed from two circles defined by Radius1 and Radius2 which are subtracted from each other, while still preserving the SDF. Distance determines how far the circle with Radius2 is from the center of the function. Distance of 0 allows for creation of a donut shape.

SDF Output