OpenGL draws a polygon by filling pixels within the polygon's outline
A color must be computed for each pixel
By default, the color is interpolated between colors of the vertices
glShadeModel() can change this:
glShadeModel(GL_SMOOTH) for default mode
glShadeModel(GL_FLAT) to use a constant color
| glShadeModel(GL_SMOOTH) | glShadeModel(GL_FLAT) |
|---|---|
![]() | ![]() |