SphereMask fog material is occluded when camera distance increases.

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.

So the fog cloud is visible here…

But move back a bit more and it disappears…

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.

2 Likes

Very nice! It helped me a lot!