Depth fade fog for mobile?

Hi, i’m trying to add some fog to my game but I can’t find anything looking good or even working.

  • I tryied the exponential height fog but because it’s calculated on vertices on mobile, it doesn’t work on low poly meshes (fog looks inverted on some meshes)

  • I tryied postprocess materials like this :
    https://i.imgur.com/VTC5FnV.png but it’s works only on shader mode 4 or 5, does nothing on mobile.

What are the other options? I’m not good with materials so every help is welcome. Thanks

Using materials, you can achieve a similar look to Unity’s fog effect. To make this easier, I recommend using the main material.

Vertex fog with large mesh

Fog material with large mesh

Fog material with landscape

This is the simple form of fog material.

Fog material with base color , emissive and normal map.

You can download the material and copy it to your project’s content folder.
FogMaterial.uasset (140.4 KB)

4 Likes

:heart_on_fire: :heart_on_fire: :heart_on_fire: :heart_on_fire: thank you SO much!