Cycles: add Ray Length output to Light Path node. This gives the distance travelled
[blender.git] / source / blender / nodes / shader / nodes / node_shader_light_path.c
index 5d7a3014682e83ca8b7fa682919bf19b72506603..5ebbd63a5a1449a8a17bb17e63a46dcbdf1fe262 100644 (file)
@@ -37,6 +37,7 @@ static bNodeSocketTemplate sh_node_light_path_out[]= {
        {       SOCK_FLOAT, 0, "Is Singular Ray",               0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       SOCK_FLOAT, 0, "Is Reflection Ray",             0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       SOCK_FLOAT, 0, "Is Transmission Ray",   0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
+       {       SOCK_FLOAT, 0, "Ray Length",                    0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
 };