Material - display the texture gradually

I have a simple texture of a straight line. I would like to make it that the line is invisible and it gets “drawn” over time until the entire texture is visible and then stops. I tried using a panner node but i got very weird results. Can someone point me to the right direction please? Thank you!

Hi iDivider,

I can’t point you to a specific example, but I do have the concept of how this could be done.

Imagine the line is a gradient, with black at one end and white at the other.

In between there are a bunch of shades of gray.

The ‘logic’ in the material graph would basically say “If the gray value at this pixel is ‘X’ or higher, then include this pixel in the line”

So you could use that as the output “mask” and then multiply or add in whatever color you want the line to be.

If you’re having trouble, post the line/gradient texture here and I’ll take a shot at it.