natiny_model_set_material

C
void natiny_model_set_material(NatinyModel model, NatinyMaterial 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 Description
model NatinyModel Model handle
material NatinyMaterial Material handle, or 0 for the built-in material

Example

C
natiny_model_set_material(box, stone);