feat(lights): improve lighting algorithm