Comment by black_knight

1 day ago

Not only. There is an inherent aliasing effect with this method which is very apparent when the light is close to the wall.

I implemented a similar algorithm myself, and had the same issue. I did find a solution without that particular aliasing, but with its own tradeoffs. So, I guess I should write it up some time as a blog post.