preparing shadows for point and spot lights