newmtl
newmtl is a directive in the Wavefront MTL (material template library) file format used to begin the definition of a material. In OBJ workflows, the OBJ file can reference an external MTL file with a statement like mtllib and assign materials to faces with usemtl; the MTL file stores surface properties that shading engines use to render the material.
A material definition starts with a line containing newmtl followed by the material name. Subsequent lines
Texture maps can be attached using map_Kd for the diffuse texture, map_Ks for a specular map, and
Example: newmtl brass Ka 0.33 0.25 0.20 Kd 0.78 0.65 0.50 Ks 0.80 0.70 0.60 Ns 20
In use, the OBJ file’s mtllib statement loads the MTL file and usemtl selects which material applies