Just adding a link to a very similar material setup that I posted, but with a texture consisting of an customizable RGB pattern for a mask, instead of the mask being generated on the fly. Random texture tiling material with RGB Mask
I can’t edit my original post, so this is my way of interlinking now.