PDA

View Full Version : phong shading



presoftdev
10-05-2005, 08:23 AM
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!

10-06-2005, 12:04 AM
have a look at nvidias CG

marco_dup1
10-06-2005, 01:14 PM
Originally posted by presoftdev:
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!Take a look at the books The OpenGL Shading Language and Real-Time Rendering.