Implemented direct light sampling.