Dawoodoz / DFPSR

Fast realtime softare rendering library for C++14 using SSE/AVX/NEON. 2D, 3D and isometric rendering with minimal system dependencies.
https://dawoodoz.com/dfpsr.html
78 stars 6 forks source link

Optimized camera for infinite far clip distance #78

Closed Dawoodoz closed 1 year ago

Dawoodoz commented 1 year ago

When the far clip distance is set to infinity, there will now be one less plane applying the clipping, which will be slightly faster when culling and clipping triangles.

Also moved out the error margins from the ViewFrustum type, so that it will be mathematically correct in its own definition.