How to make a material mask with gradient borders?

I’d start with that:

Quite a flexible little thing this is.

3 Likes