rect static method

RectLightingType rect(
  1. Vector2 size
)

A rectangle centered on the light position, rotated by the light angle.

size is the full width and height. The light radius sets its reach, so a rectangle with size larger than radius is scaled down to fit the configured radius (and it pulses/flickers with it).

Implementation

static RectLightingType rect(Vector2 size) => RectLightingType(size);