sporadic-labs / the-atomic-incident

A work in progress game about light and shadows.
6 stars 2 forks source link

Borked Lighting System on Rougelike Map #38

Open mikewesthad opened 7 years ago

mikewesthad commented 7 years ago

There's something wrong about how we are approaching lighting. I don't know if this is an issue we have always had or something new introduced by some of the more recent lighting system updates (or, more likely, a combination of the two).

Current algorithm:

Problems:

image

mikewesthad commented 7 years ago

https://github.com/byronknoll/visibility-polygon-js http://www.redblobgames.com/articles/visibility/

mikewesthad commented 7 years ago

For posterity: http://archive.gamedev.net/archive/reference/programming/features/2dsoftshadow/index.html