engineGetMaterialParameters
Client
Lists the parameters of the shader a material uses.
table engineGetMaterialParameters(material material)
Parameters
| Name | Type | Description |
|---|---|---|
| material | material | The material. |
Returns
The same table engineGetShaderParameters gives for that shader.
Example
local material = engineCreateMaterial("surface")
for name, parameter in pairs(engineGetMaterialParameters(material)) do
outputDebugString(name .. ": " .. parameter.type)
endNoteA material with no shader (no base and no shader of its own) is an error.