Weapon Overheating effect

Hello everyone !
As I was playing ‘Fortnite’, I came across a cool effect on weapons

So, I tried to make it myself in Unity, but i didn’t wanted it already here, I wanted to be able to tweak the “Overheating percent” so I could animate it with code.

I’m not used to shader code, I understand the basics, but, most of the time, I use Shader forge.
But still, my shader forge knowledge is limited as well.

So, what I wanted to know is: which way is the best way to achieve the effect I want ? And is there a way I can make it generic so I will be able to use it on any weapon ?

Should I use an emissive texture that i add in my shader, and animate this texture ?
Should I use something else than shaders ?

Thanks a lot !

Thibault

Have a texture that defines the areas you want to glow, animate the color as a material property.

I see ! And I guess when I define the area , I can define it with a black/white gradient to make the fade effect ?

Yep, exactly.

Thank you very much ! I’m going to do it and post the result !