M MY Multiplayer: Wiki
Side
Kind

dxSetBlendMode

Client

Chooses how the next 2D dx functions mix with what is already drawn.

bool dxSetBlendMode([string blendMode = blend])

Parameters

NameTypeDescription
blendModestringblend (normal transparency), add (additive), modulate_add or overwrite (replaces, no transparency).default blend

Returns

true.

Example

local glow = engineCreateTexture("images/glow.png")

addEventHandler("onClientRender", root, function()
    dxSetBlendMode("add")
    dxDrawImage(100, 100, 128, 128, glow)
    dxSetBlendMode("blend")
end)

See also