I have been working on a 2D tile game and I have implemented hard-edged lighting:
I want it to be smoothed out a bit. I don't need shadows or anything, just simple lighting. I'd like it to look more like this:
My current system uses light levels for each tile in the world and they are recalculated, when a tile is placed or removed. I'm using
batch.setColor(...) to shade the tiles. What is a good way to achieve this smooth lighting?
I don't want to use the light map overlay method, I tried that already and I was not happy with the result. I want to be able to set how much light is able to pass through a block. For examble a dirt block should absorb some of the light, but a glass block should not block any light. This was not really possible with the light map overlay method. UPDATE: I missunderstood what this method actually is. I understand now. I was thinking the wrong way. Sorry!