Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rousbound |
The structure of the nodes is something along the lines of:
- Sprite(Background)-
- Light2D(Global light)
- Node2D:
-LightOccluder2D
-Light2D - Node2D:
-LightOccluder2D
-Light2D - Node2D:
-LightOccluder2D
-Light2D
Each Node2D/Light2D is only used to cast a shadow with their respective Node2D/LightOccluder, to the Background Sprite. But that ends up over-illuminating my sprite.
Any ideas how can I only draw the shadow to the background in a smart way?
I tried playing with the layers and masks, but I can’t manage to separate the drawing of the shadow and the light to different layers.
Thanks in advance.