Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Consider the following simplified line of code and the corresponding evaluation:

Code Block
Ci = Kd * diffuse() + Ks * specular();


Image Modified



Code Block
Ci = Kd * diffuse() + Ks * specular();




Image Added


To store the specular and diffuse components, along with weights, into the specular_aov and diffuse_aov output variables the code has to be changed in the following manner:

...