I am trying to add Bloom Effect to both scene and UI, so I set up 2 camera, one rendering Default Layer as base camera and one rendering UI Layer as overlay camera.
According to the manual, postprocess effects are applied to a camera stack instead of an individual overlay camera. So if I put the postprocess volume into UI Layer, the effect should be applied to the whole render result.
However, it is not. In the picture below, the blue sphere is in Default layer and the red sphere is in UI layer. it seems that bloom is only applied to UI layer.
If I set the volume to default layer, the blue sphere gets the bloom effect, but the red sphere does not. This is correct because the postprocess effect is applied after the base camera before the overlay camera.
To combine this two result, I tried setting the two camera to the same volume mask, or creating one volume for each camera. the result is shown below:
the scene became too bright, because the the bloom effect is applied twice on the whole scene, not individual layers. This is not the desired result, and apply bloom twice is too performance consuming.
So now I assume that the first setup is Actually the correct one. but the render result of the base camera is somehow clamped, so when the overlay camera renders, it lost the HDR information of the base camera, which results the bloom effect is very weak on the base layer. So is there any way to fix it?