engineGetMaterialSwitches
Client
Lists the static switches of a material's shader, with the value each one has in it.
table engineGetMaterialSwitches(material material)
Parameters
| Name | Type | Description |
|---|---|---|
| material | material | The material. |
Returns
A table of switch name → true or false, plus textures, a hex string with one bit per shader texture that has an image. Empty when the material has no shader.
Example
local material = engineCreateMaterial("surface")
for name, value in pairs(engineGetMaterialSwitches(material)) do
outputDebugString(name .. " = " .. tostring(value))
end