Search Unity

Weapon Overheating effect

Discussion in 'Shaders' started by Tsequier, Aug 12, 2017.

  1. Tsequier

    Tsequier

    Joined:
    Apr 20, 2016
    Posts:
    23
    Hello everyone !
    As I was playing 'Fortnite', I came across a cool effect on weapons Overheat_weaponEffect.png

    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
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    Have a texture that defines the areas you want to glow, animate the color as a material property.
     
  3. Tsequier

    Tsequier

    Joined:
    Apr 20, 2016
    Posts:
    23
    I see ! And I guess when I define the area , I can define it with a black/white gradient to make the fade effect ?
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    Yep, exactly.
     
  5. Tsequier

    Tsequier

    Joined:
    Apr 20, 2016
    Posts:
    23
    Thank you very much ! I'm going to do it and post the result !