Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-02-08 16:51:57 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-02-08 16:54:11 +0300
commitdae8326d1e98632be42e525011c061d46c1d0e2a (patch)
treee987859e14a28e95c7dd74503e85732e2219d7cd /intern/cycles/kernel/closure/bssrdf.h
parent52668c56b74f75c45a6b5176704dfd168fd3e6ac (diff)
Fix T47356: Too sharp falloww with Burley BSSRDF
After the clamping commit we need to bump BURLEY_TRUNCATE constant a bit, otherwise mean free path does not really match the disk radius needed for importance sampling.
Diffstat (limited to 'intern/cycles/kernel/closure/bssrdf.h')
-rw-r--r--intern/cycles/kernel/closure/bssrdf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/closure/bssrdf.h b/intern/cycles/kernel/closure/bssrdf.h
index a53fedb930a..2e32795a781 100644
--- a/intern/cycles/kernel/closure/bssrdf.h
+++ b/intern/cycles/kernel/closure/bssrdf.h
@@ -181,7 +181,7 @@ ccl_device void bssrdf_cubic_sample(ShaderClosure *sc, float xi, float *r, float
* the mean free length, but still not too big so sampling is still
* effective. Might need some further tweaks.
*/
-#define BURLEY_TRUNCATE 10.0f
+#define BURLEY_TRUNCATE 30.0f
#define BURLEY_TRUNCATE_CDF 0.973233f // cdf(BURLEY_TRUNCATE)
ccl_device_inline float bssrdf_burley_fitting(float A)