Vital.sandbox
GFXEmissive

gfx.emissive.set_level_intensity

Client

The intensity to be set for a specific glow level of the emissive post-processing effect


Syntax

local status = gfx.emissive.set_level_intensity(idx, value)

Parameters

TypeNameDescription
intidxGlow level index to be targetted
Glow is applied in multiple passes at different scales; each level corresponds to a blur pass of increasing size
floatvalueIntensity value to be applied to the specified level
Higher values increase the contribution of that glow level to the final result

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

--Set a strong contribution on glow level 1
gfx.emissive.set_level_intensity(1, 1.0)

--Disable contribution on glow level 3
gfx.emissive.set_level_intensity(3, 0.0)

On this page