[f8] Line of site, raycasting and realistic visability

I’ve made another attempt. This one shoots out lines in multiple directions and then draws in the shadow from the points where each of the lines impacts an obsticle. Now, the more lines it uses, the more accurate the shadow will be. However, at the same time, the more lines it uses, the slower the whole thing goes.

What I see when I run it with, like, 150 or 200 lines, Theres so many lines that are not important. The only important lines are the ones that go from corners of objects to the charecter.

Attached are four test runs at four different numbers of lines, 16, 32, 64 & 128 (they dont have to be powers of 2, I’m just keeping them organized)

Any suggestions?