---
title: "marchedNormal"
description: "The surface normal of a 3D shape, from the marched depth."
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#L766"
---

# marchedNormal

The surface normal of a 3D shape, from the marched depth.

```ts
marchedNormal(field: SurfaceField, sharpness: number = 5, hint: string = 'nGeo'): Expr
```

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

Only meaningful when `frame.volumetric` is true. `geometricNormal` chooses between this and the flat-shape normal for you. `sharpness` clamps the slope (default 5; 4 is calmer, 6 crisper).

## Parameters

| Name | Type | Notes |
|---|---|---|
| `field` | `SurfaceField` |  |
| `sharpness` | `number` | Optional. Default `5`. |
| `hint` | `string` | Optional. Default `'nGeo'`. |

## Example

```ts
const n = frame.volumetric ? marchedNormal(field, 4) : flatNormal
```

## See also

- [`geometricNormal`](/docs/primitives/materials/geometricnormal) — The surface normal of the shape, whichever kind of shape is active.

## Used by

[Chrome](/docs/components/chrome), [Crystal](/docs/components/crystal), [Plastic](/docs/components/plastic), [Water](/docs/components/water)