Originally the intention was to implement ReSTIR. As it turns out, given the current pipeline, using only the spatial resampling part of ReSTIR is sufficient and simple. The reduction in noise in many light scenarios is insane.
Additionally, lights used to be merged into virtual sphere lights. This caused lots of issues at the benefit of drastically reducing the number of lights. This is also gone now and every triangle acts as its own light source. The solid angles are also now correct.
There are many small things that changed. One that is worth mentioning is that fog is now in a useful state, it is not 100% accurate but given the way it fits into the pipeline, I am unsure how one would make it really accurate anyway.
Originally the intention was to implement ReSTIR. As it turns out, given the current pipeline, using only the spatial resampling part of ReSTIR is sufficient and simple. The reduction in noise in many light scenarios is insane.
Additionally, lights used to be merged into virtual sphere lights. This caused lots of issues at the benefit of drastically reducing the number of lights. This is also gone now and every triangle acts as its own light source. The solid angles are also now correct.
There are many small things that changed. One that is worth mentioning is that fog is now in a useful state, it is not 100% accurate but given the way it fits into the pipeline, I am unsure how one would make it really accurate anyway.
Closes #22 Closes #59 Closes #66