Hello I am making a platform game and I cant figure how to deal with multiple "lights" in more layers with different parallax, I will try to describe it.
I am talking about thing from beginner examples - "Simple lighting" there is a layer with black color, force own texture and then some object (white circle) with blend mode - "destination out" so it works like light in that black colored layer, fine.
But I am making platform game where main layer has 100% parallax, level is bigger then one screen. And I have got another back layer for clouds/sun etc where parallax is 0% and I want to have source of lights both at main layer and at back layer, how to make it?
It seems that all light sources must be in same black colored layer to work but how to deal with light sources with need of different parallax? Let me tell you example...
I have got player who is light source at main layer (moving in bigger level) and also have got for example sun/moon at back layer which should be at same position (maybe sun is moving at the back but with 0% parallax).
I hope it is enough understandable and I hope someone come up with idea, thanks in advance.