Godot Fog of War

Fog of war looks simple until you need several moving units, explored memory, and a mask that stays cheap to update. I packaged my solution as a Godot 4 addon.

Solid, Noise, and Real fog styles compared side by side

Drop FogOfWar over the map and attach a FogRevealer to anything that can see. Each revealer owns its radius and registers itself. The plugin handles live line-of-sight, permanent exploration, fade-back trails, and solid or scrolling-smoke fog. The demo also includes an experimental LBM fluid fog, shown above beside the two shipped styles.

The demo includes a 120-unit stress map. You can play it in the browser, download the free Windows build, or get the plugin source here:

6 Likes

This looks good on the face of it. I struggled recently with a permanent ‘fog of war’ so the areas cleared remained cleared. Does yours cope with that?

EDIT: You already answered my question!

Line-of-sight, persistent exploration, and timed fade-trail memory modes.

Well I should have read the git page first, sorry. Ignore me. This looks really good!

1 Like

No worries at all, happens to the best of us! glad you found the persistent exploration mode in the docs.

If you run into any edge cases or have feedback while testing it out, feel free to drop an issue or let me know!

1 Like