Multiple Masks on One Sprite?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Hammer Bro.
:warning: Old Version Published before Godot 3 was released.

My game has a darkness image, which fades to 100% opacity as time progresses.

Fire allows one to still see, by masking out a portion of that parent image.

But if I have a second fire instance, the lighting behaves unexpectedly if they’re both over the darkness image simultaneously.

Unexpected behavior with multiple masks?

Is this intended behavior?

If so, how might I go about having the fires behave as expected – each only masking out the area of the darkness image that their personal mask image covers?

Example Project

Update Since this does not appear to be intended behavior, I’ve opened up a bug report.

Yeah that might be a bug, you should post it as an issue on Github.

avencherus | 2017-01-09 12:40

if you check the “lights as masks” demo, these are just normal lights.

Maybe there is a (buggy) reason for that, check on github if there is an issue on that or open one.

eons | 2017-01-09 13:36