I discovered a small issue in the material.
We need a saturate node here before the sine to avoid repetition in the z-mask
I changed the original post, but if you followed the tutorial before I recomend fixing this.Otherwise you will notice weird problems near steep edges etc.