Fixes in BRDF shading model