natiny_material_unbind
void natiny_material_unbind(void);
Removes the bound material override. The current batch is flushed first, so queued draws keep the material they were submitted with.
Example
natiny_material_unbind();
Notes
- This is equivalent to
natiny_material_bind(0); it does not restore the previously bound material. - Model draws use their model or per-part materials again; other draws use the built-in material.
- Unbinding a surface restores the material saved for the suspended target; see The bind stack.