Make sprite2D ignore directional light?

Godot Version

4.2

Question

I am using a directional light to light an entire scene but I have one sprite that should ignore that light; is there a way to do that?

change the light_mask property on the sprite

I tried that but it doesn’t work :confused:

whoops should have checked the docs, it says that directionallight2d doesn’t support light masks :melting_face:

uh… put it on a different canvaslayer?

if you want Sprite2d to ignore all light, add canvasItemMaterial to it and set Light mode to Unshaded