News for hackers. Stuff that matters.
Re:How to create 2D visibility/shadow effects for your game by liabru on Tuesday March 11, 2014 @07:12PM (#7382847)
Nice example, but ray casting like this is overkill for this effect and with a low number of rays it's pretty inaccurate.

I prefer using the technique shown in this classic article on 2D soft shadows: http://archive.gamedev.net/archive/reference/programming/fea...

The basic idea is to project the geometry, rather than ray cast. I've implemented this sort of technique in the past and it works well.

There are no comments on this comment yet.