I have a problem with creating lighting effects in my 2D game. I tried to test lighting and in the editor viewport it seems to be working. You can see this in the picture below.
However, when I start the game. it’s completely dark.
I use the DefaultLitSpriteMaterial material for my sprite default material and as spriteactor material I also use normal map (but it doesn’t seem to be a problem, because lighting won’t work either way).
I am starting to think the problem has something to do with my player camera, because in spectator mode it looks exactly like in the previous picture.
The problem gets solved whenever I switch from Orthographic camera to Perspective camera. Is it possible to use Orthographic camera and also have lighthing effects?
Waiting for you response,