Hello there,
I joined an image to this thread, showing light coming in a room from a window. This result is obtained using sprites and a layer mask, the sprites are either lit or not, depending on if they are in the “ambiantLight” layer or not.
The problem is that these sprites are made using blending modes on Photoshop and I can’t just export the “light” to add it on the other sprites behind. In other word, these sprites can’t be displayed in the foreground and affect moving characters in the scene.
I’m looking for a way to apply this light effect on static sprites but also on dynamic one and the latest could potentially be partially affected (not like in the currently used solution where all the sprites in the “ambiantLight” layer are entirely affected).
I hope my explanation is clear (if it isn’t, please ask questions!) and I’d appreciate all the advice you have. I’m open to any kind of solution (asset, C# or shader based).
Thank you for your time!