---
title: "tiltShift"
description: "Keeps a band of the child in focus and blurs everything beyond it, like a tilt-shift lens."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.blurs"
categorySlug: "effects-blurs"
categoryTitle: "Blurs, glows & screens"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/blurs.ts#L983"
---

# tiltShift

Keeps a band of the child in focus and blurs everything beyond it, like a tilt-shift lens.

```ts
tiltShift(opts: {
    intensity: PropRef
    width: PropRef
    falloff: PropRef
    angle: PropRef
    center: PropRef
    detail?: VariableBlurDetailSlots
}): ComputeBackedEffect
```

Import `effects` from `shaders/std` and use `effects.blurs.tiltShift`.

The band runs through `center` (a position in uv) at `angle` (degrees, 0 is horizontal) and is `width` wide (0–1, in uv). Beyond it the blur ramps to full strength over `falloff` (0–1). `intensity` (0–100) is the blur at the far edges. Pixels inside the band stay pixel-sharp. `detail` adds the lens dials (see `VariableBlurDetailSlots`), both off at 0.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `opts` | `{
    intensity: PropRef
    width: PropRef
    falloff: PropRef
    angle: PropRef
    center: PropRef
    detail?: VariableBlurDetailSlots
}` |  |

## Example

```ts
...tiltShift({intensity: p('intensity'), width: p('width'), falloff: p('falloff'), angle: p('angle'), center: p('center')})
```

## See also

- [`progressiveBlur`](/docs/primitives/effects-blurs/progressiveblur) — A blur that ramps from sharp to full strength in one direction across the child.
- [`gaussianBlur`](/docs/primitives/effects-blurs/gaussianblur) — A soft, even blur of the child.
- [`bokehDefocus`](/docs/primitives/effects-blurs/bokehdefocus) — A photographic lens blur where bright highlights bloom into aperture-shaped discs.

## Used by

[TiltShift](/docs/components/tiltshift)