I'm new to Godot and I decided to make a roguelike game to get used to the engine. While I was messing around with light occlusion I wanted the player to be able to hide from enemies when hiding in shadows. I need a way to detect whether the player is mostly in shadow or in light. Is there a way to do this using Light2D and LightOccluder2D nodes?
If not, I could always try ray casting from nearby light sources to check the if the player should be visible or not. I just wanted to know if there was a built-in way to do this.
Thanks :P