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:

    The island dreams under the dawn
    And great boughs drop tranquillity;
    The peahens dance on a smooth lawn,
    A parrot sways upon a tree,
    Raging at his own image in the enamelled sea.
    William Butler Yeats (1865–1939)