---
title: "flowWarp"
description: "A slowly folding 2D offset to add to pattern coordinates, for molten or wind-blown motion."
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#L900"
---

# flowWarp

A slowly folding 2D offset to add to pattern coordinates, for molten or wind-blown motion.

```ts
flowWarp(warpInput: Expr, flowT: Expr): Expr
```

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

`warpInput` is the pattern coordinate scaled by about 0.6, `flowT` the layer's clock times a speed. Add the result to the coordinate before sampling noise.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `warpInput` | `Expr` |  |
| `flowT` | `Expr` |  |

## Example

```ts
const q = add(pat, mul(flowWarp(mul(pat, 0.6), flowT), u.warp))
```

## See also

- [`surfaceNoiseAt`](/docs/primitives/materials/surfacenoiseat) — `surfaceNoise` at a 2D point you already hold.
- [`perlinSlope`](/docs/primitives/materials/perlinslope) — The slope of smooth noise at a point, for wavy or molten relief.

## Used by

[LiquidMetal](/docs/components/liquidmetal), [Water](/docs/components/water)