raySpikes

Thin star spikes with dark gaps between them, like light through a camera aperture.

raySpikes(slots: {halfCount: ArgSpec; power: ArgSpec}): LightPart

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

Returns a 0–1 field with twice halfCount spikes, so pass half the spike count you want. power from 3 to 8 makes them thinner. The spikes do not turn.

Parameters

NameTypeNotes
slots{halfCount: ArgSpec; power: ArgSpec}

Example

coverage: withFrame(radialFrame(p('center')), modulate(raySpikes({halfCount: 3, power: 5}), glowPoint({sharpness: 12})))

See also

  • rayLobes — Soft rays fanning out from the center of a radial frame, turning with the layer's clock.
  • flareStarburst — The star of thin spikes around the light in a lens flare.