Cycles: add Ray Length output to Light Path node. This gives the distance travelled
[blender.git] / intern / cycles / kernel / kernel_types.h
index bf48ec8c000e72ba6a3dcd614ba0f202594e3180..85ee16fc5c6679ec8362d4c5274c5c106c0d93ee 100644 (file)
@@ -401,6 +401,9 @@ typedef struct ShaderData {
 
        /* motion blur sample time */
        float time;
+       
+       /* length of the ray being shaded */
+       float ray_length;
 
 #ifdef __MOTION__
        /* object <-> world space transformations, cached to avoid