Skip to content

Commit bac5c52

Browse files
authored
Merge pull request #121 from boris-ulyanov/gh-pages-transparency-patch
Fix "Which means" formula (tutorial-10-transparency)
2 parents 9dffddd + 217e2eb commit bac5c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intermediate-tutorials/tutorial-10-transparency/index.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ Which means :
110110
```
111111

112112
New color in framebuffer =
113-
current alpha in framebuffer * current color in framebuffer +
114-
(1 - current alpha in framebuffer) * shader's output color
113+
shader's output alpha * shader's output color +
114+
(1 - shader's output alpha) * current color in framebuffer
115115
```
116116
117117
Example from the image above, with red on top :

0 commit comments

Comments
 (0)