# Problem with flickering shadows in Unreal Engine 5 when using global illumination not in Lumen mode

**URL:** <https://forums.unrealengine.com/t/problem-with-flickering-shadows-in-unreal-engine-5-when-using-global-illumination-not-in-lumen-mode/1743119>\
**Category:** Rendering\
**Tags:** unreal-engine, bug-report, editor, Rendering, question\
**Created:** [March 10, 2024, 2:21pm UTC](https://forums.unrealengine.com/t/problem-with-flickering-shadows-in-unreal-engine-5-when-using-global-illumination-not-in-lumen-mode/1743119 "2024-03-10T14:21:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![CatWillAlex](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/catwillalex/32/908629_2.png) [@CatWillAlex](https://forums.unrealengine.com/u/CatWillAlex)\
**Post date:** [March 14, 2024, 6:26pm UTC](https://forums.unrealengine.com/t/problem-with-flickering-shadows-in-unreal-engine-5-when-using-global-illumination-not-in-lumen-mode/1743119/6 "2024-03-14T18:26:08Z")

</div>

Update: It’s better not to disable this technology, as it affects other aspects, you just need to disable Distance field AO using the command: r.distanceFieldAO = 0

This is how you save Distance Field shadows in the project

But this is also not a solution to the problem. In Unreal Engine 4, all these technologies worked without problems.

This is just a way to avoid the problem

Car on screenshot have shadows if you dont turn off “Generate Mesh Distance Fields” in project settings:

 ![UnrealEditor_FMsHvqZPMO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/6/8567b552bcfc01d95fa0262719f93315302bd81f.jpeg)  
 ![UnrealEditor_4vaNZ1z6p7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/8/a9896384f36fa6dee5c193e09fa8ae8dd4dc9c85.jpeg)

---

_[View the full topic](https://forums.unrealengine.com/t/problem-with-flickering-shadows-in-unreal-engine-5-when-using-global-illumination-not-in-lumen-mode/1743119)._
