In this assignment, we use a spherical light source to emit rays with random direction to the sensor. The random is done by selecting 2 angles of the spherical coordinate. Photons that fall inside the sensor board will also have a uniform-random generated wavelength. Then the rest of program just behaves like homework 2. Below are the result images, they are all bright at the center and faded out farther away.







