So, this is my node setup and as you can see the sunbeams affect the entire image.
However, I only want it to emit out of the doorway. So I created a mask for that and plugged it into the factor input.
But the output isn't exactly accurate.
So, how do I solve this?