I am making a platformer game and i would like to use the lightning technique in the example folder (using force own texture for layer and destination out for the light object) for lighting each layer separately. Is it possible that one light layer affects only the background while other effects the tile layer and the next one affects only the player layer?
The background layer with its lightning layer on top
The Tileset layer added
All Layers Combined
As you can see all the layers stack and the last lightning layer overides the first one. I played around with all the possible blending options and i didn't find an option to make it so that only 2 layers effect each other and the other ones a composited to the image separately.
Anyone know a trick to pull this off?