Tilt Shift
Manual     Reference     Scripting   
Reference Manual > Components > Image Effect Scripts > Tilt Shift

Tilt Shift

The Tilt Shift image effect is a specialized Depth of Field effect that demonstrates how to enable very smooth transitions between focused and defocused areas. It is also is easier to use and has generally less possible image artefacts. However, as it is among other things relying on dependent texture lookups, it can also be more expensive.

Tilt shift example. Observe the overall achieved smoothness of the effect.

As with the other image effects, this effect is only available in Unity Pro. Make sure to have the Pro Standard Assets installed.


Focal Settings
VisualizeVisualizes the focal areas in the game view with a green tint.
DistanceThe distance to the focal point from the camera position in world space.
SmoothnessThe smoothness when transitioning from out-of-focus to in-focus areas.
Background Blur
DownsampleDownsamples most internal buffers (Makes the effect faster and more blurry).
IterationsNumber of iterations for blurring the background areas (all things behind the focal area).
Max Blur spreadThe maximum blur distance for the defocused areas. Makes out of focus areas proceedingly more blurry.
Foreground Blur
EnableEnables foreground blurring. This will make the effect more expensive.
IterationsNumber of iterations for blurring the foreground areas (all things in front of the focal area).

Hardware support

This effect requires a graphics card with pixel shaders (3.0) or OpenGL ES 2.0. Additionally, depth texture support is required. PC: NVIDIA cards since 2004 (GeForce 6), AMD cards since 2005 (Radeon X1300), Intel cards since 2006 (GMA X3000); Mobile: OpenGL ES 2.0 with depth texture support; Consoles: Xbox 360, PS3.

All image effects automatically disable themselves when they can not run on end-users graphics card.

Page last updated: 2011-06-09