Negrini085 / PhotoNim

PhotoNim: a CPU raytracer with BVH optimization based on kmeans clustering
https://negrini085.github.io/PhotoNim/
GNU General Public License v3.0
4 stars 1 forks source link

Global Illumination #80

Open Negrini085 opened 4 months ago

Negrini085 commented 4 months ago

This pull request aims to enhance our path tracer by introducing a direct light sampling. The current approach is to treat lights as ObjectHandlers with a specific flag. In this way we correctly calculate if an object is in direct line with a light when traversing the Scene.tree.

The work that needs to be done:

Some resources: