Compute colors for diffuse and perfect specular materials.