Hi All,
I dont quite understand what exactly is meant by smooth shading.
Quoting from NeHe''s tutorial #1:
quote:
The next line enables smooth shading. Smooth shading blends colors nicely across a polygon, and smoothes out lighting. I will explain smooth shading in more detail in another tutorial.
glShadeModel(GL_SMOOTH); // Enables Smooth Shading
==>Use glShadeModel to enable smooth shading.Right?
Quoting from NeHe''s tutorial #3:
quote:
In this tutorial I will teach you how to add 2 different types of coloring to the triangle and quad. Flat coloring will make the quad one solid color. Smooth coloring will blend the 3 colors specified at each point (vertex) of the triangle together, creating a nice blend of colors.
But,
a) nowhere in the tutorial has he done anything to enable Flat Shading?
b) Even if the code glShadeModel is comemnted out, the result is the same.
This makes me wonder what exactly have I overlooked because I don''t quite understand the difference between smooth shading and flat shading and of how to enable them.
"Recovering Thinker"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
"He conquers who endures."
-Persius
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!