Occlusion
Occlusion allows mixed reality content in your app to appear hidden or partially obscured behind objects in the physical environment. Without occlusion, geometry in your scene will always render on top of physical objects in the AR background, regardless of their difference in depth.
AR Foundation provides two components to control occlusion functionality in your AR scene. The AR Occlusion Manager provides simple occlusion alongside the ARCameraBackground component, primarily on mobile devices. The AR Shader Occlusion component enables customizable occlusion using shaders on OpenXR runtimes.
Refer to the following topics to understand how to use AR Foundation occlusion:
Topic | Description |
---|---|
Occlusion platform support | Discover which AR platforms support occlusion features. |
AR Occlusion Manager component | Understand the AR Occlusion Manager component. |
AR Shader Occlusion component | Understand the AR Shader Occlusion component. |