# How to disable Atmospheric Fog for SceneCaptureComponent?

**URL:** <https://forums.unrealengine.com/t/how-to-disable-atmospheric-fog-for-scenecapturecomponent/454363>\
**Category:** C++\
**Tags:** Atmospheric-Fog, scenecapturecomponen, disable, unreal-engine, UE4, CPP, question\
**Created:** [August 24, 2019, 7:53pm UTC](https://forums.unrealengine.com/t/how-to-disable-atmospheric-fog-for-scenecapturecomponent/454363 "2019-08-24T19:53:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SolDirix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SolDirix](https://forums.unrealengine.com/u/SolDirix)\
**Post date:** [August 24, 2019, 7:53pm UTC](https://forums.unrealengine.com/t/how-to-disable-atmospheric-fog-for-scenecapturecomponent/454363/1 "2019-08-24T19:53:11Z")

</div>

Hello, I need to know how to disable the Atmospheric Fog for a SceneCaptureComponent in C++. I want to still be able to render Atmospheric Fog for the main camera, but I want it disabled for a SceneCaptureComponent used for creating stencil buffers for my other materials.

I can turn off post-processing effects such as bloom and motion blur but I can’t find anything for Atmospheric Fog in the PostProcessSettings of the SceneCaptureComponent.

---

<div class="post-metadata">

**Author:** ![SolDirix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SolDirix](https://forums.unrealengine.com/u/SolDirix)\
**Post date:** [August 24, 2019, 9:32pm UTC](https://forums.unrealengine.com/t/how-to-disable-atmospheric-fog-for-scenecapturecomponent/454363/2 "2019-08-24T21:32:10Z")

</div>

I found the solution.

MySceneCaptureComponent-\>ShowFlags.SetAtmosphericFog(false);

🙂
