VisionOS RealityKit

I have a plane that is stereoscopic so represents to the user depth that is beyond the plane.

I would like to have the options to render the depth buffer for the pixels or to not render any information into the depth for the plane.

I cannot see any option in Shader Graph Material to affect the depth buffer during render. I also cannot see any way in RealityKit to not render to the depth buffer for an entity.

I'm open to any suggestions.

Replies

AFAIK A stereoscopic material shows a separate image to the left and right eye. There's not really a depth buffer involved.

Perhaps you can conditionally swap between using the stereoscopic image data or left-eye-only image data based on some conditions in the shader graph.