top of page
overview.png

Efficient Froxel Based Volumetric Fog Render Feature

C#,  HLSL,  Compute Shader

Efficient froxel-based volumetric fog render feature for Unity URP. I was responsible to build the custom render feature and compute shaders.

Efficient Froxel Based Volumetric Fog Render Feature: Projects
Efficient Froxel Based Volumetric Fog Render Feature: Video
Efficient Froxel Based Volumetric Fog Render Feature: Video
VolumetricFogPasses.png

Render Feature

We implemented volumetric textures as intermediate storage, and used compute shaders and UAVs to raymarch and write efficiently.

  1. First and most important part is performing lighting and shadowing calculations for every volume cell.

  2. In parallel, we estimated and animated the participating media density.

  3. Then using this information stored in volume textures, we performed 2D raymarching through the volume and stored the result in volume slices.

  4. And finally using pixel shaders, applied information on screen for forward or deferred shaded objects.

Efficient Froxel Based Volumetric Fog Render Feature: Image
bottom of page