Encoding blend weights:
I(x,y) = (
a
R,
a
G,
a
B,
a
)
color at p =
Implement this in two steps:
1.
accumulate:
add up the (
a
pre
multiplied)
RGB
a
values at each pixel
2.
normalize:
divide each pixel’s accumulated RGB by its
a
value
Q:
what if
a
= 0?
Alpha Blending
Optional:
see Blinn (CGA, 1994) for details:
http://ieeexplore.ieee.org/iel1/38/7531/00310740.pdf?isNumb
er=7531&prod=JNL&arnumber=310740&arSt=83&ared=87&a
rAuthor=Blinn%2C+J.F
.
I
1
I
2
I
3
p