Hi,
I have a shader that renders the player object differently when it is blocked by level geometry (so that the player is always visible). I'm using a completely opaque Fog of War as well, which will sometimes cover the player as well (if, say, there's a large building between the player and the camera, and the other side of the building is covered by the fog of war). How can I modify the player's shader or the fog shader (say, by changing the render queue) to allow players to remain visible through the fog?
Here is what I think is the relevant part of the shader I'm using for the player:
Tags {"Queue"="Overlay" "RenderType"="Opaque" }
ZTest Equal
ZWrite On
And here is what I think is the relevant section of the fog shader:
Pass
{
ZTest Always
Cull Off
ZWrite Off
Fog { Mode off }
Any help would be greatly appreciated.