Quick question regarding the use of the XMMatrixOrthographicLH function.
After spending several days trying to figure out why I couldn't render any 2D objects in my game I finally realised I had the incorrect inputs to this function (all fixed and working now!), I'm just unsure why my original inputs were wrong.
I currently have a camera with a near z of 0.1 and a far z of 1500 just as default but when using these values to create the orthographic matrix nothing would be rendered on screen. I now use the same function but with values of 0 and 1 respectively and everything works.
If someone could explain that would be appreciated as documentation / google searches just say that the near z and far z values are required.
Thanks!