View Full Version : Opengl shading

03-09-2013, 11:54 AM
I am learning different OpenGL shading examples. I am able to implement flat and gouraud shading. Can anyone help me with a simple example on phong shading? Thak you.

03-09-2013, 01:16 PM
Did you try to google with right keywords? There's a plenty of tutorials on the net. For example: http://www.ozone3d.net/tutorials/glsl_lighting_phong.php

03-09-2013, 05:05 PM
Does it mean that phong shading can't be implemented without GLSL i.e. just with OpenGL?

03-10-2013, 12:36 AM
Legacy OpenGL (i.e. fixed functionality) supports only two types of shading: flat and Gouraud (i.e. "smooth"). The desired shading model is set by glShadeModel() function call. For anything else (like Phong shading) you need GLSL.