Pixel-Perfect Fog Of War

by [email protected]

This is a paid asset, but now you can download Pixel-Perfect Fog Of War for FREE, but please remember this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.

Detail this asset from Unity Store: Original Link

Pixel-Perfect Fog Of War v1.1

Download Now

Pixel-Perfect Fog Of War is a 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.

Download Windows Demo Builds

Unlike most solutions to this problem, Pixel-Perfect Fog Of War requires no render textures to operate, and all of the calculations are done on the GPU. This means that the system is blazing fast, and produces Pixel-Perfect results.

Utilizing Image Effects, URP Custom Render Features, and the HDRP Custom Pass Framework, this tool is compatible with your existing project, and no custom shaders are necessary for your materials.

This package comes with the ability to hide certain gameobjects in the Fog Of War.

This package allows you to customize your Fog Of War, and comes with 4 types of fog (see screenshots), allows you to adjust a revealers view angle and view radius, change the Fog Of War color, and the option to reveal tops of objects by adding corners (see screenshots).

This project utilizes both the C# Jobs system and the Burst Compiler to ensure optimal performance.

With Version 1.2, you can now customize your Fog Render Mode. Pixel-Perfect Fog Of War comes with 4 default render modes:

Solid Color – Fog is rendered as a solid color
Gray Scale – Fog Desaturates your scene
Blur – Fog blurs and changes the color of your scene
Texture Sample – Fog samples a texture with Triplanar Mapping to overlay a texture for the fog areas

If you are Satisfied or Dissatisfied with the results, please leave a review or contact me through my site. All feedback helps to make the tool better for future updates. Id also love to see what games your using it for!

This package has many advantages over the competition:

No second camera or render textures necessary
Compatible with all shaders. This tool using Image effects for the built-in render pipeline, render features for URP, and the Custom pass framework for HDRP.
No render textures necessary. line of sight data is calculated per-pixel on the GPU.

This package comes with several types of Fog Of War (see screenshots for visuals)

No Bleed – cuts off vision without adding an arc to segments
No Bleed Soft – same as no bleed but with blurred edges
Hard – adds arcs to the ends of each segment to round out vision
Soft – adds arcs and blurs the edges of vision
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.

2 demo scenes are included with this package.

LIMITATIONS:

While this package is for 3d scenes, the fog of war logic acts on a 2d, “top down” 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.
Because of the design choice of making this a pixel-perfect line of sight system, this system is textureless, so the ability for an area to stay lit when not being actively revealed with the fog slowly re-growing/fading back in is not supported.

Related Posts

Leave a Comment