Possible to use BABYLON.ShadowGenerator with shader material?

I’ve just seen this post: Get shadows working with custom shader that links to this announcement: Custom shadows with ShadowDepthWrapper.