gfx.env.get_ambient_color
Client
Retrieves the current ambient light color of the environment
Syntax
local result = gfx.env.get_ambient_color()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
color | result | Ambient light color as {r, g, b, a} |
Examples
core.engine.print("info", "Ambient color:", util.table.unpack(gfx.env.get_ambient_color()))