How to Lerp Alpha(1) from 1 to 0

Using Shader Graph, could anyone share a good examples for using time and lerping the Alpha in Fragment?

Ex: Bring the Alpha down from 1 to 0 in 3 seconds.

Thank you!

Substract current time and start time, then divide by duration.
In my project I use simple ā€œAnimateā€ subgraph, I think it should help.

2 Likes

That’s great! Thank you!

Is the ā€œEasingā€ node a custom function, maybe one of the free assets out there?

1 Like

No, this is dropdown. It works like keyword switch, but it’s used during graph authoring.

1 Like