Skip to main content Link Menu Expand (external link) Document Search Copy Copied
polygonSdf2d

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