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

Overview

class DepthMeshOccluder: IDisposable {
public:
    // enums

    enum ColorMask;

    // properties

    ColorMask DebugColorMask;
    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

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 normalized values that need to be scaled before use.

Parameters:

isScalingEnabled

Whether the depth texture contains normalized depth values.

minDepth

Minimum depth value (depth near).

maxDepth

Maximum depth value (depth far).