Hello, I am using RenderTextures to create a fog of war effect in my game. I have 2 cameras set up to two different render textures, one texture for the static fog(darker fog that clears when the player moves through it) and another texture for a dynamic fog(lighter fog that is always there if the user doesn’t have vision). For the darker fog, I set the Camera’s clear flags to Depth and for the dynamic fog I set it to Solid Color. The problem is, whenever I run the game, both cameras render to the same texture(or possibly both) and the end result is that both fog of war planes get the same texture.
What could be causing this?
This is the static fog camera set to Depth only to not clear the texture:
And this is the dynamic fog cam:
After I run the game, this is what my FOWPlane texture(assigned to the depth only camera) looks like:
and if I turn off the 2nd camera that is supposed to be rendering to a different texture, it works perfectly.