tiltShift
Keeps a band of the child in focus and blurs everything beyond it, like a tilt-shift lens.
tiltShift(opts: {
intensity: PropRef
width: PropRef
falloff: PropRef
angle: PropRef
center: PropRef
}): 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.
Parameters
| Name | Type | Notes |
|---|---|---|
opts | `{ |
intensity: PropRef
width: PropRef
falloff: PropRef
angle: PropRef
center: PropRef
}` | |
Example
...tiltShift({intensity: p('intensity'), width: p('width'), falloff: p('falloff'), angle: p('angle'), center: p('center')})
See also
progressiveBlur— A blur that ramps from sharp to full strength in one direction across the child.gaussianBlur— A soft, even blur of the child.bokehDefocus— A photographic lens blur where bright highlights bloom into aperture-shaped discs.