- Home /
How do I do a fog of war that supports 2d ligths?
Hi, I was trying to come up with some ideias for a game I am making and decided that a fog of war that supported 2d Lights would be very nice.
At first I saw mainly 2 tutorials that could help: https://www.youtube.com/watch?v=MUV9Nr-cIGU
https://www.youtube.com/watch?v=CSeUMTaNFYk&t=257s
But after watching a little bit of it I realized that none of the tutorials was what I was going for.
The Code Monkey one will work with LWRP but it uses a foward renderer, which takes away the 2d lights (please correct me if I am wrong!).
The other one you can adapt until you discover you cant clear flags in the cameras from Unity while using LWRP since it is not supported.
So now I am a little bit stuck.
Just to have a reference, here is a game with a rendereing similar to what I want to achieve:
Image from game "Darkwood"
I am accepting any suggestions or tutorials or materials you guys think that can help. Thx in advance!
PS: Alredy posted this on the Unity2D reddit.