natiny.material.remove_tag

Lua
natiny.material.remove_tag(material, tag)

Removes a tag from the material's tag list. The remaining tags keep their order, and each tag after the removed one moves down by one index.

Parameters

Name Type Description
material number Material handle from natiny.material.create; 0 raises an error
tag string Tag name; a tag the material does not have is ignored

Example

Lua
natiny.material.remove_tag(glass, "transparent")