Tilt Shift

Tilt Shift makes the scene seem much smaller than it actually is, simulating the shallow depth of field normally encountered in close-up photography. The effect is especially noticeable in relatively flat scenes.



Once installed, select the camera of the scene and add the component ‘Tilt Shift‘.

When you add it you will see something like:

  1. Strength of the effect [0, 1].
  2. Angle of the effect [-90, 90].
  3. Effect aperture [0.1, 5].
  4. Vertical offset [-1, 1].
  5. Smoothness of the blur effect [1, 10]
  6. Blur multiplier [0, 10].
  7. Activate this to modify the following color parameters.
  8. The color of the edges.
  9. Color saturation at the edges [0, 1].
  10. The brightness of the edges [-1, 1].
  11. The contrast at the edges [-1, 1].
  12. Gamma correction at the edges [0.1, 5].
  13. Show focus line.
  14. Show blur mask. This option is useful to adjust the blur zone.
  15. Go to the online documentation.
  16. Reset to default values.


All code is inside the namespace ‘Ibuprogames.TiltShiftAsset‘ and main component is ‘TiltShift‘. So if you want to use it you must first import its namespace:

using Ibuprogames.TiltShiftAsset;

If ‘myCamera‘ is a valid camera and you want to add the effect, you should do something like:

TiltShift tiltShift = mycamera.gameObject.AddComponent<TiltShift>();

All the code are well commented, I recommend reading the code if you want more information.

Any questions or suggestions you have, we will be happy to answer you in our mail:

You Might Also Like

No Comments

Leave a Reply