GTAOShader.js
GTAODepthShader
Ambient-occlusion 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
Shows object distances with light and dark to help check shadow placement.
Official source