From 5cca7f15b42dc4df01c9199e9e64770e599d36ef Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 1 May 2020 21:52:52 +0200 Subject: m fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- algorithms/dual-alpha_blending | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algorithms/dual-alpha_blending b/algorithms/dual-alpha_blending index ef16f3e..8312abc 100644 --- a/algorithms/dual-alpha_blending +++ b/algorithms/dual-alpha_blending @@ -30,9 +30,9 @@ the background object): opacity (we will call this variable O). The new alpha blending algorithm (“dual-alpha blending”) is: - C_out⋅A_out = C_bg⋅A_bg⋅O⋅(1 − A_fg⋅O) + C_fg⋅A_fg⋅O + C_out⋅A_out = C_bg⋅A_bg⋅(1 − O) + C_fg⋅A_fg⋅O - A_out = A_bg⋅O⋅(1 − A_fg⋅O) + A_fg⋅O + A_out = A_bg⋅(1 − O) + A_fg⋅O This algorithm works as the normal alpha blending algorithm if the opacity is used instead of alpha, -- cgit v1.2.3-70-g09d2