Customizing Box2D Lights

I’ve just got Box2D Lights up and running and I can’t quite get it to where I wanted it. Here (http://imgur.com/XaoWwLY,5HMtFT7#0) is the prototype I have for now. What I want is something closer to this (http://imgur.com/XaoWwLY,5HMtFT7#1) so that the individual tiles are fully visible when the player is supposed to be able to see them.

My first thought was to avoid rendering the solid tiles until after rendering the lights, but I clearly still want the the solid tiles that are in the shadow to be visible, so I’d have to first create a list of only the solid tiles being struck by rays and I don’t see an easy way of doing that. And it still wouldn’t be a perfect solution because those tiles wouldn’t have the baseline level of light and shadow they should have based simply on distance from the player.

My main objective is to allow the visible tiles to be seen fully, without being able to see behind them.

You could test if any corner of tile is visible and only render tile then.