Shading

It turns out that a modification of the first approach is the one used by many systems, including OpenGL.

Consider the case where a surface is represented by one or more polygons. The surface may be flat or the polygons may be fitted together in a mesh to represent a curved surface.

We will see later how, when we draw a polygon, we can determine the pixels that the polygon's boundary maps to by only knowing the vertices of the polygon.