Orthographic camera and depth in Line MAT

I’m trying to use the distance near/far controls on a Line MAT to control the thickness of points rendered. This works fine when using a perspective camera, but does not seem to work with Orthographic camera. It seems to flatten all the points to a single distance.

Is there a way to use orthographic camera but still be able to do things with distance in a Line MAT? (or, maybe get a depth mask output)

Here’s a .TOE to explain (latest experimental build, but not doing anything fancy so should work)
perspectiveOrthoDistance.toe (5.3 KB)

1 Like

Maybe related to
2020.26630 - SSAO and camera space depth broken with orthographic camera ?