Blender Git Loki
Git Commits -> Revision de479f5
Revision de479f5 by Brecht Van Lommel (soc-2013-dingto) December 26, 2013, 13:58 (GMT) |
Cycles Volume: implement volume absorption node. This is the transparent volume node renamed, currently it is basically the same as a scatter volume node with anisotropy 1, so it scatters light perfectly forward. This also does some tweaks to the henyey-greenstein closure code to avoid division by zero and to make eval/sample consistent in some corner cases, and some other code cleanup related to volume shaders. |
Commit Details:
Full Hash: de479f51b62ebed3800a5aa7203f1bfd70c3508a
Parent Commit: bdf527b
Lines Changed: +212, -194
2 Added Paths:
/intern/cycles/kernel/shaders/node_absorption_volume.osl (+26, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_volume_absorption.c (+61, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_volume_absorption.c (+61, -0) (View)
1 Deleted Path:
/source/blender/nodes/shader/nodes/node_shader_volume_transparent.c (+0, -61)
19 Modified Paths:
/intern/cycles/blender/blender_shader.cpp (+2, -2) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+3, -2) (Diff)
/intern/cycles/kernel/closure/volume.h (+71, -68) (Diff)
/intern/cycles/kernel/kernel_shader.h (+3, -3) (Diff)
/intern/cycles/kernel/kernel_types.h (+6, -12) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+7, -2) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+11, -23) (Diff)
/intern/cycles/kernel/shaders/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/shaders/node_scatter_volume.osl (+2, -2) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+3, -1) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+2, -4) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -1) (Diff)
/intern/cycles/render/nodes.cpp (+6, -6) (Diff)
/intern/cycles/render/nodes.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -1) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -1) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+3, -2) (Diff)
/intern/cycles/kernel/closure/volume.h (+71, -68) (Diff)
/intern/cycles/kernel/kernel_shader.h (+3, -3) (Diff)
/intern/cycles/kernel/kernel_types.h (+6, -12) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+7, -2) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+11, -23) (Diff)
/intern/cycles/kernel/shaders/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/shaders/node_scatter_volume.osl (+2, -2) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+3, -1) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+2, -4) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -1) (Diff)
/intern/cycles/render/nodes.cpp (+6, -6) (Diff)
/intern/cycles/render/nodes.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -1) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -1) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)