natiny_material_add_tag
void natiny_material_add_tag(NatinyMaterial material, const char* tag);
Adds a tag used by tagged draw passes to select models.
Parameters
| Name | Type | Description |
|---|---|---|
material |
NatinyMaterial |
Material handle |
tag |
const char* |
Tag name |
Example
natiny_material_add_tag(glass, "world");
Notes
- A material may have multiple tags.
- Adding the same tag twice does nothing.
- A null or empty tag is ignored. A material with no tags is not selected by natiny_render_tag.
- Only the material set on the model with natiny_model_set_material is read for selection; per-part overrides are not.