update uniform hemisphere/cone sampling code