little performance improvments for vec operators in ShadingColor function