gfx.fog.set_light_color
Client
Sets the light color of the fog post-processing effect
Syntax
local status = gfx.fog.set_light_color(
color
)local status = gfx.fog.set_light_color(
hex
)Parameters
| Type | Name | Description |
|---|---|---|
color | color | Light color of the fog 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.fog.set_light_color({0.5, 0.6, 0.7, 1.0})gfx.fog.set_light_color("#8fa3b1")