Skip to main content
gamedev.net
🔒 Locked

phong shading example

Started by nipon Jan 17, 2002 at 12:41 AM 2 replies 1.6k views
Original Post
nipon
nipon
hello everybody Do you have example to use phong shading by opengl? i would like to get it very much. or where i can download phong shading source code by opengl? thanks you very much
Fruny
Fruny
OpenGL only does Gouraud shading, unless you have a GeForce(3)-class graphics card and use pixel shaders. In which case, you should get NVidia''s SDK, Phong shading is bound to be in there.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
python_regious
python_regious
There is a phong shading extension. I don''t know whether the GF3 supports it or not, but I know that the GF2 doesn''t.

Death of one is a tragedy, death of a million is just a statistic.
If at first you don't succeed, redefine success.
doodah2001
doodah2001
About the extension, it was never implemented by the ARB. I asked this question in the forum before. It basically is glShadeModel(GL_PHONG) and you need to add the extension file. It didn''t work on my card or any of my friends cards. Just to let you know.
MatDoodah2001@hotmail.comLife is only as fun as you make it!!!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.