compute shading in camera space