First Previous Next Last Index Home

Slide 37 & 38 of 52

I won't go into the details of what is necessary to implement our shading. In comparing the phong shading formula with our shading formula, you can see that they have roughly equivalent computational complexity.

For our shading model, you just need the light vector, the surface normal and two constants, ie a cool color and a warm color.