How to acheive a smooth 2D lighting effect?
Posted
by
Cyral
on Game Development
See other posts from Game Development
or by Cyral
Published on 2012-10-25T00:32:12Z
Indexed on
2012/10/25
11:17 UTC
Read the original article
Hit count: 265
I'm making a tile based game in XNA
So currently my lightning looks like this:
How can I get it to look like this?
Instead of each block having its own tint, it has a smooth overlay.
I'm assuming some sort of shader, and to tell it the lighting and blur it some how. But im not an expert with shaders.
My current lighting calculates the light, and then passes it to a spritebatch and draws with a color parameter
EDIT: No longer uses spritebatch tint, I was testing and now pass parameters to set the light values. But still looking for a way to smooth it
© Game Development or respective owner