+2 votes

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.

Godot version 3.5
in Engine by (29 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.