Skip to content

Class: Material


This class has no fields.


string GetName() Returns material path.

string GetTextureGroupName() Returns group the material is part of.

AlphaModulate(integer:alpha) Modulate transparency of material. 0-1, increments by .1

ColorModulate(integer:red, integer:green, integer:blue) Modulate color of material.

SetMaterialVarFlag(string:flag, object:set) Change material var flag.

SetShaderParam(string:name, object:value) Modulate color of material.


You can view the List of Shader Parameters inside the Valve Wiki.