Materials: Select Texture by Color-Mask?

You should do 4 lerps using 4 channels of your color map. That would give you 4 masks. Making multiple greyscale masks out of one RGB texture would be possible using conditionals. At least that is the first that comes to mind, but the performance will suffer. Stick with 4 grayscale masks to be fair.