Hello !
I'm new here and I speak french usually, so I hope my post will be fine
I'm working on a game called Pankapu, a 2D platformer. Maybe you already heard about it.
In the game, we have a level in the darkness, and there is a light that follows the character in order to see something.
My shader is simple, it renders all dark except where I put these lights. I use the alpha channel to know how dark it must be (1 => no darkess, 0 => full darkness). It works fine but I have a little problem : when two lights overlap themselves, I take the highest value (seems logical) but as you can see in the screenshot, it looks a little bit weird.
How do you think I can improve that ?
By taking the average around the pixel rendered ?
Or maybe I need to use another alpha blending method than taking the max value ?
Thanks !