What is the best approach to make a fog of war system?
There are many approaches I have seen but I don’t think of them are actually good.
One idea I have is to make a custom mask similar to the sphere mask in material editor and have every material which is to be affected by it in game to have it. It will make actor outside the mask invisible.
It will need a custom mask cause I need the sphere to be affected by line of sight. So basically in every tick, I will perform traces around the object which is supposed to have line of sight and update my custom component how much part of it is supposed to rendered. I got no idea if it is going to work or not but I guess its worth a try.
Any other method which could give better results?