Quantcast
Channel: Questions in topic: "shader programming"
Viewing all articles
Browse latest Browse all 169

How to create 2D faded into itself shader for custom meshes ?

$
0
0
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.

Viewing all articles
Browse latest Browse all 169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>