gfx.env.get_ambient_source
Client
Retrieves the current ambient light source of the environment
Syntax
local result = gfx.env.get_ambient_source()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
gfx.env.ambient_source | result | Current ambient light source |
Examples
core.engine.print("info", "Ambient source:", gfx.env.get_ambient_source())