Exported assets are free to use commercially and modify.

GTAOShader.js

GTAODepthShader

Ambient-occlusion depth

GTAODepthShader
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