I am trying to build a system in my game that will make sprite tiles that are in front of my character semi-transparent. It is simple enough to adjust the alpha channel on the sprite renderer material but the problem with that is the tile borders then become very apparent and is pretty ugly. What I would like to do is have a way to feed it a beginning and end value for alpha so I can have it create a nice alpha gradient along the x axis. How might I go about this? Do I create a custom shader? Any examples? I have googled this until I was blue in the face but I must not be searching for the right thing because could not find anything.
And below is how it looks. It will create a fade effects from the origin point. I hope this helps some people because for this shader noob it was quite a challenge.