Pass:setBlendMode

Sets the blend mode. When a pixel is drawn, the blend mode controls how it is mixed with the color and alpha of the pixel underneath it.

Pass:setBlendMode(blend, alphaBlend)

Arguments

NameTypeDescription
blendBlendMode The blend mode.
alphaBlendBlendAlphaMode The alpha blend mode, used to control premultiplied alpha.

Returns

Nothing

Notes

The default blend mode is alpha with the alphamultiply alpha mode.

See also