- Home /
Fog of War Effect Help
Hi!
As the title tells I'd like some help with a fog of war effect, the visual portion that is. I've gotten the technical aspect of it to work pretty well with "units" turining invisible when out of vision and visible when in vision.
The current setup I have to display the visual effect Im after is just a spotlight attatched to each unit however that will not do in the end since those light stack up when you move your units close to eachother.
Now, the effect Im looking for is where the area that is not visible is black and white + darker and the visible area has colors and is brighter. I also want to keep the effect I get using the light and shadows.
To help showing what I mean with the light and shadows, here is a video of the project Im working on at it's current state:
Video showcasing parts of the desired visual effect
Now, I expect there to be some shader coding involved which I have never done before.
It would be very appreciated if I could get help finding some usefull links/tutorials on how to achieve this visual effect.
Sorry for bad english :P
Your answer
![](https://koobas.hobune.stream/wayback/20220612081903im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
No shadows when building with WebGL? 1 Answer
3D Text Shader with light 0 Answers
Shader to a Camera 1 Answer
Modify Light Projector Shader to be Additive 0 Answers
Unity light effect 3 Answers