Skip to content

Class: Material

Fields

This class has no fields.

Functions

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.

Note

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