rustgd / cgmath

A linear algebra and mathematics library for computer graphics.
https://docs.rs/cgmath
Apache License 2.0
1.12k stars 155 forks source link

Support infinite far planes #547

Open emilk opened 2 years ago

emilk commented 2 years ago

Infinite far planes is a standard trick that actually improves the precision of the Z buffer.

See for instance https://thxforthefish.com/posts/reverse_z/ and https://developer.nvidia.com/content/depth-precision-visualized