Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: about shading mode

  1. #1
    Intern Contributor
    Join Date
    Nov 2011
    Posts
    52

    about shading mode

    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()!!!

  2. #2
    Junior Member Regular Contributor tksuoran's Avatar
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    200

    Re: about shading mode

    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.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •