Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Occlusion ←NsdkOcclusionExtension

OptimalOcclusionDistanceMode


Declaration​

public enum OptimalOcclusionDistanceMode

Summary​

The sampling mode for determining the distance to the occluder. This distance is used to transform the depth buffer to provide accurate occlusions.


Fields​

NameTypeSummary
static ClosestOccluderOptimalOcclusionDistanceMode
Take a few samples of the full depth buffer to
determine the closest occluder on the screen.
This will provide the best available occlusions
if there are many occluded virtual objects of similar
size and importance.
static SpecifiedGameObjectOptimalOcclusionDistanceMode
Sample the sub-region of the buffer that is directly over
the main CG object, to determine the distance of its occluder
in the world. This will provide the best quality occlusions
if there is only one occluded virtual object, or if one is more
visually prominent than the others
static StaticOptimalOcclusionDistanceMode
Stabilize the depth buffer relative to a pre-determined,
unchanging depth. Not recommended if there are occluded virtual objects
in the scene, but is more performant and thus optimal when
occlusions are not needed.