M MY Multiplayer: Wiki
Side
Kind

engineGetShaderGlobals

Client

Lists every shader global, from packs and scripts.

table engineGetShaderGlobals()

Returns

A table of name → { type, value, origin, owner, priority, locked }: the type (float, vec2, vec3, vec4, uint or texture), the current value, where it comes from, who set it, at which priority and whether the global is locked.

Example

for name, global in pairs(engineGetShaderGlobals()) do
    outputDebugString(name .. " (" .. global.type .. ") by " .. global.owner)
end

See also