natiny_model_set_part_texture
void natiny_model_set_part_texture(NatinyModel model, uint32_t part, NatinyTexture texture);
Overrides the texture of one part of the model, in place of the one the mesh loaded for it.
Parameters
| Name | Type | Description |
|---|---|---|
model |
NatinyModel |
Model handle |
part |
uint32_t |
Zero-based part index |
texture |
NatinyTexture |
Texture handle, or 0 to go back to the mesh's |
Example
natiny_model_set_part_texture(crate, 0, label);