---
title: "scaledVolume"
description: "Gives a noise field a zoomable, aspect-correct coordinate."
group: "paint"
groupTitle: "Painting"
categoryId: "paint"
categorySlug: "paint"
categoryTitle: "Fields, palettes & ramps"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/fields.ts#L550"
---

# scaledVolume

Gives a noise field a zoomable, aspect-correct coordinate.

```ts
scaledVolume(field: Field, opts: {scale: FieldScalar}): Field
```

Import `paint` from `shaders/std` and use `paint.scaledVolume`.

Turns the pixel's uv into a 3D point so `noiseField` and `warped` can read it. `scale` zooms exponentially: 1 is neutral and each step up magnifies about 2.7 times. A 0–4 slider works well.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `field` | `Field` |  |
| `opts` | `{scale: FieldScalar}` |  |

## Example

```ts
paint: rampOver(scaledVolume(noiseField('perlin'), {scale: p('scale')}), stops(p('colorSpace')))
```

## See also

- [`noiseField`](/docs/primitives/paint/noisefield) — A field of smooth noise in the chosen flavor.
- [`warped`](/docs/primitives/paint/warped) — Makes a field flow like liquid by bending its coordinate with moving noise.

## Used by

[Plasma](/docs/components/plasma)