Skip to content

Can't get mesh mask filters to work #69

Description

@deepansh96
AssertionException: Shader named 'Meta/EnvironmentDepth/DepthMask' wasn't found in Resources folder.
Assertion failure. Value was Null
Expected: Value was not Null
UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) (at <0652bf0e14024522b5c92574ad0ef550>:0)
UnityEngine.Assertions.Assert.IsNotNull (UnityEngine.Object value, System.String message) (at <0652bf0e14024522b5c92574ad0ef550>:0)
UnityEngine.Assertions.Assert.IsNotNull[T] (T value, System.String message) (at <0652bf0e14024522b5c92574ad0ef550>:0)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager+Mask..ctor (System.Int32 width, System.Int32 height, System.Single bias) (at ./Library/PackageCache/com.meta.xr.sdk.core@71.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:410)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager.TryFetchDepthTexture (UnityEngine.Matrix4x4 trackingSpaceWorldToLocal) (at ./Library/PackageCache/com.meta.xr.sdk.core@71.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:369)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager.Update () (at ./Library/PackageCache/com.meta.xr.sdk.core@71.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:296)

I'm getting this error when I try to send a mesh filter to the EnvironmentDepthManager. Im using everything from meta's all in one sdk. Ive included URP shaders from the git url mentioned in this repo. Nowhere on the internet I could find this issue or this DepthMask shader. Please help!

Reference - https://developers.meta.com/horizon/documentation/unity/unity-depthapi-occlusions-advanced-usage#using-the-depth-mask-feature

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions