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 (Darkwood - Announcement Trailer | PS4 - YouTube). I want the area the outside the lit area to be completely black.
Can you guide me in the right direction? Thanks!