pub fn generate_light_subpath<'a>(
    scene: &'a Scene,
    sampler: &mut Sampler,
    max_depth: u32,
    time: Float,
    light_distr: Arc<Distribution1D>,
    path: &mut Vec<Vertex<'a>>
) -> usize