# Is there any way to enable mobile fog?

**URL:** <https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915>\
**Category:** Rendering\
**Tags:** Fog, Mobile, unreal-engine, question\
**Created:** [May 21, 2014, 4:23pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915 "2014-05-21T16:23:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![intoxicat3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intoxicat3](https://forums.unrealengine.com/u/intoxicat3)\
**Post date:** [May 21, 2014, 4:23pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/1 "2014-05-21T16:23:56Z")

</div>

Is there any way to enable mobile fog as in UE3?

---

<div class="post-metadata">

**Author:** ![bazmod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bazmod](https://forums.unrealengine.com/u/bazmod)\
**Post date:** [October 7, 2014, 5:30pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/3 "2014-10-07T17:30:04Z")

</div>

Hi, I’m trying to get some sort of fog working on mobile but am not having any luck. Are you sure exponential height fog works on mobile as it isn’t doesn’t seem to - either in the mobile preview or on my android devices?

I’ve also tried using the atmospheric fog but that doesn’t work on mobile.

Finally I’ve tried making a simple plane with a depth fade material on it. This looks fine in the mobile preview but when I launch on device the ‘soft’ edge doesn’t work anymore (so you can see the plane intersecting the landscape)

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [October 7, 2014, 6:59pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/4 "2014-10-07T18:59:59Z")

</div>

Hey bazmod -

As points out above, the Exponential Height Fog is evaluated on a vertex level then interpolated to pixels, so if you have a low poly background piece the fog will be interpolated very poorly. Can you check to make sure that the pieces you want to be in your fog have a sufficient tessellation?

Atmospheric Fog should not work on mobile. This is a known limitation.

For the Depth Fade issue, can you let me know what mobile device you are experiencing this issue on?

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![bazmod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bazmod](https://forums.unrealengine.com/u/bazmod)\
**Post date:** [October 10, 2014, 10:28am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/5 "2014-10-10T10:28:33Z")

</div>

Hi, thankyou for the answer. I have tested this on a galaxy tab pro and s4 mini. I’ve attached some screenshots to show the problem more clearly.

 ![17544-fogproblems.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/3/1f30cde47ff62e545109e424cf50d766d3eb2840.jpeg)

I’m thinking that using a depth fade material is probably the better solution for this at the moment anyway as I’m guessing the exponential height fog will be too expensive.

Thanks again for the help

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [October 10, 2014, 1:54pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/6 "2014-10-10T13:54:12Z")

</div>

Hey Bazmod -

For the ultimate look you are trying to go for I would agree that the Depth Fade may give you a result closer to what you are looking for. The differences that you are seeing with the Exponential Height Fog is based on the render by pixel versus render by vertex. The editor will always have a “thicker” appearing fog than a mobile device.

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![bazmod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bazmod](https://forums.unrealengine.com/u/bazmod)\
**Post date:** [October 10, 2014, 2:17pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/7 "2014-10-10T14:17:58Z")

</div>

Thanks for the answer however the problem is that the depth fade effect isn’t actually working on android as shown in the pic on the bottom right - there’s no fade on it. Is this a known issue/limitation on mobile or are there any workarounds I can try?

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [October 14, 2014, 7:23pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/8 "2014-10-14T19:23:32Z")

</div>

Hey bazmod -

Can you give me a screenshot of your DepthFade Material and are you using a Plane or a Box to apply it to your level?

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![blahjovic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blahjovic](https://forums.unrealengine.com/u/blahjovic)\
**Post date:** [April 23, 2015, 5:06pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/9 "2015-04-23T17:06:50Z")

</div>

Did you guys ever get Depth Fade working on Mobile? I’m having the same problems with an ipad air 2.

---

<div class="post-metadata">

**Author:** ![DGrouse](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DGrouse](https://forums.unrealengine.com/u/DGrouse)\
**Post date:** [August 13, 2015, 7:16am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/10 "2015-08-13T07:16:03Z")

</div>

You should set up a material function like so and for materials you want fog applied to, use **Add Nodes** and plug them into the **Base Color** and **Emissive Color**.

[http://i.imgur.com/TLFptlG.png?1](http://i.imgur.com/TLFptlG.png?1)

This is tedious and shouldn’t be a necessity for mobile platforms, it would be better if there was a “Simple Fog” actor that automatically puts fog in this way.

---

<div class="post-metadata">

**Author:** ![Tireless](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tireless](https://forums.unrealengine.com/u/Tireless)\
**Post date:** [May 25, 2016, 6:50am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-enable-mobile-fog/283915/11 "2016-05-25T06:50:04Z")

</div>

Pixel depth material is not working for me on Iphone 5s.
