I am trying to achieve an effect of a moving flashlight (controlled by the player) which cuts a hole in a dark overlay.
I found a lot of methods to cut a static hole in a node for example to cut the hole using the blend mode and assigning the texture to a new sprite, but that seems to be very ineffective if it needs to be done every frame.
Using an image which already has the hole in it is also not an option, because i need support to add at runtime multiple flashlights.
Using directly the blend mode also cuts the hole in all nodes below.
Is there a way to apply the blend mode only to the dark overlay or an other approach to solve this problem?
Edit: The shape of the hole (flashlight) to cut out is a sprite of any form and with alpha-values (for smooth edges etc).