How do I calculate the diffusion lighting of two spheres at the same time?
I have two spheres I need to shade at once in c++ using phong’s reflection model. I also have two light sources. I have already calculated the ambient lighting. How would I go about calculating the diffusion lighting?
How would I calculate the diffusion lighting of two spheres
I have two spheres I need to shade at once in c++ using phong’s reflection model. I also have two light sources. I have already calculated the ambient lighting. How would I go about calculating the diffusion lighting?