ARKit Terrain Transparency

Hi, question on a terrain occlusion. I applied MobileOcclusion shader to a material and the material to a cube to cut bridge prefab and sample cube I was testing with (as seen on the screen shot).
I have a problem with terrain occlusion though. I tried DepthMask (http://wiki.unity3d.com/index.php?title=DepthMask) but it doesn’t work with ARKit - terrain and objects are not cut.
And directions how to solve it much appreciated. My idea is to simulate the “water” with real world surfaces.

You might want to check into the rendering order of terrain vs rest of scene. You might want to render terrain after the occlusion plane has rendered.

1 Like

That was it, thank you! I added

“Queue” = “Geometry-9”

to my shader tags, all working:

1 Like