Fog of War & Field of View

FOV Mapping by StupaSoft is an advanced approach to Field of View (FOV) and Fog of War (FOW) systems for Unity. Leveraging the power of the GPU, it stands out as a high-performance solution that offers exceptionally efficient field of view system. FOV mapping has the following strengths.


1. High Performance - Running on the GPU, FOV mapping does not enforce the CPU to check the visibility of each pixel, nor does it fire numerous rays toward all directions. You can increase the number of units as you want without sacrificing the performance. FOV mapping can handle sights of hundreds of units at once.


2. Terrain-Adaptiveness - FOV Mapping can deal with terrains with highly variative elevation. With FOV mapping, you will find the fog of war harmonizes with your own terrain in a seamless manner.


3. Rich Features - FOV Mapping provides various functionality to make your intention feasible. You can fine-tune the property values to adjust the visibility of enemy, sight range, and even precision of the FOV maps. Moreover, FOV Mapping not only supports the Unity built-in render pipeline, but also the Universal Render Pipeline (URP), which is widely used across the gaming industry nowadays.


Originally intended for real-time strategy games characterized by expansive environments, FOV Mapping's optimization enables smooth and seamless experiences in large-scale scenarios. Although it was optimized for real-time strategy (RTS) with a massive volume, it can also be applied to various other projects seeking to incorporate a field of view system without compromising performance.

Release Notes

  • 1.0.0
    • First release
  • 1.1.0
    • Fixed an issue where the fog of war was not working correctly as it should once translated or rotated.
    • Removed irrelevant data transfer from the script to the shader.
  • 1.1.1
    • Fixed an issue where rotated FOW planes do not sample the level correctly.
  • 1.1.2
    • Fixed a bug where when there is no contributing agent, the FOW does not show up.
  • 1.2.0
    • Corrected an issue that previously prevented the addition of new agents and led to warnings.
  • 1.2.1
    • Fixed a memory leak due to unreleased compute buffers.
  • 1.2.2
    • The projector shader now works with a orthographic camera.
    • Fixed an issue where buffers were not bound to the FOVMapping shader when there are no agents.
  • 1.2.3
    • Fog of war can now handle multiple MeshRenderer under an FOVAgent.
    • Fixed conditions for agent clipping.
  • 1.3.0
    • Improved performance for judging visibility of agents

  • 2.0.0
    • FOV Mapping now supports Universal Render Pipeline (URP)!
  • 2.0.1
    • Fixed shader bugs.
  • 2.0.2
    • Fixed awkward fog of war when using URP caused by incorrect FOV map color space.

Basic Information
Latest Version
2.0.2 (10 Mar 2025)
Publisher
StupaSoft
Category
Tools/Particles & Effects
Size
62.9 MB
Price
free
Asset Rating
(7)
Extended Information
Unity Versions
2022.3.13
Render Pipelines
BIRP URP
State
Published