ZLZ Anime Shader
Unity · Visual Effects
This package brings the classic fog of war mechanic to Unity, automatically tracking map exploration and unit visibility. Perfect for real-time strategy (RTS) games, top-down games, and 2D projects. The fog of war creates three distinct visibility states: - Hidden areas that have never been discovered by any vision source - Explored regions that were previously discovered but aren't currently in vision range - Visible areas currently within your units' vision range Designed for Unity's Universal Render Pipeline, the system works with both orthographic and perspective camera projection. You control when the fog refreshes - choose automatic refresh with a custom interval for real-time gameplay, or manual refresh for turn-based mechanics. Fully customizable visual appearance using custom textures and colors for both unexplored and explored fog. The package includes a UI map fog overlay component that works with your custom minimaps, along with an API for saving and restoring exploration progress across game sessions. [Documentation] DISCLAIMER If you are using Unity ECS and are comfortable working with it, I recommend ECS Fog Of War RTS version for the best performance and scalability, especially with large numbers of units. If you already own this package, you can get the ECS version with an exclusive 75% discount. For traditional GameObject-based projects, this standard version is the recommended choice. Dynamic Fog Rendering – Areas smoothly reveal and hide in real-time as units move around the map. High Performance – Optimized with compute shaders, Burst compiler, and Job System to handle thousands of vision sources efficiently. Quick Integration – Minimal setup required to get fog of war working in your existing project within minutes. Flexible Vision Sources – Create circular or square vision areas with customizable size, position offset, and rotation offset. Visibility Events – Objects receive events when they become visible or hidden through UnityEvents or C# events. Smooth Object Fading – Built-in Fader component with custom shader support for seamless fade-in and fade-out transitions. UI Map Fog Overlay – Apply fog of war effect to your custom UI minimaps with a single component. Save/Load API – Retrieve current fog discovery state as compressed data and restore it later for persistent exploration across game sessions. Flexible Refresh Control – Choose automatic refresh at custom intervals (every frame, every 0.1s, etc.) or manual refresh for complete control in turn-based games. Versatile Camera Support – Works without requiring additional cameras and supports both orthographic and perspective projections. Customizable Appearance – Use custom textures and colors for both unexplored and explored fog. Adjust blur intensity and fade duration to match your art style. Vision Layers – Control which units can see which areas with four independent vision layers. URP Integration – Fully integrated with Universal Render Pipeline for modern rendering workflows. Full Source Code – Includes complete C# source code for maximum flexibility, customization, and integration with your project.