Util function
Some fixes to Phong illumination