- Home /
Image effects do not work when rendering with multiple cameras
Hi,
I'm working on a third person shooter, where I need to render the player character on top of everything else when aiming, to avoid having the gun and hands clip through the wall. The way I achieve this is by rendering using two cameras. One "normal" camera that renders everything, and another that only renders the character and the gun. The second camera is only enabled when aiming, and has clear flags set to depth only and has a depth of 1, where the normal camera has a depth of 0.
When I enable the second camera the character does not clip through the wall, so that part works just fine, but non of the image effects from the normal camera work, even though I have the same image on both cameras. It seems that Unity only runs the image effects of the camera with the highest depth and the top-most camera only renders the character and the gun.
I can't be the first to have this problem.
It seems that this guy had the same issue, but never found a solution.
Any ideas?