I am trying to implement soft shadows in my raytracer. To do this, I plan to shoot multiple rays of shadow from the intersection point to the light source of the area. I am trying to use a spherical region of light - this means that I need to create random points on the sphere for the direction vector of my ray (recall that the ray is given with the beginning and direction).
I was looking for ways to create an even distribution of random points on a sphere, but they seem a little more complicated than what I'm looking for. Does anyone know of any methods for creating these points on a sphere? I believe that the light source of the sphere sphere will simply be determined by its XYZ world coordinates, RGB color value and r-radius.
Thank you and I appreciate the help!
user1257724
source share