rects property

List<Vector4> rects
final

Each spot's tile in atlas UV, in shadow slot order: xy its top-left corner and zw its extent. The atlas is stored top-down, so a spot's uv = clip.xy / clip.w * 0.5 + 0.5 samples rect.xy + vec2(uv.x, 1.0 - uv.y) * rect.zw.

Implementation

final List<Vector4> rects;