PDA

View Full Version : about shading mode



zydgyy
11-28-2011, 11:46 PM
hi,can i implement the Flat Shading,Gouraud Shading,and phong Shading in opengl?It seems there just flat and smooth can be set in the glShadingMode()!!!

tksuoran
11-29-2011, 02:10 AM
Flat shade model means flat. Smooth shade model means gouraud shading (vertex colors are interpolated per pixel). Phong shading (per pixel normal interpolation and normalization), can be implemented with shaders. (And to a limited extend with legacy fixed function using dot3 texture combiner and normalization cube map.)