I am trying to create a pixel art game with lighting kind of like this
With points of light and a pattern of blocky but still fading away light radiating away.
So far what I have been able to do is create a Texture 2D that is the size of the screen fill it with 30% transparent black and then for each point of light replace the pixels on the texture with the pixels from my light texture (Which is just a clear circle with dark corners) The problem with this method is that if the corners of two light points meet they overlap like this
I also tried the light Projectors but unfortunately those don’t work with transparency.
I only have one other idea but don’t know how to implement it…
Can you write per-pixel shaders for Unity and if so, how?
Also any other solutions to this problem would be great