All is working fine except when I switch to deferred lighting and a dual camera setup. I think I understand that this is due to the rendering pipeline and that the latest rendering camera overwrites the buffer, but I have no idea how to fix this.
Since I am using the custom terrain shader that uses normal mapping and quite a lot of light sources, I was wondering how I could make this work?
I’ve got the deferred rendering working now except for the image effects. This is the same when I render a scene side by side without the mask. So the next question is:
How can I maintain the image effects if two camera’s are rendering the same scene?
On my case I assigned a different camera depth value to the cameras in the scene and I’m applying image effects on the camera with highest depth value.
Image effect should be also applied in order they appears on the Inspector.
At least this is what I have collected reading around.