Community Tutorial: How to use SSAO with Lumen

​A simple trick on how to use SSAO (Screen Space Ambient Occlusion) when you are using Lumen

https://dev.epicgames.com/community/learning/tutorials/5PkM/unreal-engine-how-to-use-ssao-with-lumen

The commands are changed in later versions, in 5.3 they are:
r.Lumen.DiffuseIndirect.SSAO 1
r.Lumen.ScreenProbeGather.ShortRangeAO 0

2 Likes

Thanks a lot !
How can I save this in the project ?

Edit the DefaultEngine.ini, put these commands under the renderer section (just make sure to use = instead of a space between the command and the value).

Be sure you put them in the opposite order!
They need to be like this:
r.Lumen.ScreenProbeGather.ShortRangeAO=0
r.Lumen.DiffuseIndirect.SSAO=1

The reason is, the code is read from top to bottom and the SSAO to work needs to have the ScreenProbeGather disabled. If the r.Lumen.DiffuseIndirect.SSAO=1 doesn’t find that, it won’t be enabled!