# SphereMask fog material is occluded when camera distance increases.

**URL:** <https://forums.unrealengine.com/t/spheremask-fog-material-is-occluded-when-camera-distance-increases/597381>\
**Category:** World Creation\
**Tags:** unreal-engine, UE5-0, Volumes\
**Created:** [July 5, 2022, 8:00am UTC](https://forums.unrealengine.com/t/spheremask-fog-material-is-occluded-when-camera-distance-increases/597381 "2022-07-05T08:00:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave668881](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dave668881](https://forums.unrealengine.com/u/Dave668881)\
**Post date:** [July 5, 2022, 8:00am UTC](https://forums.unrealengine.com/t/spheremask-fog-material-is-occluded-when-camera-distance-increases/597381/1 "2022-07-05T08:00:10Z")

</div>

I have created a particle system which uses a material to generate a fog cloud. The material uses a SphereMask to generate the fog cloud - which generates correctly as a dome shaped cloud in my scene and can be modified by the Hardness and Extinction parameters as expected to fade it in/out.

The issue I am having is that when the camera moves away from the fog cloud, after a short distance the fog cloud fades out and disappears. It re-appears again when moving back towards it.

So i want this to stop occurring and want the fog cloud visible at all distances from it. I suspect there is some occlusion setting to do this I cannot locate. I noticed that If i change the particle system material to another material it works ok and the particle system does not fade out when the camera moves away from it.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/6/c8690d42ac3723d4e5e769b147ca949b1f263bf1.png)

So the fog cloud is visible here…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/b/41bac976e308db7ac25559e68e66308dbe91e6d6.jpeg)

But move back a bit more and it disappears…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/9/8b9138346c0d2b6212f02208f180a1539cb4bec8.jpeg)

---

<div class="post-metadata">

**Author:** ![Dave668881](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dave668881](https://forums.unrealengine.com/u/Dave668881)\
**Post date:** [July 7, 2022, 6:59pm UTC](https://forums.unrealengine.com/t/spheremask-fog-material-is-occluded-when-camera-distance-increases/597381/2 "2022-07-07T18:59:42Z")

</div>

Fixed it. Its the View distance on my height fog that causes the occlusion. Explains why when i switched to a non-fog material I was’nt getting the issue.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/e/99e434e681f0a3fd9ceea09db61c260e1a70f325.jpeg)

---

<div class="post-metadata">

**Author:** ![DanielRiversArt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danielriversart/32/780141_2.png) [@DanielRiversArt](https://forums.unrealengine.com/u/DanielRiversArt)\
**Post date:** [November 23, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/spheremask-fog-material-is-occluded-when-camera-distance-increases/597381/3 "2023-11-23T15:53:05Z")

</div>

Very nice! It helped me a lot!
