You copied the Doc URL to your clipboard.

Dirty lens effect

You can use a dirty lens effect to invoke a sense of drama. It is often used together with a lens flare effect.

You can implement a dirty lens effect in a very light and simple way that is suitable for mobile devices.

In the Ice Cave demo, the dirty lens effect is implemented in a minimal shader that renders a variable intensity, full screen quad on top of the scene. The intensity of the quad is passed to it by a script.

The shader renders the quad using additive alpha blending, at the very end, after all transparent geometry has been rendered.

This section contains the following subsections:

Was this page helpful? Yes No