aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--algorithms/dual-alpha_blending4
1 files 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,