Cycles: add Ray Length output to Light Path node. This gives the distance travelled
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 2 May 2012 17:03:46 +0000 (17:03 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 2 May 2012 17:03:46 +0000 (17:03 +0000)
commitd64661b5078cd4781bd58fce6fadedac511c4132
tree08abb98017e41cd6f7bfbd1f2ca87a2166f91eea
parent89f554fd24abb6c3986090933f771da267345b96
Cycles: add Ray Length output to Light Path node. This gives the distance travelled
by the last light ray. One use case for this might be to do absorption.

Patch #31232 by Agustin benavidez, see this blog post for details:
http://agus3d.blogspot.com.ar/2012/05/blender-cycles-ray-length-node-output.html
intern/cycles/kernel/kernel_emission.h
intern/cycles/kernel/kernel_shader.h
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/svm/svm_light_path.h
intern/cycles/kernel/svm/svm_types.h
intern/cycles/render/nodes.cpp
source/blender/nodes/shader/nodes/node_shader_light_path.c