natiny.model.set_material
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
natiny.model.set_material(box, stone)