---
title: "rayLobes"
description: "Soft rays fanning out from the center of a radial frame, turning with the layer's clock."
group: "light"
groupTitle: "Noise, light & materials"
categoryId: "light"
categorySlug: "light"
categoryTitle: "Light"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/light.ts#L290"
---

# rayLobes

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

```ts
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

| Name | Type | Notes |
|---|---|---|
| `slots` | `{count: ArgSpec; spin: number; sharpness: ArgSpec}` |  |

## Example

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

## See also

- [`softRayLobes`](/docs/primitives/light/softraylobes) — `rayLobes` with a softness slider instead of a sharpness.
- [`raySpikes`](/docs/primitives/light/rayspikes) — Thin star spikes with dark gaps between them, like light through a camera aperture.
- [`radialFrame`](/docs/primitives/light/radialframe) — The frame for a burst, halo or sweep around a center prop.