Dear grader,

I turned it in at 5. I was ready to turn it in yesterday, but I was trying
to solve some problems with some bright dots. I finally solved the problem
and it is not my fault:

All I changed was the following:

Radiance BackgroundMap(Vector &D)

// CCC -- For extra credit, figure out something more realistic
//        to use here. (For example, a pixel map representing a background
//        or the color of the fog.) For an easy way to do it, let the user
//        provide a color of the command line.

{
  float ssum = sqrtf(D[0]*D[0]+D[1]*D[1]+D[2]*D[2]);			
  float r = fabsf (D[0]/ssum);						
  float g = fabsf (D[1]/ssum);						
  float b = fabsf (D[2]/ssum);						
  r=fmin(r,4);
  g=fmin(g,4);
  b=fmin(b,4);
  return (Radiance(r/4, g/4, b/4));					

}

I added a check that rgb would not be larger than 1. This is because sometimes
reflected rays could go in some boundary that causes a rgb larger than 1.

Thanks,

Tzer Hung Low.
