M MY Multiplayer: Wiki
Side
Kind

engineGetMaterialShader

Client

Gives the shader a material uses.

string|false engineGetMaterialShader(material material)

Parameters

NameTypeDescription
materialmaterialThe material.

Returns

The shader's name, or false when the material has neither a base nor a shader of its own and uses the one of the material it replaces.

Example

local material = engineCreateMaterial("surface")
outputDebugString(tostring(engineGetMaterialShader(material)))

See also