How can I make the matte shadow material?

You can try this approach: Shadow catcher, possible ? Oo - Rendering - Unreal Engine Forums