Blender Git Loki
Git Commits -> Revision 23c2768
Revision 23c2768 by Lukas Stockner (master) June 23, 2016, 20:57 (GMT) |
Cycles: Add multi-scattering, energy-conserving GGX as an option to the Glossy, Anisotropic and Glass BSDFs This commit adds a new distribution to the Glossy, Anisotropic and Glass BSDFs that implements the multiple-scattering microfacet model described in the paper "Multiple-Scattering Microfacet BSDFs with the Smith Model". Essentially, the improvement is that unlike classical GGX, which only models single scattering and assumes the contribution of multiple bounces to be zero, this new model performs a random walk on the microsurface until the ray leaves it again, which ensures perfect energy conservation. In practise, this means that the "darkening problem" - GGX materials becoming darker with increasing roughness - is solved in a physically correct and efficient way. The downside of this model is that it has no (known) analytic expression for evalation. However, it can be evaluated stochastically, and although the correct PDF isn't known either, the properties of MIS and the balance heuristic guarantee an unbiased result at the cost of slightly higher noise. Reviewers: dingto, #cycles, brecht Reviewed By: dingto, #cycles, brecht Subscribers: bliblubli, ace_dragon, gregzaal, brecht, harvester, dingto, marcog, swerner, jtheninja, Blendify, nutel Differential Revision: https://developer.blender.org/D2002 |
Commit Details:
Full Hash: 23c276832b1bb43712756c0ea3af954557ab05e7
Parent Commit: 2af4c80
Lines Changed: +1045, -56
2 Added Paths:
/intern/cycles/kernel/closure/bsdf_microfacet_multi.h (+472, -0) (View)
/intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h (+220, -0) (View)
/intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h (+220, -0) (View)
27 Modified Paths:
/intern/cycles/blender/blender_shader.cpp (+9, -0) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+27, -2) (Diff)
/intern/cycles/kernel/closure/bsdf_util.h (+1, -3) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/kernel_bake.h (+10, -5) (Diff)
/intern/cycles/kernel/kernel_emission.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_path.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_shader.h (+12, -5) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+34, -28) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+130, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+6, -0) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+7, -1) (Diff)
/intern/cycles/kernel/shaders/node_anisotropic_bsdf.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/node_glass_bsdf.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/node_glossy_bsdf.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+3, -0) (Diff)
/intern/cycles/kernel/split/kernel_shader_eval.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+46, -1) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+3, -0) (Diff)
/intern/cycles/render/nodes.cpp (+11, -1) (Diff)
/intern/cycles/util/util_math.h (+14, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+21, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+27, -2) (Diff)
/intern/cycles/kernel/closure/bsdf_util.h (+1, -3) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/kernel_bake.h (+10, -5) (Diff)
/intern/cycles/kernel/kernel_emission.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_path.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_shader.h (+12, -5) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+34, -28) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+130, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+6, -0) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+7, -1) (Diff)
/intern/cycles/kernel/shaders/node_anisotropic_bsdf.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/node_glass_bsdf.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/node_glossy_bsdf.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+3, -0) (Diff)
/intern/cycles/kernel/split/kernel_shader_eval.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+46, -1) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+3, -0) (Diff)
/intern/cycles/render/nodes.cpp (+11, -1) (Diff)
/intern/cycles/util/util_math.h (+14, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+21, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)