Here is a GLSL code snippet to convert the exponential depth to a linear value:
float f=1000.0;
float n = 0.1;
float z = (2 * n) / (f + n - texture2D( texture0, texCoord ).x * (f - n));
where:
- f = camera far plane
- n = camera near plane
- texture0 = depth map.

Yes my friends, this is a very useful utility if you use Gmail: Gmail Backup allows you to save all your messages with an easy to use Windows or Linux application:








