Separate two different types of material with blending mask

Thanks! However I still can’t understand how to actually map this to the model. I can create the function with BlendMaterialAttibutes and apply it to the Material C.
However the Material C can only have one Shading Model at once. So we can’t blend glass with metal for example, right?