Computer Graphics20815 marksPhong shading algorithm and procedure
Write procedure to render the polygon surface by using Phong shading model.
Write procedure to render the polygon surface by using Phong shading model. [5]
Phong shading is an interpolation-based shading technique that calculates surface color at each pixel by interpolating normal vectors across the polygon surface and applying the Phong illumination model at each point. - Compute the surface normal at each vertex of the polygon - For a polygon with...