Orthographic camera and depth in Line MAT

Hi.
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
FIXED: 2020.26630 - SSAO and camera space depth broken with orthographic camera ?

Here to +1 this - it appears that the near/far width scaling on the Line MAT does not work in ortho - is this a bug? Will post in bugs just in case.