psychopath/src/light
Nathan Vegdahl 072d366892 Changed SurfaceLight API to return the sample point on the light.
More specifically: prior to this, SurfaceLights returned the
shadow ray direction vector to use.  That was fine, but it
kept the responsibility of generating proper offsets (to account
for floating point error) inside the lights.

Now the SurfaceLights return the world-space point on the light
to sample, along with its surface normal and error magnitude.
This allows the robust shadow ray generation code to be in one
place inside the renderer code.
2017-08-17 13:09:48 -07:00
..
distant_disk_light.rs WIP: multiple importance sampling. 2017-08-16 18:17:50 -07:00
mod.rs Changed SurfaceLight API to return the sample point on the light. 2017-08-17 13:09:48 -07:00
rectangle_light.rs Changed SurfaceLight API to return the sample point on the light. 2017-08-17 13:09:48 -07:00
sphere_light.rs Changed SurfaceLight API to return the sample point on the light. 2017-08-17 13:09:48 -07:00