"Distance toward camera" for a world-space point under
basis — -dot(point, basis.forward). Larger values are
closer to the camera. Matches the convention the depth
buffer stores so per-vertex depth fits straight into the
max-wins comparison used during rasterisation.
"Distance toward camera" for a world-space point under
basis—-dot(point, basis.forward). Larger values are closer to the camera. Matches the convention the depth buffer stores so per-vertex depth fits straight into the max-wins comparison used during rasterisation.