A SERVICE OF

logo

Setting Attributes
23
This pattern continues, as shown in Figure 2-2.
Figure 2-2 Sequential Specication of Attributes Per Primitive
Indexing Attributes
Another option is to index the attribute values so that primitives can access any attribute
value and more than one primitive can use the same attribute value, as shown in
Figure 2-3.
Array of
csGeoSet primitives
primitives
primitives
primitives
primitives
primitives
.
.
.
Array of
color values
color value1
color value2
color value3
color value4
color value5
color value6
color value7
color value8
.
.
.
Array of
normal values
normal value1
normal value2
normal value3
normal value4
normal value5
normal value6
.
.
.
Array of
attributes
attribute 1 color
attribute 1 normal
attribute 1 coord
attribute 1 tex coord
attribute 2 color
attribute 2 normal
attribute 2 coord
attribute 2 tex coord
.
.
.