BlendModes - supyrb/ConfigurableShaders GitHub Wiki
When taking about blending there is always a mode for the Source and Destination pixel. Source is the data from the shader, Destination is the value in the color buffer (the data that is already written in the image).
Input
| Source1 | Source2 | Destination |
|---|---|---|
![]() |
![]() |
![]() |
Common Blend Modes
| Normal | Premultiplied | Additive |
|---|---|---|
![]() |
![]() |
![]() |
| SoftAdditive | Multiply | 2xMultiply |
|---|---|---|
![]() |
![]() |
![]() |
| HighContrast | InvertColors | Colorize |
|---|---|---|
![]() |
![]() |
![]() |
| Colorize2 | Empty | Empty |
|---|---|---|
![]() |
![]() |
![]() |
Normal
SrcAlpha OneMinusSrcAlpha - Using Source1

PremultipliedAlpha
One OneMinusSrcAlpha - Using Source1

Additive
SrcAlpha One - Using Source1

SoftAdditive
OneMinusDstColor One - Using Source1

Multiply
DstColor Zero - Using Source1

2xMultiply
DstColor SrcColor - Using Source1

HighContrast
DstColor DstColor - Using Source2, control brightness through Image(script) color

InvertColors
OneMinusDstColor Zero - Using Source2

Colorize
DstColor Zero - Using Source2, control color through Image(script) color

Colorize2
OneMinusDstColor One - Using Source2, control color through Image(script) color
Use
Alpha controls Brightnessto blend the effect through the alpha value



