4 ms·
No, because depth values are in screen space (1/z), not world space (like 990-1000). Here are some graphs that make the benefits obvious: https://developer.nvid
by gary_0 2y ago
No, because depth values are in screen space (1/z), not world space (like 990-1000). Here are some graphs that make the benefits obvious: https://developer.nvidia.com/blog/visualizing-depth-precision/ https://developer.nvidia.com/blog/visualizing-depth-precisio...
- Dylan16807 2y agoThose graphs are inaccurate. They only show a few levels of exponent for the floating point. There is a benefit, but it's overstated by those graphs. The math is simple enough. When you calculate 1/990-ish, it comes out to about 0.001. Everything below about 0.001 is between 990 and the far plane. Now, of the floating point values between 0 and 1, what percent of them are below 0.001? It's 91.4%. Only 9% of those values are being used. And only 1/4 of floating point is between 0 and 1 to start with. Floating point is just not the right way to store these values. It makes sense to have denser values near 0, but the exponential nature of floating point does that to an extremely overkill extent.