dxSetBlendMode
Client
Chooses how the next 2D dx functions mix with what is already drawn.
bool dxSetBlendMode([string blendMode = blend])
Parameters
| Name | Type | Description |
|---|---|---|
| blendMode | string | blend (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)