update flat shading