---
title: "softRayLobes"
description: "`rayLobes` with a softness slider instead of a sharpness."
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#L309"
---

# softRayLobes

`rayLobes` with a softness slider instead of a sharpness.

```ts
softRayLobes(slots: {count: ArgSpec; softness: ArgSpec; spin: number}): LightPart
```

Import `light` from `shaders/std` and use `light.softRayLobes`.

`softness` 0 gives crisp rays and 1 gives wide soft ones. The rays widen without moving. `spin` is a plain number scaling the layer's clock: negative turns clockwise.

## Parameters

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

## Example

```ts
coverage: withFrame(radialFrame(p('center')), softRayLobes({count: p('rayCount'), softness: p('softness'), spin: -1}))
```

## See also

- [`rayLobes`](/docs/primitives/light/raylobes) — Soft rays fanning out from the center of a radial frame, turning with the layer's clock.
- [`featherMask`](/docs/primitives/light/feathermask) — A round mask that is solid inside a radius and fades out at its edge.

## Used by

[SunBurst](/docs/components/sunburst)