# Volumetric fog masking incorrect with worldspace based Light Function

**URL:** <https://forums.unrealengine.com/t/volumetric-fog-masking-incorrect-with-worldspace-based-light-function/453898>\
**Category:** Rendering\
**Tags:** world-space, light-function, unreal-engine, bug-report, volumetric-fog, question\
**Created:** [August 15, 2019, 10:42am UTC](https://forums.unrealengine.com/t/volumetric-fog-masking-incorrect-with-worldspace-based-light-function/453898 "2019-08-15T10:42:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnage](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arnage/32/1020127_2.png) [@Arnage](https://forums.unrealengine.com/u/Arnage)\
**Post date:** [August 15, 2019, 10:42am UTC](https://forums.unrealengine.com/t/volumetric-fog-masking-incorrect-with-worldspace-based-light-function/453898/1 "2019-08-15T10:42:16Z")

</div>

When using worldspace masking inside a light function the masking is applied incorrectly to volumetric fog. An example can be seen in the following image:

![285064-lfon.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/c/23ccc3f08c1f3536f83464b49e442a0a60da3784.jpeg)

The associated light function looks like this:

 ![285065-lightfunction.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/1/32103704712d6b0464709a6fb16d25256a21bebb.png)

Reproduction steps:

- Open map in the [attached project][3]
- Move around the map
- Notice the volumetrics masking moving around depending on the camera location.

Expected behaviour:

- The volumetrics are masked in world space similar to the cube in the scene.

Versions tested:

- 4.22 and 4.23 preview 6, both had the same issue.

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [August 20, 2019, 7:16pm UTC](https://forums.unrealengine.com/t/volumetric-fog-masking-incorrect-with-worldspace-based-light-function/453898/2 "2019-08-20T19:16:06Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

Thanks
