
polygonSdf2d
SDF for several types of 2D polygons.
Parameters
-
Shape
:-
Pentagon
: -
Hexagon
: -
Octogon
:
-
-
Radius
: The distance from the center to each edge.
Inputs
-
Radius Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types: