[Bf-blender-cvs] [2ac8832] master: Cycles: Fix Burley's CDF truncation after recent radius fix

Sergey Sharybin noreply at git.blender.org
Mon Feb 8 21:51:10 CET 2016


Commit: 2ac88328b00556dee2acdcab094162d8e3c771ae
Author: Sergey Sharybin
Date:   Mon Feb 8 21:49:59 2016 +0100
Branches: master
https://developer.blender.org/rB2ac88328b00556dee2acdcab094162d8e3c771ae

Cycles: Fix Burley's CDF truncation after recent radius fix

This is all not really ideal, but good enough for tonight.
More thoughts and investigation tomorrow!

===================================================================

M	intern/cycles/kernel/closure/bssrdf.h

===================================================================

diff --git a/intern/cycles/kernel/closure/bssrdf.h b/intern/cycles/kernel/closure/bssrdf.h
index 2e32795..21a4d58 100644
--- a/intern/cycles/kernel/closure/bssrdf.h
+++ b/intern/cycles/kernel/closure/bssrdf.h
@@ -182,7 +182,7 @@ ccl_device void bssrdf_cubic_sample(ShaderClosure *sc, float xi, float *r, float
  * effective. Might need some further tweaks.
  */
 #define BURLEY_TRUNCATE     30.0f
-#define BURLEY_TRUNCATE_CDF 0.973233f // cdf(BURLEY_TRUNCATE)
+#define BURLEY_TRUNCATE_CDF 0.999966f // cdf(BURLEY_TRUNCATE)
 
 ccl_device_inline float bssrdf_burley_fitting(float A)
 {




More information about the Bf-blender-cvs mailing list