Shading - Smooth Shading

Smooth Shading

Smooth shading of a polygon displays the points in a polygon with smoothly-changing colors across the surface of the polygon. This requires you to define a separate color for each vertex of your polygon, because the smooth color change is computed by interpolating the vertex colors across the interior of the triangle with the standard kind of interpolation we saw in the graphics pipeline discussion. Computing the color for each vertex is done with the usual computation of a standard lighting model, but in order to compute the color for each vertex separately you must define a separate normal vector for each vertex of the polygon. This allows the color of the vertex to be determined by the lighting model that includes this unique normal.

Types of smooth shading include:

  • Gouraud shading
  • Phong shading

Read more about this topic:  Shading

Famous quotes containing the word smooth:

    And there’s a score of duchesses, surpassing womankind,
    Or who have found a painter to make them so for pay
    And smooth out stain and blemish with the elegance of his mind:
    I knew a phoenix in my youth, so let them have their day.
    William Butler Yeats (1865–1939)