Vital.sandbox
GFXFog

gfx.fog.get_light_color

Client

Retrieves the current light color of the fog post-processing effect


Syntax

local color = gfx.fog.get_light_color()

Parameters

TypeNameDescription

Returns

TypeNameDescription
colorcolorLight color of the fog as {r, g, b, a}

Examples

Print current fog light color
local color = gfx.fog.get_light_color()

engine.print("info", "Fog light color:", color[1], color[2], color[3], color[4])

On this page