M MY Multiplayer: Wiki
Side
Kind

engineGetMaterialParameters

Client

Lists the parameters of the shader a material uses.

table engineGetMaterialParameters(material material)

Parameters

NameTypeDescription
materialmaterialThe 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)
end
NoteA material with no shader (no base and no shader of its own) is an error.

See also