I wrote a little HLSL ray marcher while experimenting with contact shadows and lighting "reference mode" for Tiny Glade.

Here's the code if anyone's interested: https://gist.github.com/h3r2tic/9c8356bdaefbe80b1a22ae0aaee192db

Depth buffer raymarching for contact shadows, SSGI, SSR, etc.

Depth buffer raymarching for contact shadows, SSGI, SSR, etc. - raymarch.hlsl

Gist