diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-08 18:14:04 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-08 18:56:11 +0300 |
commit | 29d2ff7b31aef4fe490446e8a82fdc34021e2592 (patch) | |
tree | d78dfbd14e6b0c87fa0b909dc86a2bc77e10680b /intern/cycles/kernel/osl/osl_closures.cpp | |
parent | aabafece03fee807d6b9e5e6d40273f70cc4b9d8 (diff) |
Cycles: unify OSL BSSRDF closure into a single bssrdf() closure with method.
This is similar to the upstream unified microfacet() closure, and makes it
easier to extend in the future.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_closures.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/osl_closures.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/intern/cycles/kernel/osl/osl_closures.cpp b/intern/cycles/kernel/osl/osl_closures.cpp index 8acab1ab558..d0c357580fd 100644 --- a/intern/cycles/kernel/osl/osl_closures.cpp +++ b/intern/cycles/kernel/osl/osl_closures.cpp @@ -316,14 +316,8 @@ void OSLShader::register_closures(OSLShadingSystem *ss_) closure_bsdf_diffuse_ramp_params(), closure_bsdf_diffuse_ramp_prepare); register_closure(ss, "phong_ramp", id++, closure_bsdf_phong_ramp_params(), closure_bsdf_phong_ramp_prepare); - register_closure(ss, "bssrdf_cubic", id++, - closure_bssrdf_cubic_params(), closure_bssrdf_cubic_prepare); - register_closure(ss, "bssrdf_gaussian", id++, - closure_bssrdf_gaussian_params(), closure_bssrdf_gaussian_prepare); - register_closure(ss, "bssrdf_burley", id++, - closure_bssrdf_burley_params(), closure_bssrdf_burley_prepare); - register_closure(ss, "bssrdf_principled", id++, - closure_bssrdf_principled_params(), closure_bssrdf_principled_prepare); + register_closure(ss, "bssrdf", id++, + closure_bssrdf_params(), closure_bssrdf_prepare); register_closure(ss, "hair_reflection", id++, bsdf_hair_reflection_params(), bsdf_hair_reflection_prepare); |