Exported assets are free to use commercially and modify.

SSAOShader.js

SSAODepthShader

Screen-space depth

SSAODepthShader
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 distance in shades of black and white to check that front objects and background are separate.

Official source