normal z-buffer

logarithmic z-buffer

Verge3D - cameras - logarithmic depth buffer
Zoom through scene with objects ranging in size from 1µm to 100,000,000 light years using the mousewheel
Linear z-buffer handles close-up objects well, but fails spectacularly at distant objects
Logarithmic handles all but the smallest objects with ease