Skip to content

Commit

Permalink
Merge pull request #121 from boris-ulyanov/gh-pages-transparency-patch
Browse files Browse the repository at this point in the history
Fix "Which means" formula (tutorial-10-transparency)
  • Loading branch information
Calvin1602 authored Feb 19, 2024
2 parents 9dffddd + 217e2eb commit bac5c52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ Which means :
```

New color in framebuffer =
current alpha in framebuffer * current color in framebuffer +
(1 - current alpha in framebuffer) * shader's output color
shader's output alpha * shader's output color +
(1 - shader's output alpha) * current color in framebuffer
```
Example from the image above, with red on top :
Expand Down

0 comments on commit bac5c52

Please sign in to comment.