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:
The associated light function looks like this:
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.