# Atmospheric fog long distance

**URL:** <https://forums.unrealengine.com/t/atmospheric-fog-long-distance/433722>\
**Category:** Rendering\
**Tags:** Atmospheric-Fog, Fog, unreal-engine, question\
**Created:** [September 13, 2018, 1:37pm UTC](https://forums.unrealengine.com/t/atmospheric-fog-long-distance/433722 "2018-09-13T13:37:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Gundry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David\_Gundry](https://forums.unrealengine.com/u/David_Gundry)\
**Post date:** [September 13, 2018, 1:37pm UTC](https://forums.unrealengine.com/t/atmospheric-fog-long-distance/433722/1 "2018-09-13T13:37:08Z")

</div>

I’m having a problem with atmospheric fog having a sharp edge at extremely long ranges from the camera. In the screenshot below, you can see what I mean. This is an extremely large cube (5km sides) rotated so I can see two of it’s faces. There is a sharp cutoff visible in the middle of the right face (and also towards the edge of the left face), which is coming from the atmospheric fog (if I turn off the atmospheric fog, this goes away).

 ![253594-fogrange.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/8/3b84abb248af812e9a1e6f0c5b887fbbc9b1eb93.png)

The distance from the camera to this sharp cutoff line is approx 110 kilometers (11,000,000 Unreal units). The cutoff is also visible on the terrain underneath - I added the cube to make the effect easier to see.

I have fiddled with every value in the atmospheric fog component, and nothing will extend this range. I’ve also tried setting the near clip plane, but to no effect. Is this a limitation in the Unreal atmospheric fog shader? If so, what is the best workaround for background terrain that needs to be a hundred kilometers away?

Thanks
