---
title: "tiltNormal"
description: "Tilts a normal along and across a direction, for brushed or woven relief."
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#L466"
---

# tiltNormal

Tilts a normal along and across a direction, for brushed or woven relief.

```ts
tiltNormal(
  n: Expr,
  frame: DirectionFrame,
  slopes: {along?: Expr; across?: Expr},
  hint: string = 'n',
): Expr
```

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

`frame` is a `directionFrame` (from `frames`). `along` and `across` are slope amounts; a few tenths is a visible relief.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `n` | `Expr` |  |
| `frame` | `DirectionFrame` |  |
| `slopes` | `{along?: Expr; across?: Expr}` |  |
| `hint` | `string` | Optional. Default `'n'`. |

## Example

```ts
const n = tiltNormal(nGeo, brush, {across: reliefAcross, along: reliefAlong})
```

## See also

- [`nudgeNormal`](/docs/primitives/materials/nudgenormal) — Tilts a normal by a slope in x and y, turning a height field into relief.
- [`tiltAlong`](/docs/primitives/materials/tiltalong) — Tilts a normal along one 2D direction by a slope amount.
- [`grainNoise`](/docs/primitives/materials/grainnoise) — One octave of smooth signed noise along and across a direction, for grain.

## Used by

[BrushedMetal](/docs/components/brushedmetal), [Satin](/docs/components/satin)