Hi, I need help with creating shader like in Brawl Stars![Brawl Stars Example][1]
[1]: /storage/temp/203010-brawl-stars-example.png
I want the shader that handles the attack preview. I think they are using the same shader for attack preview and for the green and red circles. I already have shader for the outline, but I don't know to make that self faded thing. First thing i tried was doing it with fresnel. But fresnel depends on view dir and doesn't work on 2d meshes. Then i tried with uv, but I don't know how to center them for any object shape. I think it will be possible by creating mask of target mesh and then scale it down. But I have no idea how to do it.
↧