# Post process ao in material

**URL:** <https://forums.unrealengine.com/t/post-process-ao-in-material/467324>\
**Category:** Rendering\
**Tags:** unreal-engine, Post-Process, ambient-occlusion, question\
**Created:** [June 27, 2020, 7:49am UTC](https://forums.unrealengine.com/t/post-process-ao-in-material/467324 "2020-06-27T07:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![branden2016](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@branden2016](https://forums.unrealengine.com/u/branden2016)\
**Post date:** [June 27, 2020, 7:49am UTC](https://forums.unrealengine.com/t/post-process-ao-in-material/467324/1 "2020-06-27T07:49:03Z")

</div>

it seems like post process ao is affected by the skylight ,  
i wanted to use that post process ao without skylight directly in the material because my scene has a single spot light  
and no skylight so is there a way to get the post process ao in the material ?

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [June 27, 2020, 12:08pm UTC](https://forums.unrealengine.com/t/post-process-ao-in-material/467324/2 "2020-06-27T12:08:22Z")

</div>

You can use Precomputed AO mask. You need to bake lighting with these settings in your World Settings (the underlined). Then in the material use Precomputed AO mask node.

EDIT: Last 2 options are set to 0 if you do not want to bake lighting just the AO masks.

 ![305574-ao.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/7/dd73412f937a26021aad63d6d23f55ab6897623e.png)

![305575-preao.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/7/ee757e8b435ad5f9b5571fc8256dbb59059cf80e.png)

---

<div class="post-metadata">

**Author:** ![VIPER\_137](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VIPER\_137](https://forums.unrealengine.com/u/VIPER_137)\
**Post date:** [April 13, 2022, 8:26pm UTC](https://forums.unrealengine.com/t/post-process-ao-in-material/467324/3 "2022-04-13T20:26:35Z")

</div>

This was very helpful, I had the same problem and it fixed it. thank you!
