Procedural masking technique

How to procedural mask in blender like this https://www.artstation.com/artwork/k4xAA6.please share your procedural masking technique.