natiny.model.set_material

Lua
natiny.model.set_material(model [, material])

Sets the material for every part of the model, and with it the tags that decide which passes draw the model.

Parameters

Name Type Default Description
model number Model handle
material number 0 Material handle, or 0 for the built-in material

Example

Lua
natiny.model.set_material(box, stone)