Blooming is the optical effect where light from a bright source (such as a glint) appears to leak into surrounding objects. The Bloom and Lens Flares image effect adds bloom and also automatically generates lens flares in a highly efficient way. Bloom is a very distinctive effect that can make a big difference to a scene and may suggest a magical or dreamlike environment especially when used in conjunction with HDR rendering.
As with the other image effects, you must have the Standard Assets Effects package installed before it becomes available.
Property: | Function: |
---|---|
Tweak Mode | Choose complex mode for additional options such as lens flares. |
Blend mode | The method used to add bloom to the color buffer. The softer Screen mode is better for preserving bright image details but doesn’t work with HDR. |
HDR | Whether bloom is using HDR buffers. This will result in a different look as pixel intensities may leave the [0,1] range, see details in tonemapping and HDR. |
Cast lens flares | Enable or disable automatic lens flare generation. |
Intensity | The global light intensity of the added light (affects bloom and lens flares). |
Threshold | Regions of the image brighter than this threshold receive blooming (and potentially lens flares). |
Blur iterations | The number of times gaussian blur is applied. More iterations improve smoothness but take extra time to process and hide small frequencies. |
Blur spread | The max radius of the blur. Does not affect performance. |
Use alpha mask | The degree to which the alpha channel acts as a mask for the bloom effect. |
Lens flare mode | The type of lens flare. The options are Ghosting, Anamorphic or a mix of the two. |
Lens flare mask | Mask used to prevent lens flare artifacts at screen edges. |
Local intensity | Local intensity used only for lens flares. |
Local threshold | The accumulative light intensity threshold that defines which image parts are candidates for lens flares. |
Stretch width | The width for anamorphic lens flares. |
Blur iterations | The number of times blurring is applied to anamorphic lens flares. More iterations improve smoothness but take more processing time. |
Tint Color | Color modulation for the anamorphic flare type. |
1st–4th Color | Color modulation for all lens flares when Ghosting or Combined is chosen. |
Blend modes determine the way that two images will be combined when overlaid. Each pixel from the base image is combined mathematically with the pixel in the corresponding position in the overlay image. Two blend modes are available for Unity image effects, Add and Screen.
When the images are blended in Add mode, the values of the color channels (red, green and blue) are simply added together and clamped to the maximum value of 1. The overall effect is that areas of each image that aren’t especially bright can easily blend to maximum brightness in the result. The final image tends to lose color and detail and so Add mode is useful when a dazzling “white out” effect is required.
Screen mode is so named because it simulates the effect of projecting the two source images onto a white screen simultaneously. Each color channel is combined separately but identically to the others. Firstly, the channel values of the two source pixels are inverted (ie, subtracted from 1). Then, the two inverted values are multiplied together and the result is inverted. The result is brighter than either of the two source pixels but it will be at maximum brightness only if one of the source colors was also. The overall effect is that more color variation and detail from the source images is preserved, leading to a gentler effect than Add mode.
This effect should run on all hardware that Unity supports.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.