Prepared code for Cook-Torrance BRDF.