Exported assets are free to use commercially and modify.

ShaderLib

depth

Camera depth

depth
Preview requires WebGL2. You can still download the demo.
Drag to orbit · Middle-drag to pan · Scroll to zoomOne finger to orbit · Two fingers to pan or zoom

Uses shades of gray to show distance from the camera. The computer uses this map to tell what is in front or behind.

Official source