normal z-buffer
logarithmic z-buffer
reverse z-buffer
three.jsReverse Depth Buffer
Note: For best results, a floating-point depth buffer should be used with post-processing. See Visualizing Depth Precision.
Based on the three.js example
Modules bundled into the page, so this is one HTML file with no external files.
webgpu_reversed_depth_buffer.html · MIT License · Copyright © 2010-2026 three.js authors · github.com/mrdoob/three.jsModules bundled into the page, so this is one HTML file with no external files.