gfx.env.set_ambient_color
Client
Sets the ambient light color of the environment
Syntax
local status = gfx.env.set_ambient_color(
color
)local status = gfx.env.set_ambient_color(
hex
)Parameters
| Type | Name | Description |
|---|---|---|
color | color | Ambient light color as {r, g, b, a} |
string | hex | Alternatively, a valid HTML hex color string (e.g. "#ffffff") |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
gfx.env.set_ambient_color({1.0, 1.0, 1.0, 1.0})gfx.env.set_ambient_color("#ffffff")