Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jarlowrey |
I have a black CanvasModulate and am using white Light2D’s to illuminate the scene. My entities are composed of sprites and ProgressBars (health bars). Even with 100 Light2D Energy, the Green Progress bars appear Yellow, while the sprites are normal (if a little bit dimmed).
How can I fix the ProgressBar tint, while still ensuring they are hidden if not illuminated?
Example below. The Progress bar RGB is set to (0,255,0), but appears yellow due to modulation/lighting.
Edit: If I switch the light mode to Mix or Mask I do not have this issue, but new issues are created with overlapping lights. Mix mode creates an effect like this:
While Mask makes the entire background visible at once.
Edit: It’s not a bug, it’s a feature. I made the player’s lights Mix and everything else Add. This makes the correct colors appear when close to the player, otherwise they can be a bit off (like the yellow bar). It’s not what I wanted originally, but it’s a good look and will keep until someone can help solve the original problem.