Implementing global illumination using spherical harmonics lighting