Implementation of the illumination model algorithm of the ball