MR_Pol: Shetch #16

Hi ! Thanks for yours comments.
@SlothTom that’s an helpfull feedback. I’m gonna working on it asap. :slight_smile:

But before I’d like to show you the first part of a breakdown of the pulse effect on the shield.
First increase the gradient (G or R it’s depending of the uvmap you are working on), adding time value.
If i let this in this state it will return a gradient between t and t+1 ( t mean time of course) .
Now I need to reset the gradient. There is different options, using Frac or Modulo.
I use modulo because it’s managable (frac.x = x Mod 1) to change the delay between impulse .

e.g : x mod 2, where x = gradient + t, means that my value will be reset every 2 sec at a max value of 1.99999.
So during the first second, the gradient will go from 0 to 1, then you’ll get a 1 second delay before the gradient start again. I clamp the value with a min function so it’s always between 0 and 1, and invert the result ( one minus ) so the gradient max value is close to the line of the pulse and fade behind.
After all this use a pow to manage the gradient fading.

Let’s see it in gif witn different parrameters:
Fmod2: Freq 1, mod 1

Fmod1 : Freq 2, mod 1

Fmod3 : Freq2, mod 2

Fmod4 : Freq 1 , mod 0.5

Fmod5 : Freq 1 mod 1, pow 2

17 Likes