Garry's Mod Wiki

MatProxyData

Description

Table structure used by matproxy.Add.

Members

string name
The name of the material proxy
function init
The function used to get variables from the ".vmt". Called once per each ".vmt".
Function argument(s):
1 table self - The table structure itself
2 string name - The material name
3 table values - The material key values
function bind
The function used to apply the proxy. This is called every frame while any materials with this proxy are used in world.
Function argument(s):
1 table self - The table structure itself.
2 string name - The material name.
3 Entity ent - The entity the material instance is applied to, if any.