three-gpu-pathtracer
three-gpu-pathtracer copied to clipboard
Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
Currently just using a hemisphere model
- https://www.pbr-book.org/3ed-2018/Monte_Carlo_Integration/Russian_Roulette_and_Splitting - https://computergraphics.stackexchange.com/questions/2316/is-russian-roulette-really-the-answer - http://graphics.stanford.edu/courses/cs348b-16-spring-content/lectures/14_path/14_path_slides.pdf
ie this transparent red orb is emitting light but in the transparent bits it does not look like it. The emission should contribute at least SOME opacity to the final...
To avoid oversampling across screen diagonal (similar to postprocessing package)
Related to #48 If gradients are going to be supported / used for backgrounds / environments it would simplify things to just support them via a texture rather than interpolated...
- Provide 2 BVH -- a "from" and "to" BVH - Provide a special traversal function that samples both with interpolation between the two - When path tracing randomly select...
Related to #123, #139
When no transmissive surfaces are present there's no reason to traverse all surfaces so any hit can be used, for example.