Vital.sandbox
GFXEmissive

gfx.emissive.set_blend_mode

Client

The blend mode to be set for the emissive post-processing effect


Syntax

local status = gfx.emissive.set_blend_mode(value)

Parameters

TypeNameDescription
intvalueBlend mode to be applied. Determines how the glow result is composited over the scene:
0 - Additive, glow is added on top of the scene, brightening emissive areas
1 - Screen, glow is blended using a screen operation, producing a softer brightening effect
2 - Softlight, glow is blended using a soft light operation for a subtle, natural-looking result
3 - Replace, glow completely replaces the scene in affected areas
4 - Mix, glow is blended with the scene based on the mix value

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

--Set additive blend mode
gfx.emissive.set_blend_mode(0)

--Set mix blend mode
gfx.emissive.set_blend_mode(4)

On this page