Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenCiao committed Jan 24, 2024
2 parents 5017848 + c72abad commit babf2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Basics/Vanilla/Vanilla.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Joint areas are doubly colored.
We need to adjust joints' pixels opacity (alpha value) to get the target opacity of bone.
Label joint alpha $\Alpha_j$ and bone alpha $\Alpha_b$.
Since rgb values from previous and next edge are the same, we can apply alpha compositing formula:
$\Alpha_b = \Alpha_j + \Alpha_j * (1 - \Alpha_j)$, and solve and joint opacity
$\Alpha_b = \Alpha_j + \Alpha_j(1 - \Alpha_j)$, and solve and joint opacity
$$
\Alpha_j = 1 - \sqrt{1 - \Alpha_b}
$$
Expand Down

0 comments on commit babf2da

Please sign in to comment.