Better and faster lighting algorithm