Hi All. I am trying to build an FPS rig where the weapon is on a separate cull-mask and has a separate camera that is set to only see the cull-mask the weapon is on. (This is to prevent gun clipping).
So in the main scene I have the main camera that sees the world and I have a viewport with the first-person camera as a child of a TectureRect - this viewport is set to transparent bg. That way the weapon camera renders just the weapon over what the main camera sees.
This is working fine and all except one thing: some of the environment properties of the gun camera (the one that renders its view into the viewport) are ignored by the engine, such as DoF or post-processing effects like color correction, brightness, contrast etc.
In effect, even though the rig works flawlessly, the weapon looks out of place without color correction (like early vfx in movies).
How can I replicate color correction on the viewport's 'content' to match it to the outside environment?
I've tried adding a shader to the textureRect that I'm rendering the viewport into, but it affected the whole scene BUT the viewport. Is there a way to color correct JUST what the viewport is showing?