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

Tilt Shift

Tilt Shift is a specialized version of the Depth of Field effect that allows for very smooth transitions between focused and defocused areas. It is is easier to use and is generally less prone to unsightly image artifacts. However, since it relies on dependent texture lookups, it can also have a higher processing overhead.


Tilt shift example. Observe the overall smoothness the effect achieves.

As with the other image effects, this effect is only available in Unity Pro and you must have the Pro Standard Assets installed before it becomes available.

Properties

Focal Settings
VisualizeVisualizes the focal plane in the game view with a green tint (useful for learning or debugging).
DistanceThe distance to the focal plane from the camera position in world space units.
SmoothnessThe smoothness when transitioning from out-of-focus to in-focus areas.
Background Blur
DownsampleDownsamples most internal buffers (this makes the effect faster but more blurry).
IterationsNumber of iterations for blurring the background areas (ie, everything behind the focal plane). Each iteration requires processing time.
Max Blur spreadThe maximum blur distance for the defocused areas. Makes out-of-focus areas increasingly blurred.
Foreground Blur
EnableEnables foreground blurring. This typically gives a better result but with a cost in processing time.
IterationsNumber of iterations for blurring the foreground areas (ie, everything in front of the focal area). Each iteration requires processing time.

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-09-19