natiny_model_set_color
void natiny_model_set_color(NatinyModel model, NatinyColor color);
Sets this model's tint - the per-model form of natiny_render_set_color, which a bulk draw has no way to set per object.
Parameters
| Name | Type | Description |
|---|---|---|
model |
NatinyModel |
Model handle |
color |
NatinyColor |
Packed color from natiny_color_from_rgba or natiny_color_from_hex |
Example
natiny_model_set_color(buoy, natiny_color_from_hex("#ff8c26"));