Skip to content

IMaterial

Fields

This class has no fields.


Functions

GetName

This function has no parameters.

Return value

Name Type Description
value string Name of the material
local mat_name = material:GetName()

AlphaModulate

Name Type Description
a float Alpha color value
material:AlphaModulate(0.5)

ColorModulate

Name Type Description
r float Red color value
g float Green color value
b float Blue color value
material:ColorModulate(1.0, 1.0, 1.0)

GetAlphaModulation

This function has no parameters.

Return value

Name Type Description
a void* Alpha value of the material
local alpha = material: GetAlphaModulation

GetColorModulation

This function has no parameters.

Return value

Name Type Description
value Color Color value of the material
local col = material:GetColorModulation

IsErrorMaterial

This function has no parameters.

Return value

Name Type Description
value bool Is this material is error material
local is_broken = material:IsErrorMaterial()

SetMaterialVarFlag

Name Type Description
flag int Flag
value bool Flag's state
material.SetMaterialVarFlag(bit.blshift(1, 15), true) -- IgnoreZ

Refresh

Reload material data

This function has no parameters.

material:Refresh()