Blender Git Loki
Git Commits -> Revision e6a84eb
Revision e6a84eb by Brecht Van Lommel (master) May 7, 2012, 20:24 (GMT) |
Cycles: add light falloff node, with quadratic/linear/constant falloff and a smoothing factor to reduce high values near the light. http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Light_Falloff Note that this was already possible to do manually with the Ray Length, but this adds a convenient node for it. This commit also makes the mapping node min/max option work, fixing #31348. |
Commit Details:
Full Hash: e6a84eb1b542e7cafe5e760530882bb806f3c433
SVN Revision: 46399
Parent Commit: f44e80e
Lines Changed: +1781, -1632
1 Added Path:
/source/blender/nodes/shader/nodes/node_shader_light_falloff.c (+68, -0) (View)
14 Modified Paths:
/intern/cycles/blender/blender_shader.cpp (+11, -0) (Diff)
/intern/cycles/kernel/svm/svm.h (+6, -0) (Diff)
/intern/cycles/kernel/svm/svm_light_path.h (+27, -0) (Diff)
/intern/cycles/kernel/svm/svm_mapping.h (+11, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+9, -1) (Diff)
/intern/cycles/render/nodes.cpp (+61, -0) (Diff)
/intern/cycles/render/nodes.h (+8, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+3, -2) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+7, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl.c (+1565, -1628) (Diff)
/source/blender/makesrna/intern/rna_nodetree_types.h (+2, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)
/intern/cycles/kernel/svm/svm.h (+6, -0) (Diff)
/intern/cycles/kernel/svm/svm_light_path.h (+27, -0) (Diff)
/intern/cycles/kernel/svm/svm_mapping.h (+11, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+9, -1) (Diff)
/intern/cycles/render/nodes.cpp (+61, -0) (Diff)
/intern/cycles/render/nodes.h (+8, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+3, -2) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+7, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl.c (+1565, -1628) (Diff)
/source/blender/makesrna/intern/rna_nodetree_types.h (+2, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)