Pixel-Perfect Fog Of War
Pixel-Perfect Fog Of War is a line of sight tool that can project a field of view from any number of objects, and hide objects within un-seen parts of your scene.
Pixel-Perfect Fog of war is the Ultimate fog of war tool, perfect for your next RTS, Moba, Social deduction, or horror project!
Pixel-Perfect Fog Of War has many features, and advantages over its competition:
- All Render pipelines are supported
- No extra cameras or render textures are required for FOW to operate
- No rendering overhead due to extra cameras
- World size cannot limit FOW, it will render at full resolution no matter how vast your scene is
- Greater performance
- Zero GC Allocations
- Most of the FOW operations are caluclated on the GPU
- The CPU side of FOW is accelerated using the C# jobs system and burst compiler
- Greater Customization:
- Choose between Soft and Hard FOW
- Fog Transparency
- 4 fog rendering modes out of the box:
- Solid Color
- Gray Scale
- Scene Blur
- Scrolling Texture Fog
- Scene-Wide world bounds to darken the out of bounds portion of your scene
- Option to permanately reveal areas seen by revealers, and optionally regrow the fog slowly over time
- Option to set revealer opacity
- No custom materials required, FOW will work out of the box with your existing scene
- Compatible with the vast majority of assets on the asset store, with support provided in the case you find an incompatibility
- Lightweight, the whole package is under 1mb!
- Easily hide GameObjects within the Fog, abstracted for easy implementation of custom behaviors!
- FOW mask generation for minimaps, with camera frustum generation
- FOW fully supports both 2D and 3D projects. For 3d fog, you can project onto any axis, and render in both orthographic and perspective cameras
- FOW will render on any graphics backend (excluding WebGL)
- Active and quick support through the discord
- Frequent feature and performance oriented updates, including most community feature requests!
- Super quick setup: get FOW in your scene in under 1 minute!
Technical details
This package has many advantages over the competition:
- Zero GC Allocations during the Update loop
- No extra camera necessary
- Compatible with all shaders. This tool using Image effects for the built-in render pipeline, render features for URP, and the Volume framework for HDRP.
- No render textures necessary. line of sight data is calculated per-pixel on the GPU.
This package utilizes the Burst Compiler and C# jobs system. You must have these packages installed for the system to work out of the box. If you cannot use these for whatever reason, contact me for a resolution.
Several Quick-Start demo scenes are included with this package.
Compatible Graphics APIs:
- DX11
- DX12
- Vulkan
- OpenGL
- OpenGL ES 2.x
- OpenGL ES 3.x
- Metal
Incompatible Graphics APIs:
- WebGL
LIMITATIONS:
- While this package is for 3d scenes, the fog of war logic acts on a 2d, "top down" (or with the 1.3 update, the forward X/Y or Z/Y) perspective. this means that line of sight is based off the revealers height, and cannot see up or down. This is partially a design choice so that revealers taller than sight blockers can see over them completely.