---
title: "dithered"
description: "Adds a trace of noise to a heat field so long soft ramps do not show bands."
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#L494"
---

# dithered

Adds a trace of noise to a heat field so long soft ramps do not show bands.

```ts
dithered(heat: Expr, uv: Expr, clock: Expr): Expr
```

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

Pass the summed heat, the pixel's uv and a clock. Use it right before `heatRamp`. This is for a heat field, not a color: use `compose.dithered` for a finished color.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `heat` | `Expr` |  |
| `uv` | `Expr` |  |
| `clock` | `Expr` |  |

## Example

```ts
return heatRamp({hot: p('colorHot'), mid: p('colorMid'), fringe: p('colorFringe')}).taps(dithered(heat, params.ctx.uv, animatedTime(params)), params)
```

## See also

- [`heatRamp`](/docs/primitives/light/heatramp) — The colors of overexposed light, from a dim fringe through a mid tone to a hot core.

## Used by

[LightLeak](/docs/components/lightleak)