
Creating Volumetric Fog of War
While I was working on Inner Alliance, I needed to implement a fog of war but I realized a simple 2D screen effect wouldn’t cut it when we had a dynamic 3D camera. That led me down the path of raymarched fog. Here, we’ll take a look at how I built it in Unity URP. Intro to Ray Marching Raymarching is a powerful rendering technique that casts rays from the camera and steps along them to sample shapes or volumes. Instead of relying on complex meshes, it uses signed distance functions (SDFs) to represent objects like spheres, fog, or clouds. ...