Garry's Mod Wiki


  matproxy.Init( string name, string uname, IMaterial mat, table values )


This is used internally - although you're able to use it you probably shouldn't.

Called by the engine from OnBind. Calls init method of the Lua material proxy.


1 string name
Name of the material proxy.
2 string uname
Name for the active material proxy instance.
3 IMaterial mat
Material the material proxy is applied to.
4 table values
.vmt shader parameters of the material.