Skip to content

material

find( string name, string material_name )

Return IMaterial

create( string name, string data, bool flat )

Return IMaterial

local mat_data = [[
    {
        "$basetexture" "vgui/white_additive"
        "$nocull" "1"
        "$nofog" "1"
        "$model" "1"
        "$nocull" "0"
        "$phong" "1"
        "$phongboost" "0"
        "$basemapalphaphongmask" "1"
        "$pearlescent" "6"
    }
]]
material.create("ts",mat_data,false)

setvalue( string material_name, string var_name, string value )