Code cleanup: make L_transparent part of PathRadiance.
[blender-staging.git] / intern / cycles / kernel / kernel_accumulate.h
index dce5004ae87e39ae06f8fab25ae377e721690362..82d3c153bf5e0cc97267ec1146bfc6a1b527333e 100644 (file)
@@ -208,6 +208,7 @@ ccl_device_inline void path_radiance_init(PathRadiance *L, int use_light_pass)
                L->path_subsurface = make_float3(0.0f, 0.0f, 0.0f);
                L->path_scatter = make_float3(0.0f, 0.0f, 0.0f);
 
+               L->transparent = 0.0f;
                L->emission = make_float3(0.0f, 0.0f, 0.0f);
                L->background = make_float3(0.0f, 0.0f, 0.0f);
                L->ao = make_float3(0.0f, 0.0f, 0.0f);
@@ -217,6 +218,7 @@ ccl_device_inline void path_radiance_init(PathRadiance *L, int use_light_pass)
        else
 #endif
        {
+               L->transparent = 0.0f;
                L->emission = make_float3(0.0f, 0.0f, 0.0f);
        }