Bloom and Lens Flares
Manual     Reference     Scripting   
Reference Manual > Components > Image Effect Scripts > Bloom and Lens Flares

Bloom and Lens Flares

The Bloom and Lens Flares image effect adds image based bloom and automatically generates lens flares (Image based lens flares should be cast based on bright parts of the color buffer, so it's very performant to provide a built in lens flare system here). It can drastically enhance the feel and look of your scene. This effect is a more modern version of the older Glow image effect with a more fine grain control over various glow parameters.


Example use of Bloom and Lens Flares demonstration a very soft glow using the new Screen blend mode and how the new anamorphic lens flares can easily create a more cinematic feeling.

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

Properties

ModeChoose complex mode fore more tweaking options such as enabling lens flare.
Blend modeHow to add the bloom to the color buffer. The softer Screen blend is better at keeping bright image parts alive.
IntensityThe global light intensity of the added light (affects both, bloom and lens flares).
ThreshholdThe global light intensity threshhold that defines which image parts are being considered for blooming (and lens flares creation).
Blur iterationsThe smoothness of the bloom and flares. Remember that more iterations result in a more expensive effect.
Blur spreadThe global, resolution independent spread (width) of the effect.
Use alpha maskHow much you want to have the alpha channel act as a mask for the bloom effect.
Cast lens flaresEnable or disable lens flares.
ModeThe kind of lens flares that should be cast. Chose between Ghosting, Anamorphic or a combination of both.
Local intensityAdditional intensity for all lens flares.
Local threshholdThe additional light intensity threshhold that defines which image parts are being considered for lens flares.
Stretch widthThe width for anamorphic lens flares.
Blur iterationsDefines the smoothness for anamorphic lens flares.
Tint ColorColor modulation for the anamorphic flare type.
1st-4th ColorColor modulation for all additional lens flares when Ghosting or Combined is chosen.

Hardware support

This effect requires a graphics card with pixel shaders (2.0) or OpenGL ES 2.0. PC: NVIDIA cards since 2003 (GeForce FX), AMD cards since 2004 (Radeon 9500), Intel cards since 2005 (GMA 900); Mobile: OpenGL ES 2.0; 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