Skip to content

BlendModes

Johannes Deml edited this page Feb 18, 2019 · 10 revisions

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

Source Destination
Source Texture Destination Texture

Most common Blend Modes

Mode Result
Normal SrcAlpha OneMinusSrcAlpha Destination Texture
PremultipliedAlpha- One OneMinusSrcAlpha Destination Texture
Additive One One Destination Texture
SoftAdditive OneMinusDistColor One Destination Texture
Multiplicative DistColor Zero Destination Texture
2xMultiplicative DistColor SrcColor Destination Texture

Further Links

Clone this wiki locally