Changed lighting distance function and blur constant