Category: Landscape / Material
Since engine version: 1.0 OC
Returns the index of a material from its name. This index is used in most functions dealing with materials.
int Material(string material_name);
- Name of material
InsertMaterial(Material("Gold"), 200, 100);
Inserts a pixel of gold at position 200/100.
See also: MaterialName