
2.6 Vertex Attributes 107
Table 2.3 Selected color for a continuous image index when nearest-neighbor filtering is used.
Mirrored
i Interval Clamp Clamp to Edge Clamp to Border Repeat Repeat
(−3/2, −1/2) C
0
C
0
BC
N−1
C
0
[−1/2, 0) C
0
C
0
C
0
C
0
C
0
Table 2.4 Selected color for a continuous image index when linear filtering is used. The pairs
of colors are those used in the linear interpolation. The weig hts applied to these
depends on where in the interval i occurs.
Mirrored
i Interval Clamp Clamp to Edge Clamp to Border Repeat Repeat
(−2, −1] B, C
0
C
0
, C
0
B, BC
N−2
, C
N−1
C
1
, C
0
(−1, 0) B, C
0
C
0
, C
0
B, C
0
C
N−1
, C
0
C
0
, C
0
the behavior when linear filtering is used. Notice the