Code refactor: store RGB BSSRDF in a single closure.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 26 Jan 2018 13:09:55 +0000 (14:09 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 26 Jan 2018 17:47:21 +0000 (18:47 +0100)
commitce4915cddb08860f06ccc6a8ce7a7118441674ec
treee23ea9079bfb003875d70094da32ae4f973fd8da
parent47a3bbcc34185684813ba21d808f124c584a93ae
Code refactor: store RGB BSSRDF in a single closure.

Previously we stored each color channel in a single closure, which was
convenient for sampling a closure and channel together. But this doesn't
work so well for algorithms where we want to render multiple color
channels together.
intern/cycles/kernel/closure/bssrdf.h
intern/cycles/kernel/kernel_path_branched.h
intern/cycles/kernel/kernel_subsurface.h
intern/cycles/kernel/osl/osl_bssrdf.cpp
intern/cycles/kernel/split/kernel_subsurface_scatter.h
intern/cycles/kernel/svm/svm_closure.h