03/18/2003
15-462 Graphics I
7
Antialiasing with Multiple Polygons
•
Initially, background color
C
0
,
a
0
= 0
•
Render first polygon; color C
1
fraction
a
1
–
C
d
= (1 –
a
1
)
C
0
+
a
1
C
1
–
a
d
=
a
1
•
Render second polygon; assume fraction
a
2
•
If no overlap (a), then
–
C’
d
= (1 –
a
2
)
C
d
+
a
2
C
2
–
a
’
d
=
a
1
+
a
2