- Home /
Lighting looks really weird in 2D game
Hey guys!
A few friends and I are working on a 2D game, and we are recently trying to add some kind of dynamic lighting to make the game more atmospheric. Right now the background isn't affected by lights, while things like terrain is - and it looks pretty weird:
As you can see, the platforms you walk on lights up the same was as interactable GameObjects does, while the background keeps the same color. and it looks unnatural. Is there any way to fix this problem?
Thanks in advance!!
EDIT: I'll transfer 7 (PayPal) to anyone who manages to solve this for me.
Answer by KalleH · Apr 11, 2015 at 09:54 PM
Try creating a new material, change its shader to Sprite/Diffuse and then apply the material to the background. That should fix it.
I had already done that, the problem was the Z-coordinate of the background. Thanks though.
Your answer
Follow this Question
Related Questions
2D Flashlight for a platformer 2 Answers
Way to have 2D Sprites lit by Lights? 3 Answers
2D Platformer moving platform help C# 3 Answers
2D Platformer Jump while Running Android 1 Answer
Set Light2D sprite via scripting 1 Answer