PDA

View Full Version : Phongs shading



Pratap
06-26-2008, 02:11 AM
hey ppl plz help in interpolating normals all over each and every triangle of the mesh of the surface ...so that I can write a function to implement phongs shading model.

Nicolai de Haan
06-26-2008, 03:53 AM
Hiya.
Maybe this article helps (GLSL):
http://www.lighthouse3d.com/opengl/glsl/index.php?dirlightpix

Otherwise look at (CG):
http://http.developer.nvidia.com/CgTutorial/cg_tutorial_chapter05.html