In this project one sphere was added to the scene and photons were emitted by randomly picking points on the surface of the sphere (the points were normally distributed) and then getting a random direction out of the sphere. After that we pick one wavelength and if the ray following the direction hits the sensor we repeat the same process in the last project.
In order to simulate a normal distribution on the surface of the sphere, I used the method suggested in class.
Later I used color gamma correction factor of 1.8 which was supposed to work better on a mac.