---
title: "flareFrame"
description: "The shared frame of a camera lens flare, which every `flare*` part reads."
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#L636"
---

# flareFrame

The shared frame of a camera lens flare, which every `flare*` part reads.

```ts
flareFrame(slots: {position: PropRef; intensity: ArgSpec; edgeFade: ArgSpec}): LightValue
```

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

`position` is the light's position prop. `intensity` scales the whole flare and `edgeFade` (0–1) dims it as the light nears the canvas edge. Bind it once with a name and hand the same value to each part, then close the stack with `flareComposite`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{position: PropRef; intensity: ArgSpec; edgeFade: ArgSpec}` |  |

## Example

```ts
const flare = local(flareFrame({position: p('lightPosition'), intensity: p('intensity'), edgeFade: p('edgeFade')})(params), 'flare')
```

## See also

- [`flareCore`](/docs/primitives/light/flarecore) — The bright point at the light itself: a hard pinpoint inside a small soft glow.
- [`flareGlare`](/docs/primitives/light/flareglare) — The broad warm-white wash around the light that lifts contrast near it.
- [`flareHalo`](/docs/primitives/light/flarehalo) — The rainbow halo ring of a lens flare, drawn across the canvas from the light.
- [`flareStarburst`](/docs/primitives/light/flarestarburst) — The star of thin spikes around the light in a lens flare.
- [`flareStreak`](/docs/primitives/light/flarestreak) — The horizontal widescreen streak through the light in a lens flare.
- [`lensGhost`](/docs/primitives/light/lensghost) — One ghost disc of a lens flare, the faint circles that line up across from the light.
- [`flareComposite`](/docs/primitives/light/flarecomposite) — Closes a lens flare: turns the summed flare parts into the color to return from `paint`.

## Used by

[LensFlare](/docs/components/lensflare)