natiny.material.unbind

Lua
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

Lua
natiny.material.unbind()