natiny.material.unbind
natiny.material.unbind()
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 removes the override; 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.