natiny.material.get_instanced

Lua
natiny.material.get_instanced(material) -> instanced

Returns whether the material has its instanced forms and can draw many copies of a mesh in one draw call.

Parameters

Name Type Description
material number Material handle from natiny.material.create

Returns

Type Description
boolean true after a successful natiny.material.set_instanced

Example

Lua
if not natiny.material.get_instanced(material) then
    natiny.material.set_instanced(material, true)
end