đĒļMaterials
mat namespace
Functions
create
mat.create("dank_material", "VertexLitGeneric",
[[
"VertexLitGeneric"
{
"$ambientonly" 1
}
]])
name
string
name of your material
type
string
shader type
key_values
string
material key values
Returns:
find
mat.find("debug/ambientcube", "Other Textures")
Returns:
for_each_material
mat.for_each_material(function(material)
print(material:get_name())
end)
callback
function
callback called for each material
override_material
mat.override_material(some_material)
Last updated