I am still in the experimental stage with Godot. Experimenting with 2D isometric maps, I wanted a fog of war option for it. After walking a few dead-end paths I made a solution with a shader. It turned out to be a reasonably generic solution. It is a separate scene which can be added to other games without much implications. Perhaps someone else can benefit from it. That's why I placed the solution on GitHub. It can be found through the link: Godot-FogOfWar.