0 votes

Hello and thank you for your attention.

My issue is the following :

I have a player-centered light2d source and I wish to implement some other statics light2d sources. When the player is near another light source, the lights stacks and over-illuminate the area and the player :


  1. No shadow, no light source, colors are normal
  2. Shadows, player-centered light, colors are fine
  3. Shadows, player-centered light AND another light source above the player, colors are too bright.

Is there a way to "cap" the global light intensity so that when two light sources overlap it doesn't over-illuminate what is under ?

in Engine by (19 points)
edited by

Hello, in light mode try with Mix instead of Add, maybe it can work, another thing is that the ships are in a layer of light (Item Mask) next to other ships and objects and the other lights generate in another layer of light (Item Mask)

Using the "mix" instead of "add" is exactly what I needed here. Thank you !

1 Answer

0 votes
Best answer

As user Aquiles taught me, the solution is simply using the "mix" light mode instead of the default "add" mode.

by (19 points)

Excellent that you use that solution, luck with your project.

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 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 webmaster@godotengine.org with your username.