Make pixel lighting like terrarium and starry

I am making a 2D sandbox like Terraria and Starbound. This is my game

game

Light fills the whole terrain, but I do not want this. I want the following:

desired lighting.

0
source share
1 answer

You are probably using Directional Lighting, which illuminates the entire terrain the same way in the direction you created it. You can use Spot Lights or Point Lights, which will illuminate only the surface that you want.

-1
source

Source: https://habr.com/ru/post/1694886/


All Articles