I think the O(row * col * light_count * dist) algorithm could be optimized to run in O(row * col * light_count). The idea is, imagine the light is coming from the left, and our height map consists of a single row that…
I think the O(row * col * light_count * dist) algorithm could be optimized to run in O(row * col * light_count). The idea is, imagine the light is coming from the left, and our height map consists of a single row that…