# Disabling "Apply Fogging" Doesn't Work For Translucent Shader With Volumetric Fog

**URL:** <https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016>\
**Category:** Rendering\
**Tags:** bug, unreal-engine, Rendering, volumetric-fog, Shaders, question\
**Created:** [April 19, 2018, 3:41am UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016 "2018-04-19T03:41:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rujuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Post date:** [April 19, 2018, 3:41am UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/1 "2018-04-19T03:41:57Z")

</div>

I think this was working in 4.18, but as far as I can tell this does nothing in 4.19. I have some particles that I want to use to distort the scene, but they receive fog from the volumetric fogging and make the fog appear to be doubly thick where they appear because even though “Apply Fogging” is disabled, the fog is still applied to them when Volumetric Fog is enabled.

Is this a bug or a known issue? It prevents many possible visual effects with particles or other translucent objects.

---

<div class="post-metadata">

**Author:** ![Spoondog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spoondog](https://forums.unrealengine.com/u/Spoondog)\
**Post date:** [June 11, 2018, 10:33pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/2 "2018-06-11T22:33:50Z")

</div>

I’ve just run into this too. Seems to be no way to stop something from having volumetric fog drawn in front of something. You should log it here if you haven’t already: [Unreal Engine Community](https://epicsupport.force.com/unrealengine/s/)

---

<div class="post-metadata">

**Author:** ![rujuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Post date:** [June 15, 2018, 8:53pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/3 "2018-06-15T20:53:44Z")

</div>

I submitted the bug, but they say they cannot repro the issue. We fixed this internally with some shader code fixes, and due to deadlines I can’t submit a sample project in the near term. Just wanted to update you.

---

<div class="post-metadata">

**Author:** ![Spoondog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spoondog](https://forums.unrealengine.com/u/Spoondog)\
**Post date:** [July 6, 2018, 2:45am UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/4 "2018-07-06T02:45:59Z")

</div>

Thanks, I logged it again with a repro map. And here is an image to make this thread prettier.

 ![246353-apply-volumetric-fog-trans.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/a/6ead79ef9dfd7b473b173f41dd9e292ce4cedffe.jpeg)

[repro content 4.20 preview][2]

---

<div class="post-metadata">

**Author:** ![rujuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Post date:** [July 6, 2018, 4:37am UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/5 "2018-07-06T04:37:25Z")

</div>

Nicely done! Thanks for following up on that!

---

<div class="post-metadata">

**Author:** ![Spoondog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spoondog](https://forums.unrealengine.com/u/Spoondog)\
**Post date:** [July 6, 2018, 7:28pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/6 "2018-07-06T19:28:01Z")

</div>

Issue link: [Unreal Engine Issues and Bug Tracker (UE-61551)](https://issues.unrealengine.com/issue/UE-61551)

---

<div class="post-metadata">

**Author:** ![Luos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luos/32/918700_2.png) [@Luos](https://forums.unrealengine.com/u/Luos)\
**Post date:** [January 9, 2019, 6:40pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/7 "2019-01-09T18:40:26Z")

</div>

was just looking into this, apparently the issue has been updated to “by design”  
bleh.

---

<div class="post-metadata">

**Author:** ![rujuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Post date:** [January 9, 2019, 7:35pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/8 "2019-01-09T19:35:56Z")

</div>

Huh, by design?? That seems very odd since it makes the fogging unusable in certain scenarios and was fixable by our graphics programmer. I can ask him how he fixed it if it might help others here.

---

<div class="post-metadata">

**Author:** ![Anonymous\_aa0539eb1c0e920f3de40c63824fef4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_aa0539eb1c0e920f3de40c63824fef4c](https://forums.unrealengine.com/u/Anonymous_aa0539eb1c0e920f3de40c63824fef4c)\
**Post date:** [March 20, 2019, 3:36am UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/9 "2019-03-20T03:36:25Z")

</div>

Have you solved this problem?

---

<div class="post-metadata">

**Author:** ![Ditarcul](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ditarcul/32/537443_2.png) [@Ditarcul](https://forums.unrealengine.com/u/Ditarcul)\
**Post date:** [July 18, 2019, 11:43am UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/10 "2019-07-18T11:43:08Z")

</div>

Imagine you want volumetric lighting but you have a space scene located on the moon and the exponentialFOG threat the space skybox as any other skybox, well i want the skybox to be completely excluded but i can’t

---

<div class="post-metadata">

**Author:** ![Luis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luis](https://forums.unrealengine.com/u/Luis)\
**Post date:** [December 1, 2020, 6:21pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/11 "2020-12-01T18:21:14Z")

</div>

I’ve just ran into this problem and was not able to find a solution. If you could share how you fixed it I would really appreciate it.

---

<div class="post-metadata">

**Author:** ![rujuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Post date:** [December 1, 2020, 8:45pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/12 "2020-12-01T20:45:35Z")

</div>

For those who want to know what we did, we made this change to BasePassCommon.ush  
#define NEEDS\_BASEPASS\_PIXEL\_VOLUMETRIC\_FOGGING (TRANSLUCENCY\_NEEDS\_BASEPASS\_FOGGING || OPAQUE\_NEEDS\_BASEPASS\_FOGGING)  
//#define NEEDS\_BASEPASS\_PIXEL\_VOLUMETRIC\_FOGGING (MATERIALBLENDING\_ANY\_TRANSLUCENT || FORWARD\_SHADING)

---

<div class="post-metadata">

**Author:** ![Warhamster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warhamster](https://forums.unrealengine.com/u/Warhamster)\
**Post date:** [March 1, 2023, 5:44pm UTC](https://forums.unrealengine.com/t/disabling-apply-fogging-doesnt-work-for-translucent-shader-with-volumetric-fog/423016/13 "2023-03-01T17:44:11Z")

</div>

Hey rujuro,

I could use some more direction on how to implement this. However I try to include it into my BasePassCommon.ush it just makes my engine crash when trying to load.

Thanks
