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.28k stars 125 forks source link

Re-add support for Area Lights to non-MIS path #473

Closed gkjohnson closed 6 months ago

gkjohnson commented 6 months ago

After #470 removed hitting lights in the trace scene function - area lights no longer work without MIS. Instead we should be accumulating all light contributions on a direct path only we are not running the first ray camera from the camera.