gkjohnson / three-gpu-pathtracer

Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/index.html
MIT License
1.32k stars 132 forks source link

Spotlights: Spotlights do no reflect off mirrors #247

Open gkjohnson opened 2 years ago

gkjohnson commented 2 years ago

Related to #244

Spotlights are currently disabled for non-MIS rendering because with the current implementation the visual result does not match the MIS code path. This means that the spot lights do not bounce from reflections. See the following resources on how to adjust the PDF and implement punctual light sampling:

gkjohnson commented 1 year ago

Its possible that more bidirectional path tracing capabilities are needed: https://www.pbr-book.org/3ed-2018/Light_Transport_III_Bidirectional_Methods/Bidirectional_Path_Tracing