rayLobes

Soft rays fanning out from the center of a radial frame, turning with the layer's clock.

rayLobes(slots: {count: ArgSpec; spin: number; sharpness: ArgSpec}): LightPart

Import light from shaders/std and use light.rayLobes.

Returns a 0–1 field with count rays. spin is a plain number that scales the clock: 1 turns counter-clockwise, -1 clockwise, 0 holds still. sharpness above 1 narrows the bright rays, below 1 widens them.

Parameters

NameTypeNotes
slots{count: ArgSpec; spin: number; sharpness: ArgSpec}

Example

coverage: withFrame(radialFrame(p('center')), rayLobes({count: p('rays'), spin: -1, sharpness: 4}))

See also

  • softRayLobes — rayLobes with a softness slider instead of a sharpness.
  • raySpikes — Thin star spikes with dark gaps between them, like light through a camera aperture.
  • radialFrame — The frame for a burst, halo or sweep around a center prop.