Function Mesh.surfaceSetMaterial

Sets a Material for a given surface. Surface will be rendered using this material.

void surfaceSetMaterial (
  const(long) surf_idx,
  Material material
) nothrow @nogc;