class DepthMeshOccluder (Niantic.ARDK.AR.Depth.Effects.DepthMeshOccluder)

Overview

class DepthMeshOccluder: IDisposable {
public:
    // enums

    enum ColorMask;

    // properties

    ColorMask DebugColorMask;
    Vector4 DepthBufferParams;
    Matrix4x4 DepthTransform;
    bool Enabled;
    ScreenOrientation? Orientation;
    Matrix4x4 SemanticsTransform;
    Texture SuppressionTexture;

    // methods

    DepthMeshOccluder(
        UnityEngine.Camera targetCamera,
        Texture depthTexture,
        Resolution meshResolution
    );

    void Dispose();
    void SetScaling(float minDepth, float maxDepth);
};

Detailed Documentation

Properties

Vector4 DepthBufferParams

The values used to linearize depth.

bool Enabled

Enables or disables the occlusion effect.

Methods

void SetScaling(float minDepth, float maxDepth)

Sets the range for depth values. This should be invoked in case the GPU depth buffer contains non-linear values.

Parameters:

minDepth

Minimum depth value (depth near).

maxDepth

Maximum depth value (depth far).