Take distance from light into consideration