Blending
Blends source pixel with destination pixel
Each color component (R, G, B, A) computed separately
- R’ = RsSr + RdDr
- R’ => new pixel R component
- Rs => R of source [0,1]
- Rd => R of destination [0,1]
- Sr => Sr blending factor of source [0,1]
- Dr => Dr blending factor of destination [0,1]
- Final value is clamped to [0,1]
- 2 mults, 1 add for each component, 8 mults, 4 adds total