I got it. It was simply the matter of me passing the shadow map to the shader as depthMap, and me trying to access it as shadowMap on the shader side, which was nonsense of course. God-dammit.
depthMap
shadowMap