Help with texture shadows in Godot 4.3

godot-4.3

I am making a 2D prototype with zenithal view. In this prototype the situation of the image can occur, where a character can get under a tree (or inside the shadow of a building) and I can’t get the shadow of the tree to darken the player and then merge with the player’s own shadow (and with the rest of the shadows that may be there) once it reaches the ground.

imagen

Using the new CanvasGroup node the shadow merging is simple, but the fact that the player can be obscured by the shadow of the tree is missing…

This is the node tree of my scene:
imagen

Thanks!