Shader and code for random materials

shader blends between 3 materials based on RGB flags