ðŸŠķ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:

material object

find

mat.find("debug/ambientcube", "Other Textures")

name

string

material name

texture_group

string

Returns:

material object

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)

material

material to override to

Last updated