Added lights, along with various necessary sampling functions.