compute vertex colors by lighting model