A simple Minecraft shader that produces a black and white depthmap as its output
Download latest .zip from the releases tab, and move it to your shaderpack folder. Alternatively, you can just clone this repo directly in the shaderpack folder.
The settings menu as seen using 1.21 / Iris. Both sliders travel from 0 to 255 blocks.
The "depth" of a point in the image could be defined in one of 2 ways - either the distance along the direction that the camera is facing, which is typical for a depth map, or the "true" distance between that point and the camera. Both modes are supported.
Standard depth map | True distance |