#Can you apply lights on labels ?
1 messages · Page 1 of 1 (latest)
The label text color is white but the light color is red
okay so the color property of the light is red?
okay so the documentation page on using 2d lights says to use a canvasmodulate to make the entire scene darker before using the lights
since the lights won't work if the scene isn't darkened first
Introduction: By default, 2D scenes in Godot are unshaded, with no lights and shadows visible. While this is fast to render, unshaded scenes can look bland. Godot provides the ability to use real-t...
Yup, but it seems the problem is that the light can't get on top of the canvas layer, because it applies to nodes that are not part of it
I'll look into that
get on top of the canvaslayer?
is the light on a different canvaslayer than the label?
This is the Dialogue Balloon scene and the main scene
well make the canvaslayer of the light higher than the canvaslayer of the text
the light won't affect anything that it is drawn under
canvaslayer has a layer property
higher values means it's drawn later
on top of the other nodes
Isn't it the same canvasLayer ? I literally dragged my Canvas scene into the main scene
Yes, DialogueManager
maybe that makes its own canvaslayer? Idk
make a new canvaslayer and add the pointlight2d as a child of it and set the layer to something really high
Found a way !
...it might not work if dialoguemanager has a higher canvas layer
what was it?
Somehow changing this parameter on the light
But yeah, I'll look into the doc you sent me to make the whole scene dark, and I should be able to make the trick work
👍
So thanks