Blending
Jaanus Jaggo
1
Blending Jaanus Jaggo 1 The Roadmap This week 2 This lecture - - PowerPoint PPT Presentation
Blending Jaanus Jaggo 1 The Roadmap This week 2 This lecture How to determine which pixel is visible? How to represent transparency? How to draw semitransparent pixel? 3 Back to projections What does the projection matrix do?
1
This week
2
3
4
5
6
7
Finally we multiply it with the max value and round it to an integer.
8
9
But this is a linear representation:
10
11
12
Example: https://www.youtube.com/watch?v=XjHt-4Z6PwI&t=1m04s
13
14
15
16
17
https://www.youtube.com/watch?v=-IFxjKT7MXA
18
19
20
21
22
23
24
25
26
https://www.shadertoy.com/view/MdfGRX
27
28
Generalized formula: Conventional alpha blending:
29
Generalized formula: Conventional alpha blending:
30
Generalized formula: Conventional alpha blending:
31
Generalized formula: Conventional alpha blending:
32
33
34
35
Video recommendation for game designers: https://www.youtube.com/watch?v=AJdEqssNZ-U
36
37
38