---
title: "beamBloom"
description: "The soft pool of light at the start of a beam, with a wider faint shoulder around it."
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#L453"
---

# beamBloom

The soft pool of light at the start of a beam, with a wider faint shoulder around it.

```ts
beamBloom(slots: {spread: ArgSpec}): (frame: Expr, drift: Expr, params: GpuFragmentParams) => Expr
```

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

Call the result with a `beamFrame` value, a `slowDrift` value and the params. It returns `vec2(main, shoulder)`, two 0–1 fields you usually add together. `spread` is the pool's size in the frame's unit (aspect-corrected uv), at least 0.05.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{spread: ArgSpec}` |  |

## Example

```ts
const bloom = beamBloom({spread: p('spread')})(frame, drift, params)
const heat = add(mul(bloom.member('x'), 1.25), bloom.member('y'))
```

## See also

- [`beamFrame`](/docs/primitives/light/beamframe) — The frame of a beam that starts at an anchor prop and points at the canvas center.
- [`slowDrift`](/docs/primitives/light/slowdrift) — The slow breathing and drifting signals that keep a light leak alive.
- [`beamStreaks`](/docs/primitives/light/beamstreaks) — Two bright bands crossing a beam further along it, slowly drifting, like light bouncing inside a film camera.

## Used by

[LightLeak](/docs/components/lightleak)