StaticconcentricGenerate a set of points distributed in a series of concentric rings around the origin. The spacing between points is determined by the number of points in the first ring, and subsequent rings maintain this spacing by adjusting their number of points accordingly.
The number of concentric rings to generate.
The number of points in the first ring.
An array where each point is represented by two consecutive numbers (x, y).
Sampling kernels: sets of 2D offsets, generated on demand, used to take several samples around a point, as blur, soft shadow and ambient occlusion effects do.
concentric produces a center point followed by points arranged in evenly spaced rings out to a radius of one, returned as a flat
[x, y, x, y, ...]array ready to upload as a shader uniform.Example