---
title: "raySpikes"
description: "Thin star spikes with dark gaps between them, like light through a camera aperture."
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#L328"
---

# raySpikes

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

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

| Name | Type | Notes |
|---|---|---|
| `slots` | `{halfCount: ArgSpec; power: ArgSpec}` |  |

## Example

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

## See also

- [`rayLobes`](/docs/primitives/light/raylobes) — Soft rays fanning out from the center of a radial frame, turning with the layer's clock.
- [`flareStarburst`](/docs/primitives/light/flarestarburst) — The star of thin spikes around the light in a lens flare.