Fix random walk SSS issues with different base and subsurface color.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 12 Feb 2018 20:08:59 +0000 (21:08 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 12 Feb 2018 20:08:59 +0000 (21:08 +0100)
commitfc99eed5be3f34fca8633b780d3637c2e45a9891
treed4e41428d3c3b7c7cd4ec1d9f518f3e75717c8ca
parentb37dff923919623b1ea6dc66f9fe6dfcf8639a45
Fix random walk SSS issues with different base and subsurface color.

Burley SSS uses a bit of strange thing where the albedo and closure weight are
different, which makes the subsurface color act a bit like a subsurface radius
indirectly by the way the Burley SSS profile works.

This can't work for random walk SSS though, and it's not clear to me that this
is actually a good idea since it's really the subsurface radius that is supposed
to control this. For now I'll leave Burley SSS working the same to not break
backwards compatibility.
intern/cycles/kernel/shaders/node_principled_bsdf.osl
intern/cycles/kernel/svm/svm_closure.h