mat:GetName():stringMaterial name string.
A material — name, flags, shader params, color.
mat:GetName():stringMaterial name string.
mat:IsErrorMaterial():booleanWhether the material failed to load.
mat:SetMaterialVarFlag(flag:number, on:boolean)Set a material variable flag.
mat:GetMaterialVarFlag(flag:number):booleanRead a material variable flag.
mat:SetShaderParam(name:string, value:any):booleanSet a shader parameter; numbers, strings and Vector3 accepted; false when the param is missing.
mat:SetShaderParamInt(name:string, value:number):booleanSet an integer shader parameter; false when missing.
mat:SetShaderParamFloat(name:string, value:number):booleanSet a float shader parameter; false when missing.
mat:SetShaderParamString(name:string, value:string):booleanSet a string shader parameter; false when missing.
mat:SetColorModulation(r:number, g:number, b:number)Tint the material's color.
mat:GetColorModulation():Vector3Current color modulation vector.
mat:SetAlphaModulation(a:number)Set the material's alpha.
mat:GetAlphaModulation():numberCurrent alpha of the material.
mat:IsTranslucent():booleanWhether the material is translucent.
mat:IsAlphaTested():booleanWhether the material uses alpha testing.
mat:IsVertexLit():booleanWhether the material is vertex lit.
mat:IsTwoSided():booleanWhether the material renders on both sides.