d3d_automaterial

Activates automatic material assignments by material names. This way, default materials can be assigned to individual level textures and entity files, and material effects like bumpmapping and shaders can be assigned to level texures.

Range:

0 no automatic material assignment (default).
1 assign a material to all level textures with the same name.
2 assign a material to all level textures and entity files with the same name ('.' replaced by an underscore '_').

Type:

var, redefine

Remarks:

Example:

d3d_automaterial = 2;
...
MATERIAL* stonewall = { ... } // assigned to all "stonewall" surface textures
MATERIAL* skyblue_tga = { ... } // assigned to "skyblue.tga"
MATERIAL* monster_mdl = { ... } // assigned to "monster.mdl"
► latest version online