# engineGetShaderGlobals (Client)

> Lists every shader global, from packs and scripts.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Materials and shaders
- **URL**: https://wiki.mymp.gg/en/engineGetShaderGlobals

## Syntax

```lua
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

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

## See also

- [engineGetShaderGlobal (Client)](https://wiki.mymp.gg/en/engineGetShaderGlobal.md): Reads a shader global's current value.
- [engineSetShaderGlobal (Client)](https://wiki.mymp.gg/en/engineSetShaderGlobal.md): Sets a shader global, a value every shader reads. A new name creates the global.
