How to achive 2D Sidescroller Fog of war vision
Hello! I'm currently working on a 2D sidescroller game, and I want to limit the vision of the player. I've tried masking out the area with a material, but the only way to mask as far as I know is with a sphere. This is not what I want. I want a small circle around the player to be lit, and where the mouse is pointing, there should be a cone that lights up the in a 45 degree angle or so. The best example I've found is from Darkwood (https://www.youtube.com/watch?v=OU-mR3LY-OI). I want the area the outside the lit area to be completely black.
Can you guide me in the right direction? Thanks!
Follow this question
Once you sign in you will be able to subscribe for any updates here