Implementation of the irradiance environment map algorithm