Need help creating a fog of war effect

Currently, I’m interested in creating a fog of war effect similar to that seen in a game like Darkwood or Project Zomboid. Essentially, the main things I want to create is a general ray tracing effect, where i can see out from the player’s FOV, again, something like Darkwood or Project Zomboid. I also want to learn how i can create certain entities that only appear when directly within the FOV (outside of the FOV, they disappear, and slowly reveal themselves as my cone goes over them)

As of now, I’ve found a couple of tutorials, but they’re either not quite what I’m looking for (Like using a grid system) or not very in-depth and lost me after some time.

I’m focusing on a 2D approach, since I imagine trying to do it for 3D will be infinitely harder, but if anyone can help me implement the same ideas in 3D, I’d really appreciate it!

Use light occluder nodes: