Hi, I'm using a SpineSprite in Godot 4 and I want it to be completely invisible when it's outside of light, and only visible when it's inside a lit area.
With a regular Sprite2D, I can use a CanvasItemMaterial with light_mode = LIGHT_ONLY, and it works perfectly.
But with SpineSprite, this approach doesn't seem to work as expected — the character doesn't disappear in darkness, or sometimes just turns black instead of being fully invisible.
Is there a correct way to achieve LIGHT_ONLY behavior with SpineSprite?
I'd appreciate any help or examples that show how to make it work properly.
Thanks in advance!