Vital.sandbox
GFXEmissive

gfx.emissive.set_hdr_luminance_cap

Client

The HDR luminance cap to be set for the emissive post-processing effect


Syntax

local status = gfx.emissive.set_hdr_luminance_cap(value)

Parameters

TypeNameDescription
floatvalueHDR luminance cap value to be applied
Sets the maximum luminance value that any pixel can contribute to the glow effect, preventing excessively bright pixels from producing an overpowering or blown-out glow

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

--Cap luminance to prevent blown-out glow
gfx.emissive.set_hdr_luminance_cap(8.0)

On this page