# Render in main pass AR (Android)

**URL:** <https://forums.unrealengine.com/t/render-in-main-pass-ar-android/472666>\
**Category:** Rendering\
**Tags:** occlusion, translucent, disable-rendering, stop-rendering, unreal-engine, question\
**Created:** [October 9, 2020, 1:38pm UTC](https://forums.unrealengine.com/t/render-in-main-pass-ar-android/472666 "2020-10-09T13:38:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![NDmitriy98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NDmitriy98](https://forums.unrealengine.com/u/NDmitriy98)\
**Post date:** [October 16, 2020, 10:45am UTC](https://forums.unrealengine.com/t/render-in-main-pass-ar-android/472666/2 "2020-10-16T10:45:14Z")

</div>

Ok, I solved this problem myself. There is **ARCoreOcclusionMaterial** in **GoogleARCore Content** that helps occlude objects in vitrtual space. But it needs some improvements to work clear, you can’t just put this material to the object and have fun.

 ![318911-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/1/7f1c21640f7862fb9740a76365f053474439a4d2.jpeg)

First you need to add Custon sRGB to linear convrersion in this material to fit camera image with unreal tonemapped image. Code of this node (or just node) you can find in **GoogleARCorePassthroughCameraMaterial**.

 ![318900-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/4/1a482d184c5b8e63b52aca90b2cdaec03f91556e.jpeg)

After this you have to update parameters from material parameter collection. In **ARCoreUtils** function library you can find **UpdateARCoreOcclusionMaterialInstance** that you need to call every frame. Just for test I did it in my Static mesh actor.

 ![318899-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/f/29f40e1f4ff6c3d900083d37a96cbc54a256882a.jpeg)

Now I finally have invisible occluders in my android mobile project.

---

_[View the full topic](https://forums.unrealengine.com/t/render-in-main-pass-ar-android/472666)._
