| OCR Text |
Show VERTEX = RECORD point : vector; normal : vector; next : vertexptr; END; POLYGON= RECORD surface : attributesptr; vertices : vertexptr; next : polygonptr; END; Figure 3: Representation of a Polygonal Object 2.1.3 Representation of Surface Attributes g The surface attributes for an object include color values, shading parameters, and texture features. The color value represents the red, green, and blue corn-ponents of the colors on a raster display and are ignored if the the object has a color texture map. The reflection and refraction values specify the percentage of light that is reflected from the object or transmitted through the object. The index contains the specific index of refraction for the object. An object also has a pointer to several texture maps: color variation, normal perturbation, or surface displacement. If any of these pointers are nil then no such texture map exists for the object. Surface attributes are stored in the data structure shown in Figure 4. |