---
title: "surfaceNoiseAt"
description: "`surfaceNoise` at a 2D point you already hold."
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#L929"
---

# surfaceNoiseAt

`surfaceNoise` at a 2D point you already hold.

```ts
surfaceNoiseAt(p: Expr): Expr
```

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

## Parameters

| Name | Type | Notes |
|---|---|---|
| `p` | `Expr` |  |

## Example

```ts
const n = surfaceNoiseAt(mul(pat, 6))
```

## See also

- [`surfaceNoise`](/docs/primitives/materials/surfacenoise) — Smooth signed noise at a 2D point, roughly −1 to 1, with features about one unit wide.
- [`volumeNoiseAt`](/docs/primitives/materials/volumenoiseat) — Smooth signed noise at a 3D point, roughly −1 to 1.
- [`cellNoiseAt`](/docs/primitives/materials/cellnoiseat) — Cellular noise at a 2D point: 0 at each cell's seed point, rising toward the cell walls.

## Used by

[Marble](/docs/components/marble), [Nebula](/docs/components/nebula), [Plastic](/docs/components/plastic), [Water](/docs/components/water)