Versions Compared

Key

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

...

Code Block
closure diffuse_aov = Kd * diffuse();
closure specular_aov = Ks * specular();
Ci  = passthrough("diffuse_aov", diffuse_aov) +
	passthrough("specular_aov", specular_aov);
Image Modified
Info

Note that AOVs can be output in any node of the OSL tree.  If two different OSL nodes contribute to the specular_aov variable 3Delight will correctly blend their contribution together in the final output and in the AOV.

...