---
title: "interleavedNoise"
description: "A 0–1 dither pattern over device pixels where neighbours differ as much as possible."
group: "light"
groupTitle: "Noise, light & materials"
categoryId: "materials"
categorySlug: "materials"
categoryTitle: "Materials & surfaces"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/materials.ts#L1074"
---

# interleavedNoise

A 0–1 dither pattern over device pixels where neighbours differ as much as possible.

```ts
interleavedNoise(pixel: Expr, clock: Expr | number = 0): Expr
```

Import `materials` from `shaders/std` and use `materials.interleavedNoise`.

Better than `hashNoise` for jittering sample positions, which would otherwise clump into visible grain. `pixel` is the pixel coordinate (uv times the viewport size). `clock` shifts the pattern each frame.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `pixel` | `Expr` |  |
| `clock` | `Expr \| number` | Optional. Default `0`. |

## Example

```ts
const jitter = interleavedNoise(mul(uv, viewport), frame)
```

## See also

- [`hashNoise`](/docs/primitives/materials/hashnoise) — Random 0–1 per point, with no smoothness between neighbours.
- [`sensorGrain`](/docs/primitives/materials/sensorgrain) — Adds a fine per-pixel brightness jitter, so rendered light reads as photographed.