Scene Depth Node Alternative

I want the colors of the objects behind the transparent plane to change. Normally I can do this with the Scene Depth node, but it is not supported in Polyspatial and it is also stated in the documentation. What can I use as an alternative?

  • Unity Editor 2022.3.26f1
  • App mode: Mixed Reality
  • Polyspatial 1.3.1

Right; we don’t support the Scene Depth node because there’s no equivalent in RealityKit’s MaterialX support that lets us sample the depth buffer. The only workaround I can think of for this particular case would be to pass the plane coefficients (or quad vertices) to the shader and test against the plane (and, optionally, the extents of the quad) to determine which color the pixel should be.

1 Like