# How to disable DFAO without disabling ray traced shadows?

**URL:** <https://forums.unrealengine.com/t/how-to-disable-dfao-without-disabling-ray-traced-shadows/311523>\
**Category:** Rendering\
**Tags:** distance-field-ambie, unreal-engine, Rendering, question\
**Created:** [March 18, 2015, 10:39am UTC](https://forums.unrealengine.com/t/how-to-disable-dfao-without-disabling-ray-traced-shadows/311523 "2015-03-18T10:39:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2f5f0c3f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2f5f0c3f](https://forums.unrealengine.com/u/anonymous_user_2f5f0c3f)\
**Post date:** [March 18, 2015, 10:39am UTC](https://forums.unrealengine.com/t/how-to-disable-dfao-without-disabling-ray-traced-shadows/311523/1 "2015-03-18T10:39:24Z")

</div>

I can turn off Distance Field Ambient Occlusion in the editor by going to `Show->Lighting Features->DistanceField AO`, but when I play the game, the DFAO is turned back on. I can disable it by typing `show distancefieldao` in the console, but that setting is not remembered the next time I play.

How do I turn off DFAO permanently? Note that I still want the ray traced distance field shadows.

---

<div class="post-metadata">

**Author:** ![BobJoel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BobJoel](https://forums.unrealengine.com/u/BobJoel)\
**Post date:** [April 30, 2016, 3:08am UTC](https://forums.unrealengine.com/t/how-to-disable-dfao-without-disabling-ray-traced-shadows/311523/2 "2016-04-30T03:08:31Z")

</div>

I’m facing the same issue in 4.11. Turning off DFAO “removes” DistanceFieldShadowing - DF shadows do appear to render, but in an _extremely_ small radius past my cascaded shadows and the settings for them on my directional light no longer function.

Distance field shadows are broken like this until I activate DFAO manually through the command line in the editor or in-game (doesn’t work in consolevariables.ini). None of these settings stick.
