Compute vertex colors for ambient occlusion.