Table of Contents

Enum BlendMode

Namespace
Xui.GPU.Software
Assembly
Xui.Runtime.Software.dll

Defines blend modes for color blending operations.

public enum BlendMode

Fields

Add = 1

Additive blending - colors are added together. result = src.rgb + dst.rgb

Alpha = 0

Standard alpha blending (source over destination). result = src.rgb * src.a + dst.rgb * (1 - src.a)

Multiply = 2

Multiplicative blending - colors are multiplied. result = src.rgb * dst.rgb

Overlay = 4

Overlay blending - combination of multiply and screen. Darkens dark colors, lightens light colors.

Replace = 5

Replace mode - source completely replaces destination. result = src.rgb

Screen = 3

Screen blending - inverted multiplicative. result = 1 - (1 - src.rgb) * (1 - dst.rgb)