As of May 31, 2023, we have updated our Code of Conduct.

New answers tagged

0 votes

How to pick values of ambient, diffuse, specular for Phong Lighting?

From the manual: style : (str) preset style, options are [metallic, plastic, shiny, glossy, ambient, off] ambient : (float) ...
Yves Daoust's user avatar
0 votes

With a light source at (0,2,0) and unit cube (from [-1,1]) using a given shading formula, how is the r,g,b for each surface calculated?

First of all, it is obvious that the normal vector of the upper surface is $(0,1,0)$. But you can calculate it in the following way: Given three points on a surface that are not aligned, you can ...
Thomas's user avatar
  • 829

Top 50 recent answers are included