starSdf2d

starSdf2d

SDF for a 2D star shape.

Parameters

Name Description Regular Handling Read-Only Handling
Radius

The distance from the center to each outer point on the star.

Runtime Baked
Points

The number of points for the star. When this is a non-integer value there will be one point that is partially cut off at the bottom.

Runtime Baked
Tightness

How much the inner points of the start are pulled towards the center. At zero this will produce a polygon with two sides for each point. At one it will produce thin lines radiating from the center.

Runtime Baked
UV Mode Semi-Baked Semi-Baked
  • None:
  • Cartesian:
  • Polar:

Inputs

  • Radius Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: normangle
    • Supports Variables From Inputs: pointsField
  • Tightness Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: normangle
    • Supports Variables From Inputs: radiusField
  • Points Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: normangle
    • Supports Variables From Inputs: radiusField tightnessField

Variables

  • Normalized Angle (0..1):