engineGetMaterialShader
Client
Gives the shader a material uses.
string|false engineGetMaterialShader(material material)
Parameters
| Name | Type | Description |
|---|---|---|
| material | material | The 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)))