Structs

The mix material takes two other materials and a texture and uses the value returned by the texture to blend between the two materials at the point being shaded.