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

TypeNameDescription
colorresultAmbient light color as {r, g, b, a}

Examples

Print current environment ambient color
core.engine.print("info", "Ambient color:", util.table.unpack(gfx.env.get_ambient_color()))

On this page