Make pixel lighting like terraria and starbound

1.7k views Asked by At

I'm making a 2D sandbox game like "Terraria" and "Starbound". This is my game

game

The light is filling the whole terrain but i don't want it. I want following:

desired lighting.

1

There are 1 answers

4
Yuri Galiza On BEST ANSWER

You're probably using Directional Lighting, which illuminates the whole terrain equally in the direction you made it. You could use Spot Lights or Point Lights, which will illuminate only the surface you want to.

Edit: although using this method, this could take way more resources due to the number of single lights placed throughout the map.