phong shading

hi everyone,

i want to use phong shading on a sphere. i’ve been looking around and all i see are formulas…now i need a guide how can i apply these formulas to shade a sphere using phong???

i will really appreciate any help!

have a look at nvidias CG

Originally posted by presoftdev:
[b]hi everyone,

i want to use phong shading on a sphere. i’ve been looking around and all i see are formulas…now i need a guide how can i apply these formulas to shade a sphere using phong???

i will really appreciate any help![/b]
Take a look at the books The OpenGL Shading Language and Real-Time Rendering.