---
title: "valueNoise"
description: "Smooth noise 0–1 at a 2D point, softer and blockier than `surfaceNoise`."
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#L1090"
---

# valueNoise

Smooth noise 0–1 at a 2D point, softer and blockier than `surfaceNoise`.

```ts
valueNoise(x: Expr | number, y: Expr | number): Expr
```

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

## Parameters

| Name | Type | Notes |
|---|---|---|
| `x` | `Expr \| number` |  |
| `y` | `Expr \| number` |  |

## Example

```ts
const wobble = sub(valueNoise(mul(x, 4), mul(y, 3)), 0.5)
```

## See also

- [`surfaceNoise`](/docs/primitives/materials/surfacenoise) — Smooth signed noise at a 2D point, roughly −1 to 1, with features about one unit wide.
- [`hashNoise`](/docs/primitives/materials/hashnoise) — Random 0–1 per point, with no smoothness between neighbours.

## Used by

[Heatmap](/docs/components/heatmap)