gfx.vol_fog.set_emission

Client

Sets the emission color of the volumetric fog post-processing effect


Syntax

local status = gfx.vol_fog.set_emission(
    color
)
local status = gfx.vol_fog.set_emission(
    hex
)

Parameters

TypeNameDescription
colorcolorEmission color as {r, g, b, a}
stringhexAlternatively, a valid HTML hex color string (e.g. "#ffffff")

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set a warm orange emission color using a color table
gfx.vol_fog.set_emission({1.0, 0.4, 0.1, 1.0})
Set emission color using a hex string
gfx.vol_fog.set_emission("#ff6619")

On this page