diff options
author | Carlo Andreacchio <carlorules@gmail.com> | 2014-04-21 16:20:29 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-21 16:44:36 +0400 |
commit | 7765b73f6d2002b074b7e78985171ef035075fbb (patch) | |
tree | ea3bff55c5c71ba4800bb11b044f403928dd3a6d /intern/cycles/kernel/svm/svm_light_path.h | |
parent | f8cd3d974dafe1482c49a87a2ede68d9defe7ef9 (diff) |
Cycles: add Transparent Depth output to Light Path node.
This can for example be useful if you want to manually terminate the path at
some point and use a color other than black.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D454
Diffstat (limited to 'intern/cycles/kernel/svm/svm_light_path.h')
-rw-r--r-- | intern/cycles/kernel/svm/svm_light_path.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/svm/svm_light_path.h b/intern/cycles/kernel/svm/svm_light_path.h index 8968146c5e2..da544c63ae0 100644 --- a/intern/cycles/kernel/svm/svm_light_path.h +++ b/intern/cycles/kernel/svm/svm_light_path.h @@ -34,6 +34,7 @@ ccl_device void svm_node_light_path(ShaderData *sd, float *stack, uint type, uin case NODE_LP_backfacing: info = (sd->flag & SD_BACKFACING)? 1.0f: 0.0f; break; case NODE_LP_ray_length: info = sd->ray_length; break; case NODE_LP_ray_depth: info = (float)sd->ray_depth; break; + case NODE_LP_ray_transparent: info = sd->transparent_depth; break; } stack_store_float(stack, out_offset, info); |