Hello,
So far I've managed to get a couple of shaders (not provided with the package) to work with the fog of war system by modifying the shaders themselves with lines of code provided in your shader examples. However, I'm having trouble getting trees and grass used in Unity's built-in terrain script to work with the fog of war correctly.
I have a separate tree prefab in which I've modified the shader for the tree, and it works with the fog of war system exactly how I want (which is good). However, as soon as I use this exact same tree prefab with Unity's terrain system (i.e. the ones you can "paint" onto the terrain), the tree's cease to work with the fog of war for some reason.
Is there any way you could help me with what lines of code need to be in either the terrain shader or the tree shader in order for the tree to be covered by the fog of war when it's placed using the terrain painting system?
Thank you.