- 
                Notifications
    
You must be signed in to change notification settings  - Fork 37
 
BlendModes
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).
| Source1 | Source2 | Destination | 
|---|---|---|
![]()  | 
![]()  | 
![]()  | 
| Normal | Premultiplied | Additive | 
|---|---|---|
![]()  | 
![]()  | 
![]()  | 
| SoftAdditive | Multiply | 2xMultiply | 
|---|---|---|
![]()  | 
![]()  | 
![]()  | 
| HighContrast | InvertColors | Colorize | 
|---|---|---|
![]()  | 
![]()  | 
![]()  | 
| Colorize2 | Empty | Empty | 
|---|---|---|
![]()  | 
![]()  | 
![]()  | 
SrcAlpha OneMinusSrcAlpha - Using Source1

One OneMinusSrcAlpha - Using Source1

SrcAlpha One - Using Source1

OneMinusDstColor One - Using Source1

DstColor Zero - Using Source1

DstColor SrcColor - Using Source1

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

OneMinusDstColor Zero - Using Source2

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

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



