polygon static method

PolygonLightingType polygon(
  1. List<Vector2> points
)

An arbitrary polygon centered on the light position, rotated by the light angle.

points are relative to the light center. The light radius is used as the reference distance for pulse, flicker and falloff.

Implementation

static PolygonLightingType polygon(List<Vector2> points) =>
    PolygonLightingType(points);