material_t
Info
in all examples below mat is an instance of material_t
Functions#
get_name#
gets the material name
Example
get_texture_group_name#
gets the material group name
Example
alpha_modulate#
modulates the current materials alpha property
Example
color_modulate#
modulates the current materials color property
Example
get_flag#
checks whether this material has the flag active
Example
set_flag#
activates the flag for the material
Example
get_address#
gets raw address of material pointer
set_shader_param#
sets shader param to either an int, string, float or vec3_t
get_shader_param#
returns shader param as either an int, string, float or vec3_t