OK, I solved it. I instead implemented the optimization algorithm found here:
http://en.wikipedia...._line_algorithm
I realized that I wasn't following the rules of the first basic algorithm. The second algorithm on that site takes care of that.
The lighting looks awesome now!
I have no idea how it works, but I will be sure to make sense of it later on...
Thanks everyone : D
How to get the number of solid tiles between two points?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement