completed BRDF calculation routine