mtr files define a material which can be referenced from within models/ mdl files. There are two ways to reference an mtr file:
The latter enables using materials with existing textures and models. If an mtr file is present it takes precedence over image textures - be it dds, plt or dds.
Defining shaders is optional. If omitted, a default shader will be picked depending on content type.
The renderhint can also be addedfile.
Texture definitions are optional. Any texture defined in the mtr file takes precedence over the one in the model/ mdl file. Up to 11 textures are supported: texture0 - texture10 (numbering doesn't need to be continuous). Specifying a texture makes it available in the shaders in the corresponding uniform sampler (texUnit*).
Optional definitions of parameters, which will be passed to the shader.
The following example overrides the standard armoire placeable (plc_a01.mdl). The new placeable is a simple square and references a mtr file with three textures. The files have to be placed into the override folder.