diff options
Diffstat (limited to 'algorithms')
| -rw-r--r-- | algorithms/dual-alpha_blending | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/algorithms/dual-alpha_blending b/algorithms/dual-alpha_blending index 2c84f65..e7f3019 100644 --- a/algorithms/dual-alpha_blending +++ b/algorithms/dual-alpha_blending @@ -9,7 +9,7 @@ Some variable names: A_fg = the alpha channel in the foreground -The normal alpha blending algorithm is used render +The normal alpha blending algorithm is used to render a translucent object over another translucent object. The alpha blending algorithm is: @@ -36,17 +36,17 @@ variable O). The new alpha blending algorithm This algorithm works as the normal alpha blending algorithm if the opacity is used instead of alpha, -and alpha is set to 1, on the foregrund. This +and alpha is set to 1, on the foreground. This algorithm is identical to the normal alpha blending algorithm except that the opacity replaces the foreground's alpha, and the alpha is treated as any -other colour except all colour colours are still +other colour except that all colours are still premultiplied with it, since it is still an opacity. -However, since libskrift is a text drawing library, -which subpixel rendering support, the opacity is -multiply with the subpixel's value in the glyph, and -they highest subpixel's value for the alpha channel -(since it only support surfaces with per-pixel alpha -and not per-subpixel alpha). +However, since libskrift is a text drawing library +with subpixel rendering support, the opacity is +multiplied with the subpixel's value in the glyph, +and the highest subpixel's value is used for the +alpha channel (since it only supports surfaces +with per-pixel alpha and not per-subpixel alpha). |
